Subversion Repositories Kolibri OS

Rev

Rev 6099 | Rev 6607 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6099 Rev 6536
Line 22... Line 22...
22
int     _EXFUN(chdir, (const char *__path ));
22
int     _EXFUN(chdir, (const char *__path ));
23
int     _EXFUN(chmod, (const char *__path, mode_t __mode ));
23
int     _EXFUN(chmod, (const char *__path, mode_t __mode ));
24
#if !defined(__INSIDE_CYGWIN__)
24
#if !defined(__INSIDE_CYGWIN__)
25
int     _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
25
int     _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
26
#endif
26
#endif
27
#if defined(__CYGWIN__) || defined(__rtems__)
27
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112)
28
int     _EXFUN(chroot, (const char *__path ));
28
int     _EXFUN(chroot, (const char *__path ));
29
#endif
29
#endif
30
int     _EXFUN(close, (int __fildes ));
30
int     _EXFUN(close, (int __fildes ));
31
#if defined(__CYGWIN__)
31
#if __POSIX_VISIBLE >= 199209
32
size_t	_EXFUN(confstr, (int __name, char *__buf, size_t __len));
32
size_t	_EXFUN(confstr, (int __name, char *__buf, size_t __len));
33
#endif
33
#endif
34
char *  _EXFUN(ctermid, (char *__s ));
34
char *  _EXFUN(ctermid, (char *__s ));
35
char *  _EXFUN(cuserid, (char *__s ));
35
char *  _EXFUN(cuserid, (char *__s ));
36
#if defined(__CYGWIN__)
36
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
37
int	_EXFUN(daemon, (int nochdir, int noclose));
37
int	_EXFUN(daemon, (int nochdir, int noclose));
38
#endif
38
#endif
39
int     _EXFUN(dup, (int __fildes ));
39
int     _EXFUN(dup, (int __fildes ));
40
int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
40
int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
41
#if defined(__CYGWIN__)
41
#if __GNU_VISIBLE
42
int     _EXFUN(dup3, (int __fildes, int __fildes2, int flags));
42
int     _EXFUN(dup3, (int __fildes, int __fildes2, int flags));
43
int	_EXFUN(eaccess, (const char *__path, int __mode));
43
int	_EXFUN(eaccess, (const char *__path, int __mode));
-
 
44
#endif
-
 
45
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
44
void	_EXFUN(endusershell, (void));
46
void	_EXFUN(endusershell, (void));
-
 
47
#endif
-
 
48
#if __GNU_VISIBLE
45
int	_EXFUN(euidaccess, (const char *__path, int __mode));
49
int	_EXFUN(euidaccess, (const char *__path, int __mode));
46
#endif
50
#endif
47
int     _EXFUN(execl, (const char *__path, const char *, ... ));
51
int     _EXFUN(execl, (const char *__path, const char *, ... ));
48
int     _EXFUN(execle, (const char *__path, const char *, ... ));
52
int     _EXFUN(execle, (const char *__path, const char *, ... ));
49
int     _EXFUN(execlp, (const char *__file, const char *, ... ));
53
int     _EXFUN(execlp, (const char *__file, const char *, ... ));
50
#if defined(__CYGWIN__)
54
#if __MISC_VISIBLE
51
int     _EXFUN(execlpe, (const char *__file, const char *, ... ));
55
int     _EXFUN(execlpe, (const char *__file, const char *, ... ));
52
#endif
56
#endif
53
int     _EXFUN(execv, (const char *__path, char * const __argv[] ));
57
int     _EXFUN(execv, (const char *__path, char * const __argv[] ));
54
int     _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
58
int     _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
55
int     _EXFUN(execvp, (const char *__file, char * const __argv[] ));
59
int     _EXFUN(execvp, (const char *__file, char * const __argv[] ));
56
#if defined(__CYGWIN__)
60
#if __GNU_VISIBLE
57
int     _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
61
int     _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
58
#endif
62
#endif
59
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE || defined(__CYGWIN__)
63
#if __ATFILE_VISIBLE
60
int	_EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
64
int	_EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
61
#endif
65
#endif
62
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__SPU__)
66
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
63
int     _EXFUN(fchdir, (int __fildes));
67
int     _EXFUN(fchdir, (int __fildes));
64
#endif
68
#endif
65
int     _EXFUN(fchmod, (int __fildes, mode_t __mode ));
69
int     _EXFUN(fchmod, (int __fildes, mode_t __mode ));
66
#if !defined(__INSIDE_CYGWIN__)
70
#if !defined(__INSIDE_CYGWIN__)
67
int     _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
71
int     _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
68
#endif
72
#endif
69
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE || defined(__CYGWIN__)
73
#if __ATFILE_VISIBLE
70
int	_EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
74
int	_EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
71
#endif
75
#endif
72
#if defined(__CYGWIN__)
76
#if __POSIX_VISIBLE >= 200809
73
int	_EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
77
int	_EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
74
#endif
78
#endif
75
pid_t   _EXFUN(fork, (void ));
79
pid_t   _EXFUN(fork, (void ));
76
long    _EXFUN(fpathconf, (int __fd, int __name ));
80
long    _EXFUN(fpathconf, (int __fd, int __name ));
77
int     _EXFUN(fsync, (int __fd));
81
int     _EXFUN(fsync, (int __fd));
78
int     _EXFUN(fdatasync, (int __fd));
82
int     _EXFUN(fdatasync, (int __fd));
79
#if defined(__CYGWIN__)
83
#if __GNU_VISIBLE
80
char *  _EXFUN(get_current_dir_name, (void));
84
char *  _EXFUN(get_current_dir_name, (void));
81
#endif
85
#endif
82
char *  _EXFUN(getcwd, (char *__buf, size_t __size ));
86
char *  _EXFUN(getcwd, (char *__buf, size_t __size ));
83
#if defined(__CYGWIN__)
87
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
84
int	_EXFUN(getdomainname ,(char *__name, size_t __len));
88
int	_EXFUN(getdomainname ,(char *__name, size_t __len));
85
#endif
89
#endif
-
 
