Subversion Repositories Kolibri OS

Rev

Rev 1693 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1693 Rev 3065
1
#ifndef _SYS_UNISTD_H
1
#ifndef _SYS_UNISTD_H
2
#define _SYS_UNISTD_H
2
#define _SYS_UNISTD_H
3
 
3
 
4
#ifdef __cplusplus
4
#ifdef __cplusplus
5
extern "C" {
5
extern "C" {
6
#endif
6
#endif
7
 
7
 
8
#include <_ansi.h>
8
#include <_ansi.h>
9
#include 
9
#include 
10
#include 
10
#include 
11
#define __need_size_t
11
#define __need_size_t
12
#define __need_ptrdiff_t
12
#define __need_ptrdiff_t
13
#include 
13
#include 
14
 
14
 
15
extern char **environ;
15
extern char **environ;
16
 
16
 
17
void	_EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn)));
17
void	_EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn)));
18
 
18
 
19
int	_EXFUN(access,(const char *__path, int __amode ));
19
int	_EXFUN(access,(const char *__path, int __amode ));
20
unsigned  _EXFUN(alarm, (unsigned __secs ));
20
unsigned  _EXFUN(alarm, (unsigned __secs ));
21
int     _EXFUN(chdir, (const char *__path ));
21
int     _EXFUN(chdir, (const char *__path ));
22
int     _EXFUN(chmod, (const char *__path, mode_t __mode ));
22
int     _EXFUN(chmod, (const char *__path, mode_t __mode ));
23
#if !defined(__INSIDE_CYGWIN__)
23
#if !defined(__INSIDE_CYGWIN__)
24
int     _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
24
int     _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
25
#endif
25
#endif
26
#if defined(__CYGWIN__) || defined(__rtems__)
26
#if defined(__CYGWIN__) || defined(__rtems__)
27
int     _EXFUN(chroot, (const char *__path ));
27
int     _EXFUN(chroot, (const char *__path ));
28
#endif
28
#endif
29
int     _EXFUN(close, (int __fildes ));
29
int     _EXFUN(close, (int __fildes ));
30
#if defined(__CYGWIN__)
30
#if defined(__CYGWIN__)
31
size_t	_EXFUN(confstr, (int __name, char *__buf, size_t __len));
31
size_t	_EXFUN(confstr, (int __name, char *__buf, size_t __len));
32
#endif
32
#endif
33
char *  _EXFUN(ctermid, (char *__s ));
33
char *  _EXFUN(ctermid, (char *__s ));
34
char *  _EXFUN(cuserid, (char *__s ));
34
char *  _EXFUN(cuserid, (char *__s ));
35
#if defined(__CYGWIN__)
35
#if defined(__CYGWIN__)
36
int	_EXFUN(daemon, (int nochdir, int noclose));
36
int	_EXFUN(daemon, (int nochdir, int noclose));
37
#endif
37
#endif
38
int     _EXFUN(dup, (int __fildes ));
38
int     _EXFUN(dup, (int __fildes ));
39
int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
39
int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
40
#if defined(__CYGWIN__)
40
#if defined(__CYGWIN__)
41
int     _EXFUN(dup3, (int __fildes, int __fildes2, int flags));
41
int     _EXFUN(dup3, (int __fildes, int __fildes2, int flags));
42
int	_EXFUN(eaccess, (const char *__path, int __mode));
42
int	_EXFUN(eaccess, (const char *__path, int __mode));
43
void	_EXFUN(endusershell, (void));
43
void	_EXFUN(endusershell, (void));
44
int	_EXFUN(euidaccess, (const char *__path, int __mode));
44
int	_EXFUN(euidaccess, (const char *__path, int __mode));
45
#endif
45
#endif
46
int     _EXFUN(execl, (const char *__path, const char *, ... ));
46
int     _EXFUN(execl, (const char *__path, const char *, ... ));
47
int     _EXFUN(execle, (const char *__path, const char *, ... ));
47
int     _EXFUN(execle, (const char *__path, const char *, ... ));
48
int     _EXFUN(execlp, (const char *__file, const char *, ... ));
48
int     _EXFUN(execlp, (const char *__file, const char *, ... ));
-
 
49
#if defined(__CYGWIN__)
-
 
50
int     _EXFUN(execlpe, (const char *__file, const char *, ... ));
-
 
