2 # include <posix/unistd.h>
4 /* Now define the internal interfaces. */
5 extern int __access
__P ((__const
char *__name
, int __type
));
6 extern int __euidaccess
__P ((__const
char *__name
, int __type
));
7 extern __off64_t __lseek64
__P ((int __fd
, __off64_t __offset
, int __whence
));
8 extern ssize_t __pread
__P ((int __fd
, __ptr_t __buf
, size_t __nbytes
,
10 extern ssize_t __pwrite
__P ((int __fd
, __const __ptr_t __buf
, size_t __n
,
12 extern int __pipe
__P ((int __pipedes
[2]));
13 extern unsigned int __sleep
__P ((unsigned int __seconds
));
14 extern int __chown
__P ((__const
char *__file
,
15 __uid_t __owner
, __gid_t __group
));
16 extern int __fchown
__P ((int __fd
,
17 __uid_t __owner
, __gid_t __group
));
18 extern int __lchown
__P ((__const
char *__file
, __uid_t __owner
,
20 extern int __fchdir
__P ((int __fd
));
21 extern char *__getcwd
__P ((char *__buf
, size_t __size
));
23 /* Get the canonical absolute name of the named directory, and put it in SIZE
24 bytes of BUF. Returns NULL if the directory couldn't be determined or
25 SIZE was too small. If successful, returns BUF. In GNU, if BUF is
26 NULL, an array is allocated with `malloc'; the array is SIZE bytes long,
27 unless SIZE <= 0, in which case it is as big as necessary. */
29 char *__canonicalize_directory_name_internal
__P ((__const
char *__thisdir
,
33 extern int __dup
__P ((int __fd
));
34 extern int __dup2
__P ((int __fd
, int __fd2
));
35 extern int __execve
__P ((__const
char *__path
, char *__const __argv
[],
36 char *__const __envp
[]));
37 extern long int __pathconf
__P ((__const
char *__path
, int __name
));
38 extern long int __fpathconf
__P ((int __fd
, int __name
));
39 extern long int __sysconf
__P ((int __name
));
40 extern __pid_t __getppid
__P ((void));
41 extern __pid_t __setsid
__P ((void));
42 extern __uid_t __getuid
__P ((void));
43 extern __uid_t __geteuid
__P ((void));
44 extern __gid_t __getgid
__P ((void));
45 extern __gid_t __getegid
__P ((void));
46 extern int __getgroups
__P ((int __size
, __gid_t __list
[]));
47 extern int __group_member
__P ((__gid_t __gid
));
48 extern int __setuid
__P ((__uid_t __uid
));
49 extern int __setreuid
__P ((__uid_t __ruid
, __uid_t __euid
));
50 extern int __setgid
__P ((__gid_t __gid
));
51 extern int __setregid
__P ((__gid_t __rgid
, __gid_t __egid
));
52 extern __pid_t __vfork
__P ((void));
53 extern int __ttyname_r
__P ((int __fd
, char *__buf
, size_t __buflen
));
54 extern int __isatty
__P ((int __fd
));
55 extern int __link
__P ((__const
char *__from
, __const
char *__to
));
56 extern int __symlink
__P ((__const
char *__from
, __const
char *__to
));
57 extern int __readlink
__P ((__const
char *__path
, char *__buf
, size_t __len
));
58 extern int __unlink
__P ((__const
char *__name
));
59 extern int __rmdir
__P ((__const
char *__path
));
60 extern int __gethostname
__P ((char *__name
, size_t __len
));
61 extern int __profil
__P ((unsigned short int *__sample_buffer
, size_t __size
,
62 size_t __offset
, unsigned int __scale
));
63 extern int __getdtablesize
__P ((void));
64 extern int __brk
__P ((__ptr_t __addr
));