90
#if __BSD_VISIBLE
-
 
91
int     _EXFUN(getentropy, (void *, size_t));
-
 
92
#endif
86
#if !defined(__INSIDE_CYGWIN__)
93
#if !defined(__INSIDE_CYGWIN__)
87
gid_t   _EXFUN(getegid, (void ));
94
gid_t   _EXFUN(getegid, (void ));
88
uid_t   _EXFUN(geteuid, (void ));
95
uid_t   _EXFUN(geteuid, (void ));
89
gid_t   _EXFUN(getgid, (void ));
96
gid_t   _EXFUN(getgid, (void ));
90
#endif
97
#endif
91
int     _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
98
int     _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
92
#if defined(__CYGWIN__)
99
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
93
long    _EXFUN(gethostid, (void));
100
long    _EXFUN(gethostid, (void));
94
#endif
101
#endif
95
char *  _EXFUN(getlogin, (void ));
102
char *  _EXFUN(getlogin, (void ));
96
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
103
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
97
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
104
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
98
#endif
105
#endif
99
char *  _EXFUN(getpass, (const char *__prompt));
106
char *  _EXFUN(getpass, (const char *__prompt));
100
int	_EXFUN(getpagesize, (void));
107
int	_EXFUN(getpagesize, (void));
101
#if defined(__CYGWIN__)
108
#if __BSD_VISIBLE
102
int    _EXFUN(getpeereid, (int, uid_t *, gid_t *));
109
int    _EXFUN(getpeereid, (int, uid_t *, gid_t *));
103
#endif
110
#endif
104
pid_t   _EXFUN(getpgid, (pid_t));
111
pid_t   _EXFUN(getpgid, (pid_t));
105
pid_t   _EXFUN(getpgrp, (void ));
112
pid_t   _EXFUN(getpgrp, (void ));
106
pid_t   _EXFUN(getpid, (void ));
113
pid_t   _EXFUN(getpid, (void ));
107
pid_t   _EXFUN(getppid, (void ));
114
pid_t   _EXFUN(getppid, (void ));
108
#if defined(__CYGWIN__) || defined(__rtems__)
115
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
109
pid_t   _EXFUN(getsid, (pid_t));
116
pid_t   _EXFUN(getsid, (pid_t));
110
#endif
117
#endif
111
#if !defined(__INSIDE_CYGWIN__)
118
#if !defined(__INSIDE_CYGWIN__)
112
uid_t   _EXFUN(getuid, (void ));
119
uid_t   _EXFUN(getuid, (void ));
113
#endif
120
#endif
114
#ifdef __CYGWIN__
121
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
115
char *	_EXFUN(getusershell, (void));
122
char *	_EXFUN(getusershell, (void));
-
 
123
#endif
-
 
124
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200809)
116
char *  _EXFUN(getwd, (char *__buf ));
125
char *  _EXFUN(getwd, (char *__buf ));
-
 
126
#endif
-
 
