]>
Commit | Line | Data |
---|---|---|
f001ded0 UD |
1 | #ifndef _UNISTD_H |
2 | # include <posix/unistd.h> | |
bdbf022d UD |
3 | |
4 | /* Now define the internal interfaces. */ | |
aaa8d85c UD |
5 | extern int __access (__const char *__name, int __type); |
6 | extern int __euidaccess (__const char *__name, int __type); | |
778c59c8 | 7 | extern int __libc_open64 (const char *file, int oflag, ...); |
aaa8d85c | 8 | extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence); |
778c59c8 | 9 | extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence); |
aaa8d85c UD |
10 | extern ssize_t __pread (int __fd, void *__buf, size_t __nbytes, |
11 | __off_t __offset); | |
778c59c8 UD |
12 | extern ssize_t __libc_pread (int __fd, void *__buf, size_t __nbytes, |
13 | __off_t __offset); | |
14 | extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes, | |
15 | __off64_t __offset); | |
aaa8d85c UD |
16 | extern ssize_t __pwrite (int __fd, __const void *__buf, size_t __n, |
17 | __off_t __offset); | |
778c59c8 UD |
18 | extern ssize_t __libc_pwrite (int __fd, __const void *__buf, size_t __n, |
19 | __off_t __offset); | |
20 | extern ssize_t __libc_pwrite64 (int __fd, __const void *__buf, size_t __n, | |
21 | __off64_t __offset); | |
aaa8d85c UD |
22 | extern int __pipe (int __pipedes[2]); |
23 | extern unsigned int __sleep (unsigned int __seconds); | |
24 | extern int __chown (__const char *__file, | |
25 | __uid_t __owner, __gid_t __group); | |
26 | extern int __fchown (int __fd, | |
27 | __uid_t __owner, __gid_t __group); | |
28 | extern int __lchown (__const char *__file, __uid_t __owner, | |
29 | __gid_t __group); | |
30 | extern int __chdir (__const char *__path); | |
31 | extern int __fchdir (int __fd); | |
32 | extern char *__getcwd (char *__buf, size_t __size); | |
bdbf022d UD |
33 | |
34 | /* Get the canonical absolute name of the named directory, and put it in SIZE | |
35 | bytes of BUF. Returns NULL if the directory couldn't be determined or | |
36 | SIZE was too small. If successful, returns BUF. In GNU, if BUF is | |
37 | NULL, an array is allocated with `malloc'; the array is SIZE bytes long, | |
38 | unless SIZE <= 0, in which case it is as big as necessary. */ | |
39 | ||
aaa8d85c UD |
40 | char *__canonicalize_directory_name_internal (__const char *__thisdir, |
41 | char *__buf, | |
42 | size_t __size); | |
bdbf022d | 43 | |
aaa8d85c UD |
44 | extern int __dup (int __fd); |
45 | extern int __dup2 (int __fd, int __fd2); | |
46 | extern int __execve (__const char *__path, char *__const __argv[], | |
47 | char *__const __envp[]); | |
48 | extern long int __pathconf (__const char *__path, int __name); | |
49 | extern long int __fpathconf (int __fd, int __name); | |
50 | extern long int __sysconf (int __name); | |
51 | extern __pid_t __getppid (void); | |
52 | extern __pid_t __setsid (void); | |
53 | extern __uid_t __getuid (void); | |
54 | extern __uid_t __geteuid (void); | |
55 | extern __gid_t __getgid (void); | |
56 | extern __gid_t __getegid (void); | |
57 | extern int __getgroups (int __size, __gid_t __list[]); | |
58 | extern int __group_member (__gid_t __gid); | |
59 | extern int __setuid (__uid_t __uid); | |
60 | extern int __setreuid (__uid_t __ruid, __uid_t __euid); | |
61 | extern int __setgid (__gid_t __gid); | |
62 | extern int __setregid (__gid_t __rgid, __gid_t __egid); | |
63 | extern __pid_t __vfork (void); | |
64 | extern int __ttyname_r (int __fd, char *__buf, size_t __buflen); | |
65 | extern int __isatty (int __fd); | |
66 | extern int __link (__const char *__from, __const char *__to); | |
67 | extern int __symlink (__const char *__from, __const char *__to); | |
68 | extern int __readlink (__const char *__path, char *__buf, size_t __len); | |
69 | extern int __unlink (__const char *__name); | |
70 | extern int __rmdir (__const char *__path); | |
71 | extern int __gethostname (char *__name, size_t __len); | |
72 | extern int __profil (unsigned short int *__sample_buffer, size_t __size, | |
73 | size_t __offset, unsigned int __scale); | |
74 | extern int __getdtablesize (void); | |
75 | extern int __brk (void *__addr); | |
06535ae9 UD |
76 | |
77 | ||
78 | /* This variable is set nonzero at startup if the process's effective | |
79 | IDs differ from its real IDs, or it is otherwise indicated that | |
80 | extra security should be used. When this is set the dynamic linker | |
81 | and some functions contained in the C library ignore various | |
82 | environment variables that normally affect them. */ | |
83 | extern int __libc_enable_secure; | |
84 | ||
f001ded0 | 85 | #endif |