51
#endif
49
int     _EXFUN(execv, (const char *__path, char * const __argv[] ));
52
int     _EXFUN(execv, (const char *__path, char * const __argv[] ));
50
int     _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
53
int     _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
51
int     _EXFUN(execvp, (const char *__file, char * const __argv[] ));
54
int     _EXFUN(execvp, (const char *__file, char * const __argv[] ));
52
#if defined(__CYGWIN__)
55
#if defined(__CYGWIN__)
53
int     _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
56
int     _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
54
int	_EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
57
int	_EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
55
#endif
58
#endif
56
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__SPU__)
59
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__SPU__)
57
int     _EXFUN(fchdir, (int __fildes));
60
int     _EXFUN(fchdir, (int __fildes));
58
#endif
61
#endif
59
int     _EXFUN(fchmod, (int __fildes, mode_t __mode ));
62
int     _EXFUN(fchmod, (int __fildes, mode_t __mode ));
60
#if !defined(__INSIDE_CYGWIN__)
63
#if !defined(__INSIDE_CYGWIN__)
61
int     _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
64
int     _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
62
#endif
65
#endif
63
#if defined(__CYGWIN__)
66
#if defined(__CYGWIN__)
64
int	_EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
67
int	_EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
65
int	_EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
68
int	_EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
66
#endif
69
#endif
67
pid_t   _EXFUN(fork, (void ));
70
pid_t   _EXFUN(fork, (void ));
68
long    _EXFUN(fpathconf, (int __fd, int __name ));
71
long    _EXFUN(fpathconf, (int __fd, int __name ));
69
int     _EXFUN(fsync, (int __fd));
72
int     _EXFUN(fsync, (int __fd));
70
int     _EXFUN(fdatasync, (int __fd));
73
int     _EXFUN(fdatasync, (int __fd));
71
char *  _EXFUN(getcwd, (char *__buf, size_t __size ));
74
char *  _EXFUN(getcwd, (char *__buf, size_t __size ));
72
#if defined(__CYGWIN__)
75
#if defined(__CYGWIN__)
73
int	_EXFUN(getdomainname ,(char *__name, size_t __len));
76
int	_EXFUN(getdomainname ,(char *__name, size_t __len));
74
#endif
77
#endif
75
#if !defined(__INSIDE_CYGWIN__)
78
#if !defined(__INSIDE_CYGWIN__)
76
gid_t   _EXFUN(getegid, (void ));
79
gid_t   _EXFUN(getegid, (void ));
77
uid_t   _EXFUN(geteuid, (void ));
80
uid_t   _EXFUN(geteuid, (void ));
78
gid_t   _EXFUN(getgid, (void ));
81
gid_t   _EXFUN(getgid, (void ));
79
#endif
82
#endif
80
int     _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
83
int     _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
81
#if defined(__CYGWIN__)
84
#if defined(__CYGWIN__)
82
long    _EXFUN(gethostid, (void));
85
long    _EXFUN(gethostid, (void));
83
#endif
86
#endif
84
char *  _EXFUN(getlogin, (void ));
87
char *  _EXFUN(getlogin, (void ));
85
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
88
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
86
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
89
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
87
#endif
90
#endif
88
char *  _EXFUN(getpass, (const char *__prompt));
91
char *  _EXFUN(getpass, (const char *__prompt));
89
int	_EXFUN(getpagesize, (void));
92
int	_EXFUN(getpagesize, (void));
90
#if defined(__CYGWIN__)
93
#if defined(__CYGWIN__)
91
int    _EXFUN(getpeereid, (int, uid_t *, gid_t *));
94
int    _EXFUN(getpeereid, (int, uid_t *, gid_t *));
92
#endif
95
#endif
93
pid_t   _EXFUN(getpgid, (pid_t));
96
pid_t   _EXFUN(getpgid, (pid_t));
94
pid_t   _EXFUN(getpgrp, (void ));
97
pid_t   _EXFUN(getpgrp, (void ));
95
pid_t   _EXFUN(getpid, (void ));
98
pid_t   _EXFUN(getpid, (void ));
96
pid_t   _EXFUN(getppid, (void ));
99
pid_t   _EXFUN(getppid, (void ));
97
#if defined(__CYGWIN__) || defined(__rtems__)
100
#if defined(__CYGWIN__) || defined(__rtems__)
98
pid_t   _EXFUN(getsid, (pid_t));
101
pid_t   _EXFUN(getsid, (pid_t));
99
#endif
102
#endif
100
#if !defined(__INSIDE_CYGWIN__)
103
#if !defined(__INSIDE_CYGWIN__)
101
uid_t   _EXFUN(getuid, (void ));
104
uid_t   _EXFUN(getuid, (void ));
102
#endif
105
#endif
103
#ifdef __CYGWIN__
106
#ifdef __CYGWIN__
104
char *	_EXFUN(getusershell, (void));
107
char *	_EXFUN(getusershell, (void));
105
char *  _EXFUN(getwd, (char *__buf ));
108
char *  _EXFUN(getwd, (char *__buf ));
106
int	_EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
109
int	_EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
107
#endif
110
#endif
108
int     _EXFUN(isatty, (int __fildes ));
111
int     _EXFUN(isatty, (int __fildes ));
109
#if !defined(__INSIDE_CYGWIN__)
112
#if !defined(__INSIDE_CYGWIN__)
110
int     _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
113
int     _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
111
#endif
114
#endif
112
int     _EXFUN(link, (const char *__path1, const char *__path2 ));
115
int     _EXFUN(link, (const char *__path1, const char *__path2 ));
113
#if defined(__CYGWIN__)
116
#if defined(__CYGWIN__)
114
int     _EXFUN(linkat, (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags ));
117
int     _EXFUN(linkat, (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags ));
115
#endif
118
#endif
116
int	_EXFUN(nice, (int __nice_value ));
119
int	_EXFUN(nice, (int __nice_value ));
117
#if !defined(__INSIDE_CYGWIN__)
120
#if !defined(__INSIDE_CYGWIN__)
118
off_t   _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
121
off_t   _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
119
#endif
122
#endif
120
#if defined(__SPU__) || defined(__CYGWIN__)
123
#if defined(__SPU__) || defined(__CYGWIN__)
121
#define F_ULOCK	0
124
#define F_ULOCK	0
122
#define F_LOCK	1
125
#define F_LOCK	1
123
#define F_TLOCK	2
126
#define F_TLOCK	2
124
#define F_TEST	3
127
#define F_TEST	3
125
int     _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
128
int     _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
126
#endif
129
#endif
127
long    _EXFUN(pathconf, (const char *__path, int __name ));
130
long    _EXFUN(pathconf, (const char *__path, int __name ));
128
int     _EXFUN(pause, (void ));
131
int     _EXFUN(pause, (void ));
129
#ifdef __CYGWIN__
132
#ifdef __CYGWIN__
130
int	_EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
133
int	_EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
131
#endif
134
#endif
132
int     _EXFUN(pipe, (int __fildes[2] ));
135
int     _EXFUN(pipe, (int __fildes[2] ));
133
#ifdef __CYGWIN__
136
#ifdef __CYGWIN__
134
int     _EXFUN(pipe2, (int __fildes[2], int flags));
137
int     _EXFUN(pipe2, (int __fildes[2], int flags));
135
#endif
138
#endif
136
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
139
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
137
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
140
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
138
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
141
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
139
#if defined(__CYGWIN__)
142
#if defined(__CYGWIN__)
140
int	_EXFUN(rresvport, (int *__alport));
143
int	_EXFUN(rresvport, (int *__alport));
141
int	_EXFUN(revoke, (char *__path));
144
int	_EXFUN(revoke, (char *__path));
142
#endif
145
#endif
143
int     _EXFUN(rmdir, (const char *__path ));
146
int     _EXFUN(rmdir, (const char *__path ));
144
#if defined(__CYGWIN__)
147
#if defined(__CYGWIN__)
145
int	_EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
148
int	_EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
146
#endif
149
#endif
147
void *  _EXFUN(sbrk,  (ptrdiff_t __incr));
150
void *  _EXFUN(sbrk,  (ptrdiff_t __incr));
148
#if !defined(__INSIDE_CYGWIN__)
151
#if !defined(__INSIDE_CYGWIN__)
149
#if defined(__CYGWIN__) || defined(__rtems__)
152
#if defined(__CYGWIN__) || defined(__rtems__)
150
int     _EXFUN(setegid, (gid_t __gid ));
153
int     _EXFUN(setegid, (gid_t __gid ));
151
int     _EXFUN(seteuid, (uid_t __uid ));
154
int     _EXFUN(seteuid, (uid_t __uid ));
152
#endif
155
#endif
153
int     _EXFUN(setgid, (gid_t __gid ));
156
int     _EXFUN(setgid, (gid_t __gid ));
154
#endif
157
#endif
155
#if defined(__CYGWIN__)
158
#if defined(__CYGWIN__)
156
int	_EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
159
int	_EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
157
#endif
160
#endif
158
int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
161
int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
159
int     _EXFUN(setpgrp, (void ));
162
int     _EXFUN(setpgrp, (void ));
160
#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
163
#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
161
int	_EXFUN(setregid, (gid_t __rgid, gid_t __egid));
164
int	_EXFUN(setregid, (gid_t __rgid, gid_t __egid));
162
int	_EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
165
int	_EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
163
#endif
166
#endif
164
pid_t   _EXFUN(setsid, (void ));
167
pid_t   _EXFUN(setsid, (void ));
165
#if !defined(__INSIDE_CYGWIN__)
168
#if !defined(__INSIDE_CYGWIN__)
166
int     _EXFUN(setuid, (uid_t __uid ));
169
int     _EXFUN(setuid, (uid_t __uid ));
167
#endif
170
#endif
168
#if defined(__CYGWIN__)
171
#if defined(__CYGWIN__)
169
void	_EXFUN(setusershell, (void));
172
void	_EXFUN(setusershell, (void));
170
#endif
173
#endif
171
unsigned _EXFUN(sleep, (unsigned int __seconds ));
174
unsigned _EXFUN(sleep, (unsigned int __seconds ));
172
void    _EXFUN(swab, (const void *, void *, ssize_t));
175
void    _EXFUN(swab, (const void *, void *, ssize_t));
173
long    _EXFUN(sysconf, (int __name ));
176
long    _EXFUN(sysconf, (int __name ));
174
pid_t   _EXFUN(tcgetpgrp, (int __fildes ));
177
pid_t   _EXFUN(tcgetpgrp, (int __fildes ));
175
int     _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
178
int     _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
176
char *  _EXFUN(ttyname, (int __fildes ));
179
char *  _EXFUN(ttyname, (int __fildes ));
177
#if defined(__CYGWIN__) || defined(__rtems__)
180
#if defined(__CYGWIN__) || defined(__rtems__)
178
int     _EXFUN(ttyname_r, (int, char *, size_t)); 
181
int     _EXFUN(ttyname_r, (int, char *, size_t)); 
179
#endif
182
#endif
180
int     _EXFUN(unlink, (const char *__path ));
183
int     _EXFUN(unlink, (const char *__path ));
181
int 	_EXFUN(usleep, (useconds_t __useconds));
184
int 	_EXFUN(usleep, (useconds_t __useconds));
182
int     _EXFUN(vhangup, (void ));
185
int     _EXFUN(vhangup, (void ));
183
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
186
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
184
 