127
#if __BSD_VISIBLE
117
int	_EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
128
int	_EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
118
#endif
129
#endif
119
int     _EXFUN(isatty, (int __fildes ));
130
int     _EXFUN(isatty, (int __fildes ));
120
#if __BSD_VISIBLE
131
#if __BSD_VISIBLE
121
int        _EXFUN(issetugid, (void));
132
int        _EXFUN(issetugid, (void));
122
#endif
133
#endif
123
#if !defined(__INSIDE_CYGWIN__)
134
#if !defined(__INSIDE_CYGWIN__)
124
int     _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
135
int     _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
125
#endif
136
#endif
126
int     _EXFUN(link, (const char *__path1, const char *__path2 ));
137
int     _EXFUN(link, (const char *__path1, const char *__path2 ));
127
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE || defined(__CYGWIN__)
138
#if __ATFILE_VISIBLE
128
int     _EXFUN(linkat, (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags ));
139
int     _EXFUN(linkat, (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags ));
129
#endif
140
#endif
130
int	_EXFUN(nice, (int __nice_value ));
141
int	_EXFUN(nice, (int __nice_value ));
131
#if !defined(__INSIDE_CYGWIN__)
142
#if !defined(__INSIDE_CYGWIN__)
132
off_t   _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
143
off_t   _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
133
#endif
144
#endif
134
#if defined(__SPU__) || defined(__CYGWIN__)
145
#if __MISC_VISIBLE || __XSI_VISIBLE >= 4
135
#define F_ULOCK	0
146
#define F_ULOCK	0
136
#define F_LOCK	1
147
#define F_LOCK	1
137
#define F_TLOCK	2
148
#define F_TLOCK	2
138
#define F_TEST	3
149
#define F_TEST	3
139
int     _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
150
int     _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
140
#endif
151
#endif
141
long    _EXFUN(pathconf, (const char *__path, int __name ));
152
long    _EXFUN(pathconf, (const char *__path, int __name ));
142
int     _EXFUN(pause, (void ));
153
int     _EXFUN(pause, (void ));
143
#ifdef __CYGWIN__
154
#if __POSIX_VISIBLE >= 199506
144
int	_EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
155
int	_EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
145
#endif
156
#endif
146
int     _EXFUN(pipe, (int __fildes[2] ));
157
int     _EXFUN(pipe, (int __fildes[2] ));
147
#ifdef __CYGWIN__
158
#if __GNU_VISIBLE
148
int     _EXFUN(pipe2, (int __fildes[2], int flags));
159
int     _EXFUN(pipe2, (int __fildes[2], int flags));
149
#endif
160
#endif
150
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
161
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
151
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
162
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
152
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
163
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
153
#if defined(__CYGWIN__)
164
#if __BSD_VISIBLE
154
int	_EXFUN(rresvport, (int *__alport));
165
int	_EXFUN(rresvport, (int *__alport));
155
int	_EXFUN(revoke, (char *__path));
166
int	_EXFUN(revoke, (char *__path));
156
#endif
167
#endif
157
int     _EXFUN(rmdir, (const char *__path ));
168
int     _EXFUN(rmdir, (const char *__path ));
158
#if defined(__CYGWIN__)
169
#if __BSD_VISIBLE
159
int	_EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
170
int	_EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
160
#endif
171
#endif
161
void *  _EXFUN(sbrk,  (ptrdiff_t __incr));
172
void *  _EXFUN(sbrk,  (ptrdiff_t __incr));
162
#if !defined(__INSIDE_CYGWIN__)
173
#if !defined(__INSIDE_CYGWIN__)
163
#if defined(__CYGWIN__) || defined(__rtems__)
174
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
164
int     _EXFUN(setegid, (gid_t __gid ));
175
int     _EXFUN(setegid, (gid_t __gid ));
165
int     _EXFUN(seteuid, (uid_t __uid ));
176
int     _EXFUN(seteuid, (uid_t __uid ));
166
#endif
177
#endif
167
int     _EXFUN(setgid, (gid_t __gid ));
178
int     _EXFUN(setgid, (gid_t __gid ));
168
#endif
179
#endif
169
#if defined(__CYGWIN__)
180
#if __BSD_VISIBLE
170
int	_EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
181
int	_EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
171
#endif
182
#endif
172
#if __BSD_VISIBLE || (defined(_XOPEN_SOURCE) && __XSI_VISIBLE < 500)
183
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
173
int	_EXFUN(sethostname, (const char *, size_t));
184
int	_EXFUN(sethostname, (const char *, size_t));
174
#endif
185
#endif
175
int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
186
int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
176
int     _EXFUN(setpgrp, (void ));
187
int     _EXFUN(setpgrp, (void ));
177
#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
188
#if (__BSD_VISIBLE || __XSI_VISIBLE >= 4) && !defined(__INSIDE_CYGWIN__)
178
int	_EXFUN(setregid, (gid_t __rgid, gid_t __egid));
189
int	_EXFUN(setregid, (gid_t __rgid, gid_t __egid));
179
int	_EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
190
int	_EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
180
#endif
191
#endif
181
pid_t   _EXFUN(setsid, (void ));
192
pid_t   _EXFUN(setsid, (void ));
182
#if !defined(__INSIDE_CYGWIN__)
193
#if !defined(__INSIDE_CYGWIN__)
183
int     _EXFUN(setuid, (uid_t __uid ));
194
int     _EXFUN(setuid, (uid_t __uid ));
184
#endif
195
#endif
185
#if defined(__CYGWIN__)
196
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
186
void	_EXFUN(setusershell, (void));
197
void	_EXFUN(setusershell, (void));
187
#endif
198
#endif
188
unsigned _EXFUN(sleep, (unsigned int __seconds ));
199
unsigned _EXFUN(sleep, (unsigned int __seconds ));
189
void    _EXFUN(swab, (const void *__restrict, void *__restrict, ssize_t));
200
void    _EXFUN(swab, (const void *__restrict, void *__restrict, ssize_t));
190
long    _EXFUN(sysconf, (int __name ));
201
long    _EXFUN(sysconf, (int __name ));
191
pid_t   _EXFUN(tcgetpgrp, (int __fildes ));
202
pid_t   _EXFUN(tcgetpgrp, (int __fildes ));
192
int     _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
203
int     _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
193
char *  _EXFUN(ttyname, (int __fildes ));
204
char *  _EXFUN(ttyname, (int __fildes ));
194
#if defined(__CYGWIN__) || defined(__rtems__)
-
 