187
 
185
#ifdef __CYGWIN__
188
#ifdef __CYGWIN__
186
# define __UNISTD_GETOPT__
189
# define __UNISTD_GETOPT__
187
# include 
190
# include 
188
# undef __UNISTD_GETOPT__
191
# undef __UNISTD_GETOPT__
189
#else
192
#else
190
extern char *optarg;			/* getopt(3) external variables */
193
extern char *optarg;			/* getopt(3) external variables */
191
extern int optind, opterr, optopt;
194
extern int optind, opterr, optopt;
192
int	 getopt(int, char * const [], const char *);
195
int	 getopt(int, char * const [], const char *);
193
extern int optreset;			/* getopt(3) external variable */
196
extern int optreset;			/* getopt(3) external variable */
194
#endif
197
#endif
195
 
198
 
196
#ifndef        _POSIX_SOURCE
199
#ifndef        _POSIX_SOURCE
197
pid_t   _EXFUN(vfork, (void ));
200
pid_t   _EXFUN(vfork, (void ));
198
#endif /* _POSIX_SOURCE */
201
#endif /* _POSIX_SOURCE */
199
 
202
 
200
#ifdef _COMPILING_NEWLIB
203
#ifdef _COMPILING_NEWLIB
201
/* Provide prototypes for most of the _ names that are
204
/* Provide prototypes for most of the _ names that are
202
   provided in newlib for some compilers.  */
205
   provided in newlib for some compilers.  */
203
int     _EXFUN(_close, (int __fildes ));
206
int     _EXFUN(_close, (int __fildes ));
204
pid_t   _EXFUN(_fork, (void ));
207
pid_t   _EXFUN(_fork, (void ));
205
pid_t   _EXFUN(_getpid, (void ));
208
pid_t   _EXFUN(_getpid, (void ));
206
int	_EXFUN(_isatty, (int __fildes ));
209
int	_EXFUN(_isatty, (int __fildes ));
207
int     _EXFUN(_link, (const char *__path1, const char *__path2 ));
210
int     _EXFUN(_link, (const char *__path1, const char *__path2 ));
208
_off_t   _EXFUN(_lseek, (int __fildes, _off_t __offset, int __whence ));
211
_off_t   _EXFUN(_lseek, (int __fildes, _off_t __offset, int __whence ));
209
#ifdef __LARGE64_FILES
212
#ifdef __LARGE64_FILES
210
_off64_t _EXFUN(_lseek64, (int __filedes, _off64_t __offset, int __whence ));
213
_off64_t _EXFUN(_lseek64, (int __filedes, _off64_t __offset, int __whence ));
211
#endif
214
#endif
212
_READ_WRITE_RETURN_TYPE _EXFUN(_read, (int __fd, void *__buf, size_t __nbyte ));
215
_READ_WRITE_RETURN_TYPE _EXFUN(_read, (int __fd, void *__buf, size_t __nbyte ));
213
void *  _EXFUN(_sbrk,  (ptrdiff_t __incr));
216
void *  _EXFUN(_sbrk,  (ptrdiff_t __incr));
214
int     _EXFUN(_unlink, (const char *__path ));
217
int     _EXFUN(_unlink, (const char *__path ));
215
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
218
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
216
int     _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
219
int     _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
217
#endif
220
#endif
218
 
221
 
219
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__) || defined(__SPU__)
222
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__) || defined(__SPU__)
220
#if !defined(__INSIDE_CYGWIN__)
223
#if !defined(__INSIDE_CYGWIN__)
221
int     _EXFUN(ftruncate, (int __fd, off_t __length));
224
int     _EXFUN(ftruncate, (int __fd, off_t __length));
222
int     _EXFUN(truncate, (const char *, off_t __length));
225
int     _EXFUN(truncate, (const char *, off_t __length));
223
#endif
226
#endif
224
#endif
227
#endif
225
 
228
 
226
#if defined(__CYGWIN__) || defined(__rtems__)
229
#if defined(__CYGWIN__) || defined(__rtems__)
227
int	_EXFUN(getdtablesize, (void));
230
int	_EXFUN(getdtablesize, (void));
228
int	_EXFUN(setdtablesize, (int));
231
int	_EXFUN(setdtablesize, (int));
229
useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
232
useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
230
#if !(defined  (_WINSOCK_H) || defined (__USE_W32_SOCKETS))
233
#if !(defined  (_WINSOCK_H) || defined (__USE_W32_SOCKETS))
231
/* winsock[2].h defines as __stdcall, and with int as 2nd arg */
234
/* winsock[2].h defines as __stdcall, and with int as 2nd arg */
232
 int	_EXFUN(gethostname, (char *__name, size_t __len));
235
 int	_EXFUN(gethostname, (char *__name, size_t __len));
233
#endif
236
#endif
234
char *	_EXFUN(mktemp, (char *));
237
char *	_EXFUN(mktemp, (char *));
235
#endif
238
#endif
236
 
239
 
237
#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
240
#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
238
void    _EXFUN(sync, (void));
241
void    _EXFUN(sync, (void));
239
#endif
242
#endif
240
 
243
 
241
ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen));
244
ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen));
242
#if defined(__CYGWIN__)
245
#if defined(__CYGWIN__)
243
ssize_t	_EXFUN(readlinkat, (int __dirfd1, const char *__path, char *__buf, size_t __buflen));
246
ssize_t	_EXFUN(readlinkat, (int __dirfd1, const char *__path, char *__buf, size_t __buflen));
244
#endif
247
#endif
245
int     _EXFUN(symlink, (const char *__name1, const char *__name2));
248
int     _EXFUN(symlink, (const char *__name1, const char *__name2));
246
#if defined(__CYGWIN__)
249
#if defined(__CYGWIN__)
247
int	_EXFUN(symlinkat, (const char *, int, const char *));
250
int	_EXFUN(symlinkat, (const char *, int, const char *));
248
int	_EXFUN(unlinkat, (int, const char *, int));
251
int	_EXFUN(unlinkat, (int, const char *, int));
249
#endif
252
#endif
250
 
253
 
251
#define	F_OK	0
254
#define	F_OK	0
252
#define	R_OK	4
255
#define	R_OK	4
253
#define	W_OK	2
256
#define	W_OK	2
254
#define	X_OK	1
257
#define	X_OK	1
255
 
258
 
256
# define	SEEK_SET	0
259
# define	SEEK_SET	0
257
# define	SEEK_CUR	1
260
# define	SEEK_CUR	1
258
# define	SEEK_END	2
261
# define	SEEK_END	2
259
 
262
 
260
#include 
263
#include 
261
 
264
 
262
#define STDIN_FILENO    0       /* standard input file descriptor */
265
#define STDIN_FILENO    0       /* standard input file descriptor */
263
#define STDOUT_FILENO   1       /* standard output file descriptor */
266
#define STDOUT_FILENO   1       /* standard output file descriptor */
264
#define STDERR_FILENO   2       /* standard error file descriptor */
267
#define STDERR_FILENO   2       /* standard error file descriptor */
265
 
268
 
266
/*
269
/*
267
 *  sysconf values per IEEE Std 1003.1, 2008 Edition
270
 *  sysconf values per IEEE Std 1003.1, 2008 Edition
268
 */
271
 */
269
 
272
 
270
#define _SC_ARG_MAX                       0
273
#define _SC_ARG_MAX                       0
271
#define _SC_CHILD_MAX                     1
274
#define _SC_CHILD_MAX                     1
272
#define _SC_CLK_TCK                       2
275
#define _SC_CLK_TCK                       2
273
#define _SC_NGROUPS_MAX                   3
276
#define _SC_NGROUPS_MAX                   3
274
#define _SC_OPEN_MAX                      4
277
#define _SC_OPEN_MAX                      4
275
#define _SC_JOB_CONTROL                   5
278
#define _SC_JOB_CONTROL                   5
276
#define _SC_SAVED_IDS                     6
279
#define _SC_SAVED_IDS                     6
277
#define _SC_VERSION                       7
280
#define _SC_VERSION                       7
278
#define _SC_PAGESIZE                      8
281
#define _SC_PAGESIZE                      8
279
#define _SC_PAGE_SIZE                     _SC_PAGESIZE
282
#define _SC_PAGE_SIZE                     _SC_PAGESIZE
280
/* These are non-POSIX values we accidentally introduced in 2000 without
283
/* These are non-POSIX values we accidentally introduced in 2000 without
281
   guarding them.  Keeping them unguarded for backward compatibility. */
284
   guarding them.  Keeping them unguarded for backward compatibility. */