195
int     _EXFUN(ttyname_r, (int, char *, size_t)); 
205
int     _EXFUN(ttyname_r, (int, char *, size_t)); 
196
#endif
-
 
197
int     _EXFUN(unlink, (const char *__path ));
206
int     _EXFUN(unlink, (const char *__path ));
198
int 	_EXFUN(usleep, (useconds_t __useconds));
207
int 	_EXFUN(usleep, (useconds_t __useconds));
199
int     _EXFUN(vhangup, (void ));
208
int     _EXFUN(vhangup, (void ));
200
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
209
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
Line 208... Line 217...
208
extern int optind, opterr, optopt;
217
extern int optind, opterr, optopt;
209
int	 getopt(int, char * const [], const char *);
218
int	 getopt(int, char * const [], const char *);
210
extern int optreset;			/* getopt(3) external variable */
219
extern int optreset;			/* getopt(3) external variable */
211
#endif
220
#endif
Line 212... Line 221...
212
 
221
 
213
#ifndef        _POSIX_SOURCE
222
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200809)
214
pid_t   _EXFUN(vfork, (void ));
223
pid_t   _EXFUN(vfork, (void ));
Line 215... Line 224...
215
#endif /* _POSIX_SOURCE */
224
#endif
216
 
225
 
217
#ifdef _COMPILING_NEWLIB
226
#ifdef _COMPILING_NEWLIB
218
/* Provide prototypes for most of the _ names that are
227
/* Provide prototypes for most of the _ names that are
Line 253... Line 262...
253
 
262
 
254
#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
263
#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
255
void    _EXFUN(sync, (void));
264
void    _EXFUN(sync, (void));
Line -... Line 265...
-
 
265
#endif
256
#endif
266
 
257
 
267
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 4
258
ssize_t _EXFUN(readlink, (const char *__restrict __path,
268
ssize_t _EXFUN(readlink, (const char *__restrict __path,
-
 
269
                          char *__restrict __buf, size_t __buflen));
-
 
270
int     _EXFUN(symlink, (const char *__name1, const char *__name2));
259
                          char *__restrict __buf, size_t __buflen));
271
#endif
260
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE || defined(__CYGWIN__)
272
#if __ATFILE_VISIBLE
261
ssize_t        _EXFUN(readlinkat, (int __dirfd1, const char *__restrict __path,
-
 
262
                            char *__restrict __buf, size_t __buflen));
-
 
263
#endif
-
 
264
int     _EXFUN(symlink, (const char *__name1, const char *__name2));
273
ssize_t        _EXFUN(readlinkat, (int __dirfd1, const char *__restrict __path,
265
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE || defined(__CYGWIN__)
274
                            char *__restrict __buf, size_t __buflen));
266
int	_EXFUN(symlinkat, (const char *, int, const char *));
275
int	_EXFUN(symlinkat, (const char *, int, const char *));
Line 267... Line 276...
267
int	_EXFUN(unlinkat, (int, const char *, int));
276
int	_EXFUN(unlinkat, (int, const char *, int));