282
#define _SC_NPROCESSORS_CONF              9
285
#define _SC_NPROCESSORS_CONF              9
283
#define _SC_NPROCESSORS_ONLN             10
286
#define _SC_NPROCESSORS_ONLN             10
284
#define _SC_PHYS_PAGES                   11
287
#define _SC_PHYS_PAGES                   11
285
#define _SC_AVPHYS_PAGES                 12
288
#define _SC_AVPHYS_PAGES                 12
286
/* End of non-POSIX values. */
289
/* End of non-POSIX values. */
287
#define _SC_MQ_OPEN_MAX                  13
290
#define _SC_MQ_OPEN_MAX                  13
288
#define _SC_MQ_PRIO_MAX                  14
291
#define _SC_MQ_PRIO_MAX                  14
289
#define _SC_RTSIG_MAX                    15
292
#define _SC_RTSIG_MAX                    15
290
#define _SC_SEM_NSEMS_MAX                16
293
#define _SC_SEM_NSEMS_MAX                16
291
#define _SC_SEM_VALUE_MAX                17
294
#define _SC_SEM_VALUE_MAX                17
292
#define _SC_SIGQUEUE_MAX                 18
295
#define _SC_SIGQUEUE_MAX                 18
293
#define _SC_TIMER_MAX                    19
296
#define _SC_TIMER_MAX                    19
294
#define _SC_TZNAME_MAX                   20
297
#define _SC_TZNAME_MAX                   20
295
#define _SC_ASYNCHRONOUS_IO              21
298
#define _SC_ASYNCHRONOUS_IO              21
296
#define _SC_FSYNC                        22
299
#define _SC_FSYNC                        22
297
#define _SC_MAPPED_FILES                 23
300
#define _SC_MAPPED_FILES                 23
298
#define _SC_MEMLOCK                      24
301
#define _SC_MEMLOCK                      24
299
#define _SC_MEMLOCK_RANGE                25
302
#define _SC_MEMLOCK_RANGE                25
300
#define _SC_MEMORY_PROTECTION            26
303
#define _SC_MEMORY_PROTECTION            26
301
#define _SC_MESSAGE_PASSING              27
304
#define _SC_MESSAGE_PASSING              27
302
#define _SC_PRIORITIZED_IO               28
305
#define _SC_PRIORITIZED_IO               28
303
#define _SC_REALTIME_SIGNALS             29
306
#define _SC_REALTIME_SIGNALS             29
304
#define _SC_SEMAPHORES                   30
307
#define _SC_SEMAPHORES                   30
305
#define _SC_SHARED_MEMORY_OBJECTS        31
308
#define _SC_SHARED_MEMORY_OBJECTS        31
306
#define _SC_SYNCHRONIZED_IO              32
309
#define _SC_SYNCHRONIZED_IO              32
307
#define _SC_TIMERS                       33
310
#define _SC_TIMERS                       33
308
#define _SC_AIO_LISTIO_MAX               34
311
#define _SC_AIO_LISTIO_MAX               34
309
#define _SC_AIO_MAX                      35
312
#define _SC_AIO_MAX                      35
310
#define _SC_AIO_PRIO_DELTA_MAX           36
313
#define _SC_AIO_PRIO_DELTA_MAX           36
311
#define _SC_DELAYTIMER_MAX               37
314
#define _SC_DELAYTIMER_MAX               37
312
#define _SC_THREAD_KEYS_MAX              38
315
#define _SC_THREAD_KEYS_MAX              38
313
#define _SC_THREAD_STACK_MIN             39
316
#define _SC_THREAD_STACK_MIN             39
314
#define _SC_THREAD_THREADS_MAX           40
317
#define _SC_THREAD_THREADS_MAX           40
315
#define _SC_TTY_NAME_MAX                 41
318
#define _SC_TTY_NAME_MAX                 41
316
#define _SC_THREADS                      42
319
#define _SC_THREADS                      42
317
#define _SC_THREAD_ATTR_STACKADDR        43
320
#define _SC_THREAD_ATTR_STACKADDR        43
318
#define _SC_THREAD_ATTR_STACKSIZE        44
321
#define _SC_THREAD_ATTR_STACKSIZE        44
319
#define _SC_THREAD_PRIORITY_SCHEDULING   45
322
#define _SC_THREAD_PRIORITY_SCHEDULING   45
320
#define _SC_THREAD_PRIO_INHERIT          46
323
#define _SC_THREAD_PRIO_INHERIT          46
321
/* _SC_THREAD_PRIO_PROTECT was _SC_THREAD_PRIO_CEILING in early drafts */
324
/* _SC_THREAD_PRIO_PROTECT was _SC_THREAD_PRIO_CEILING in early drafts */
322
#define _SC_THREAD_PRIO_PROTECT          47
325
#define _SC_THREAD_PRIO_PROTECT          47
323
#define _SC_THREAD_PRIO_CEILING          _SC_THREAD_PRIO_PROTECT
326
#define _SC_THREAD_PRIO_CEILING          _SC_THREAD_PRIO_PROTECT
324
#define _SC_THREAD_PROCESS_SHARED        48
327
#define _SC_THREAD_PROCESS_SHARED        48
325
#define _SC_THREAD_SAFE_FUNCTIONS        49
328
#define _SC_THREAD_SAFE_FUNCTIONS        49
326
#define _SC_GETGR_R_SIZE_MAX             50
329
#define _SC_GETGR_R_SIZE_MAX             50
327
#define _SC_GETPW_R_SIZE_MAX             51
330
#define _SC_GETPW_R_SIZE_MAX             51
328
#define _SC_LOGIN_NAME_MAX               52
331
#define _SC_LOGIN_NAME_MAX               52
329
#define _SC_THREAD_DESTRUCTOR_ITERATIONS 53
332
#define _SC_THREAD_DESTRUCTOR_ITERATIONS 53
330
#define _SC_ADVISORY_INFO                54
333
#define _SC_ADVISORY_INFO                54
331
#define _SC_ATEXIT_MAX                   55
334
#define _SC_ATEXIT_MAX                   55
332
#define _SC_BARRIERS                     56
335
#define _SC_BARRIERS                     56
333
#define _SC_BC_BASE_MAX                  57
336
#define _SC_BC_BASE_MAX                  57
334
#define _SC_BC_DIM_MAX                   58
337
#define _SC_BC_DIM_MAX                   58
335
#define _SC_BC_SCALE_MAX                 59
338
#define _SC_BC_SCALE_MAX                 59
336
#define _SC_BC_STRING_MAX                60
339
#define _SC_BC_STRING_MAX                60
337
#define _SC_CLOCK_SELECTION              61
340
#define _SC_CLOCK_SELECTION              61
338
#define _SC_COLL_WEIGHTS_MAX             62
341
#define _SC_COLL_WEIGHTS_MAX             62
339
#define _SC_CPUTIME                      63
342
#define _SC_CPUTIME                      63
340
#define _SC_EXPR_NEST_MAX                64
343
#define _SC_EXPR_NEST_MAX                64
341
#define _SC_HOST_NAME_MAX                65
344
#define _SC_HOST_NAME_MAX                65
342
#define _SC_IOV_MAX                      66
345
#define _SC_IOV_MAX                      66
343
#define _SC_IPV6                         67
346
#define _SC_IPV6                         67
344
#define _SC_LINE_MAX                     68
347
#define _SC_LINE_MAX                     68
345
#define _SC_MONOTONIC_CLOCK              69
348
#define _SC_MONOTONIC_CLOCK              69
346
#define _SC_RAW_SOCKETS                  70
349
#define _SC_RAW_SOCKETS                  70
347
#define _SC_READER_WRITER_LOCKS          71
350
#define _SC_READER_WRITER_LOCKS          71
348
#define _SC_REGEXP                       72
351
#define _SC_REGEXP                       72
349
#define _SC_RE_DUP_MAX                   73
352
#define _SC_RE_DUP_MAX                   73
350
#define _SC_SHELL                        74
353
#define _SC_SHELL                        74
351
#define _SC_SPAWN                        75
354
#define _SC_SPAWN                        75
352
#define _SC_SPIN_LOCKS                   76
355
#define _SC_SPIN_LOCKS                   76
353
#define _SC_SPORADIC_SERVER              77
356
#define _SC_SPORADIC_SERVER              77
354
#define _SC_SS_REPL_MAX                  78
357
#define _SC_SS_REPL_MAX                  78
355
#define _SC_SYMLOOP_MAX                  79
358
#define _SC_SYMLOOP_MAX                  79
356
#define _SC_THREAD_CPUTIME               80
359
#define _SC_THREAD_CPUTIME               80
357
#define _SC_THREAD_SPORADIC_SERVER       81
360
#define _SC_THREAD_SPORADIC_SERVER       81
358
#define _SC_TIMEOUTS                     82
361
#define _SC_TIMEOUTS                     82
359
#define _SC_TRACE                        83
362
#define _SC_TRACE                        83
360
#define _SC_TRACE_EVENT_FILTER           84
363
#define _SC_TRACE_EVENT_FILTER           84
361
#define _SC_TRACE_EVENT_NAME_MAX         85
364
#define _SC_TRACE_EVENT_NAME_MAX         85
362
#define _SC_TRACE_INHERIT                86
365
#define _SC_TRACE_INHERIT                86
363
#define _SC_TRACE_LOG                    87
366
#define _SC_TRACE_LOG                    87
364
#define _SC_TRACE_NAME_MAX               88
367
#define _SC_TRACE_NAME_MAX               88
365
#define _SC_TRACE_SYS_MAX                89
368
#define _SC_TRACE_SYS_MAX                89
366
#define _SC_TRACE_USER_EVENT_MAX         90
369
#define _SC_TRACE_USER_EVENT_MAX         90
367
#define _SC_TYPED_MEMORY_OBJECTS         91
370
#define _SC_TYPED_MEMORY_OBJECTS         91
368
#define _SC_V7_ILP32_OFF32               92
371
#define _SC_V7_ILP32_OFF32               92
369
#define _SC_V6_ILP32_OFF32               _SC_V7_ILP32_OFF32
372
#define _SC_V6_ILP32_OFF32               _SC_V7_ILP32_OFF32
370
#define _SC_XBS5_ILP32_OFF32             _SC_V7_ILP32_OFF32
373
#define _SC_XBS5_ILP32_OFF32             _SC_V7_ILP32_OFF32
371
#define _SC_V7_ILP32_OFFBIG              93
374
#define _SC_V7_ILP32_OFFBIG              93
372
#define _SC_V6_ILP32_OFFBIG              _SC_V7_ILP32_OFFBIG
375
#define _SC_V6_ILP32_OFFBIG              _SC_V7_ILP32_OFFBIG
373
#define _SC_XBS5_ILP32_OFFBIG            _SC_V7_ILP32_OFFBIG
376
#define _SC_XBS5_ILP32_OFFBIG            _SC_V7_ILP32_OFFBIG
374
#define _SC_V7_LP64_OFF64                94
377
#define _SC_V7_LP64_OFF64                94
375
#define _SC_V6_LP64_OFF64                _SC_V7_LP64_OFF64
378
#define _SC_V6_LP64_OFF64                _SC_V7_LP64_OFF64
376
#define _SC_XBS5_LP64_OFF64              _SC_V7_LP64_OFF64
379
#define _SC_XBS5_LP64_OFF64              _SC_V7_LP64_OFF64
377
#define _SC_V7_LPBIG_OFFBIG              95
380
#define _SC_V7_LPBIG_OFFBIG              95
378
#define _SC_V6_LPBIG_OFFBIG              _SC_V7_LPBIG_OFFBIG
381
#define _SC_V6_LPBIG_OFFBIG              _SC_V7_LPBIG_OFFBIG
379
#define _SC_XBS5_LPBIG_OFFBIG            _SC_V7_LPBIG_OFFBIG
382
#define _SC_XBS5_LPBIG_OFFBIG            _SC_V7_LPBIG_OFFBIG
380
#define _SC_XOPEN_CRYPT                  96
383
#define _SC_XOPEN_CRYPT                  96
381
#define _SC_XOPEN_ENH_I18N               97
384
#define _SC_XOPEN_ENH_I18N               97
382
#define _SC_XOPEN_LEGACY                 98
385
#define _SC_XOPEN_LEGACY                 98
383
#define _SC_XOPEN_REALTIME               99
386
#define _SC_XOPEN_REALTIME               99
384
#define _SC_STREAM_MAX                  100
387
#define _SC_STREAM_MAX                  100
385
#define _SC_PRIORITY_SCHEDULING         101
388
#define _SC_PRIORITY_SCHEDULING         101
386
#define _SC_XOPEN_REALTIME_THREADS      102
389
#define _SC_XOPEN_REALTIME_THREADS      102
387
#define _SC_XOPEN_SHM                   103
390
#define _SC_XOPEN_SHM                   103
388
#define _SC_XOPEN_STREAMS               104
391
#define _SC_XOPEN_STREAMS               104
389
#define _SC_XOPEN_UNIX                  105
392
#define _SC_XOPEN_UNIX                  105
390
#define _SC_XOPEN_VERSION               106
393
#define _SC_XOPEN_VERSION               106
391
#define _SC_2_CHAR_TERM                 107
394
#define _SC_2_CHAR_TERM                 107
392
#define _SC_2_C_BIND                    108
395
#define _SC_2_C_BIND                    108
393
#define _SC_2_C_DEV                     109
396
#define _SC_2_C_DEV                     109
394
#define _SC_2_FORT_DEV                  110
397
#define _SC_2_FORT_DEV                  110
395
#define _SC_2_FORT_RUN                  111
398
#define _SC_2_FORT_RUN                  111
396
#define _SC_2_LOCALEDEF                 112
399
#define _SC_2_LOCALEDEF                 112
397
#define _SC_2_PBS                       113
400
#define _SC_2_PBS                       113
398
#define _SC_2_PBS_ACCOUNTING            114
401
#define _SC_2_PBS_ACCOUNTING            114
399
#define _SC_2_PBS_CHECKPOINT            115
402
#define _SC_2_PBS_CHECKPOINT            115
400
#define _SC_2_PBS_LOCATE                116
403
#define _SC_2_PBS_LOCATE                116
401
#define _SC_2_PBS_MESSAGE               117
404
#define _SC_2_PBS_MESSAGE               117
402
#define _SC_2_PBS_TRACK                 118
405
#define _SC_2_PBS_TRACK                 118
403
#define _SC_2_SW_DEV                    119
406
#define _SC_2_SW_DEV                    119
404
#define _SC_2_UPE                       120
407
#define _SC_2_UPE                       120
405
#define _SC_2_VERSION                   121
408
#define _SC_2_VERSION                   121
406
#define _SC_THREAD_ROBUST_PRIO_INHERIT  122
409
#define _SC_THREAD_ROBUST_PRIO_INHERIT  122
407
#define _SC_THREAD_ROBUST_PRIO_PROTECT  123
410
#define _SC_THREAD_ROBUST_PRIO_PROTECT  123
408
#define _SC_XOPEN_UUCP                  124
411
#define _SC_XOPEN_UUCP                  124
409
 
412
 
410
/*
413
/*
411
 *  pathconf values per IEEE Std 1003.1, 2008 Edition
414
 *  pathconf values per IEEE Std 1003.1, 2008 Edition
412
 */
415
 */
413
 
416
 
414
#define _PC_LINK_MAX                      0
417
#define _PC_LINK_MAX                      0
415
#define _PC_MAX_CANON                     1
418
#define _PC_MAX_CANON                     1
416
#define _PC_MAX_INPUT                     2
419
#define _PC_MAX_INPUT                     2
417
#define _PC_NAME_MAX                      3
420
#define _PC_NAME_MAX                      3
418
#define _PC_PATH_MAX                      4
421
#define _PC_PATH_MAX                      4
419
#define _PC_PIPE_BUF                      5
422
#define _PC_PIPE_BUF                      5
420
#define _PC_CHOWN_RESTRICTED              6
423
#define _PC_CHOWN_RESTRICTED              6
421
#define _PC_NO_TRUNC                      7
424
#define _PC_NO_TRUNC                      7
422
#define _PC_VDISABLE                      8
425
#define _PC_VDISABLE                      8
423
#define _PC_ASYNC_IO                      9
426
#define _PC_ASYNC_IO                      9
424
#define _PC_PRIO_IO                      10
427
#define _PC_PRIO_IO                      10
425
#define _PC_SYNC_IO                      11
428
#define _PC_SYNC_IO                      11
426
#define _PC_FILESIZEBITS                 12
429
#define _PC_FILESIZEBITS                 12
427
#define _PC_2_SYMLINKS                   13
430
#define _PC_2_SYMLINKS                   13
428
#define _PC_SYMLINK_MAX                  14
431
#define _PC_SYMLINK_MAX                  14
429
#define _PC_ALLOC_SIZE_MIN               15
432
#define _PC_ALLOC_SIZE_MIN               15
430
#define _PC_REC_INCR_XFER_SIZE           16
433
#define _PC_REC_INCR_XFER_SIZE           16
431
#define _PC_REC_MAX_XFER_SIZE            17
434
#define _PC_REC_MAX_XFER_SIZE            17
432
#define _PC_REC_MIN_XFER_SIZE            18
435
#define _PC_REC_MIN_XFER_SIZE            18
433
#define _PC_REC_XFER_ALIGN               19
436
#define _PC_REC_XFER_ALIGN               19
434
#define _PC_TIMESTAMP_RESOLUTION         20
437
#define _PC_TIMESTAMP_RESOLUTION         20
435
#ifdef __CYGWIN__
438
#ifdef __CYGWIN__
436
/* Ask for POSIX permission bits support. */
439
/* Ask for POSIX permission bits support. */
437
#define _PC_POSIX_PERMISSIONS            90
440
#define _PC_POSIX_PERMISSIONS            90
438
/* Ask for full POSIX permission support including uid/gid settings. */
441
/* Ask for full POSIX permission support including uid/gid settings. */
439
#define _PC_POSIX_SECURITY               91
442
#define _PC_POSIX_SECURITY               91
440
#endif
443
#endif
441
 
444
 
442
/*
445
/*
443
 *  confstr values per IEEE Std 1003.1, 2004 Edition
446
 *  confstr values per IEEE Std 1003.1, 2004 Edition
444
 */
447
 */
445
 
448
 
446
#ifdef __CYGWIN__	/* Only defined on Cygwin for now. */
449
#ifdef __CYGWIN__	/* Only defined on Cygwin for now. */
447
#define _CS_PATH                               0
450
#define _CS_PATH                               0
448
#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS        1
451
#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS        1
449
#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS       _CS_POSIX_V7_ILP32_OFF32_CFLAGS
452
#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS       _CS_POSIX_V7_ILP32_OFF32_CFLAGS
450
#define _CS_XBS5_ILP32_OFF32_CFLAGS           _CS_POSIX_V7_ILP32_OFF32_CFLAGS
453
#define _CS_XBS5_ILP32_OFF32_CFLAGS           _CS_POSIX_V7_ILP32_OFF32_CFLAGS
451
#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS       2
454
#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS       2
452
#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS      _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
455
#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS      _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
453
#define _CS_XBS5_ILP32_OFF32_LDFLAGS          _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
456
#define _CS_XBS5_ILP32_OFF32_LDFLAGS          _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
454
#define _CS_POSIX_V7_ILP32_OFF32_LIBS          3
457
#define _CS_POSIX_V7_ILP32_OFF32_LIBS          3
455
#define _CS_POSIX_V6_ILP32_OFF32_LIBS         _CS_POSIX_V7_ILP32_OFF32_LIBS
458
#define _CS_POSIX_V6_ILP32_OFF32_LIBS         _CS_POSIX_V7_ILP32_OFF32_LIBS
456
#define _CS_XBS5_ILP32_OFF32_LIBS             _CS_POSIX_V7_ILP32_OFF32_LIBS
459
#define _CS_XBS5_ILP32_OFF32_LIBS             _CS_POSIX_V7_ILP32_OFF32_LIBS
457
#define _CS_XBS5_ILP32_OFF32_LINTFLAGS         4
460
#define _CS_XBS5_ILP32_OFF32_LINTFLAGS         4
458
#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS       5
461
#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS       5
459
#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS      _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
462
#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS      _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
460
#define _CS_XBS5_ILP32_OFFBIG_CFLAGS          _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
463
#define _CS_XBS5_ILP32_OFFBIG_CFLAGS          _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
461
#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS      6
464
#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS      6
462
#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
465
#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
463
#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS         _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
466
#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS         _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
464
#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS         7
467
#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS         7
465
#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS        _CS_POSIX_V7_ILP32_OFFBIG_LIBS
468
#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS        _CS_POSIX_V7_ILP32_OFFBIG_LIBS
466
#define _CS_XBS5_ILP32_OFFBIG_LIBS            _CS_POSIX_V7_ILP32_OFFBIG_LIBS
469
#define _CS_XBS5_ILP32_OFFBIG_LIBS            _CS_POSIX_V7_ILP32_OFFBIG_LIBS
467
#define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS        8
470
#define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS        8
468
#define _CS_POSIX_V7_LP64_OFF64_CFLAGS         9
471
#define _CS_POSIX_V7_LP64_OFF64_CFLAGS         9
469
#define _CS_POSIX_V6_LP64_OFF64_CFLAGS        _CS_POSIX_V7_LP64_OFF64_CFLAGS
472
#define _CS_POSIX_V6_LP64_OFF64_CFLAGS        _CS_POSIX_V7_LP64_OFF64_CFLAGS
470
#define _CS_XBS5_LP64_OFF64_CFLAGS            _CS_POSIX_V7_LP64_OFF64_CFLAGS
473
#define _CS_XBS5_LP64_OFF64_CFLAGS            _CS_POSIX_V7_LP64_OFF64_CFLAGS
471
#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS       10
474
#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS       10
472
#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS       _CS_POSIX_V7_LP64_OFF64_LDFLAGS
475
#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS       _CS_POSIX_V7_LP64_OFF64_LDFLAGS
473
#define _CS_XBS5_LP64_OFF64_LDFLAGS           _CS_POSIX_V7_LP64_OFF64_LDFLAGS
476
#define _CS_XBS5_LP64_OFF64_LDFLAGS           _CS_POSIX_V7_LP64_OFF64_LDFLAGS
474
#define _CS_POSIX_V7_LP64_OFF64_LIBS          11
477
#define _CS_POSIX_V7_LP64_OFF64_LIBS          11
475
#define _CS_POSIX_V6_LP64_OFF64_LIBS          _CS_POSIX_V7_LP64_OFF64_LIBS
478
#define _CS_POSIX_V6_LP64_OFF64_LIBS          _CS_POSIX_V7_LP64_OFF64_LIBS
476
#define _CS_XBS5_LP64_OFF64_LIBS              _CS_POSIX_V7_LP64_OFF64_LIBS
479
#define _CS_XBS5_LP64_OFF64_LIBS              _CS_POSIX_V7_LP64_OFF64_LIBS
477
#define _CS_XBS5_LP64_OFF64_LINTFLAGS         12
480
#define _CS_XBS5_LP64_OFF64_LINTFLAGS         12
478
#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS      13
481
#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS      13
479
#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS      _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
482
#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS      _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
480
#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS          _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
483
#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS          _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
481
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS     14
484
#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS     14
482
#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
485
#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
483
#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS         _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
486
#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS         _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
484
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS        15
487
#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS        15
485
#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS        _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
488
#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS        _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
486
#define _CS_XBS5_LPBIG_OFFBIG_LIBS            _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
489
#define _CS_XBS5_LPBIG_OFFBIG_LIBS            _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
487
#define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS       16
490
#define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS       16
488
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS    17
491
#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS    17
489
#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS    _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
492
#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS    _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
-
 
493
#define _CS_XBS5_WIDTH_RESTRICTED_ENVS        _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS
490
#define _CS_POSIX_V7_THREADS_CFLAGS           18
494
#define _CS_POSIX_V7_THREADS_CFLAGS           18
491
#define _CS_POSIX_V7_THREADS_LDFLAGS          19
495
#define _CS_POSIX_V7_THREADS_LDFLAGS          19
492
#define _CS_V7_ENV                            20
496
#define _CS_V7_ENV                            20
493
#define _CS_V6_ENV                           _CS_V6_ENV
497
#define _CS_V6_ENV                            _CS_V7_ENV
494
#endif
498
#endif
495
 
499
 
496
#ifndef __CYGWIN__
500
#ifndef __CYGWIN__
497
# define	MAXPATHLEN	1024
501
# define	MAXPATHLEN	1024
498
#endif
502
#endif
499
 
503
 
500
#ifdef __cplusplus
504
#ifdef __cplusplus
501
}
505
}
502
#endif
506
#endif
503
#endif /* _SYS_UNISTD_H */
507
#endif /* _SYS_UNISTD_H */