]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/unistd.h
Update.
[thirdparty/glibc.git] / include / unistd.h
CommitLineData
f001ded0
UD
1#ifndef _UNISTD_H
2# include <posix/unistd.h>
bdbf022d
UD
3
4/* Now define the internal interfaces. */
aaa8d85c
UD
5extern int __access (__const char *__name, int __type);
6extern int __euidaccess (__const char *__name, int __type);
778c59c8 7extern int __libc_open64 (const char *file, int oflag, ...);
aaa8d85c 8extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence);
778c59c8 9extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence);
aaa8d85c
UD
10extern ssize_t __pread (int __fd, void *__buf, size_t __nbytes,
11 __off_t __offset);
778c59c8
UD
12extern ssize_t __libc_pread (int __fd, void *__buf, size_t __nbytes,
13 __off_t __offset);
14extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes,
15 __off64_t __offset);
aaa8d85c
UD
16extern ssize_t __pwrite (int __fd, __const void *__buf, size_t __n,
17 __off_t __offset);
778c59c8
UD
18extern ssize_t __libc_pwrite (int __fd, __const void *__buf, size_t __n,
19 __off_t __offset);
20extern ssize_t __libc_pwrite64 (int __fd, __const void *__buf, size_t __n,
21 __off64_t __offset);
aaa8d85c
UD
22extern int __pipe (int __pipedes[2]);
23extern unsigned int __sleep (unsigned int __seconds);
24extern int __chown (__const char *__file,
25 __uid_t __owner, __gid_t __group);
26extern int __fchown (int __fd,
27 __uid_t __owner, __gid_t __group);
28extern int __lchown (__const char *__file, __uid_t __owner,
29 __gid_t __group);
30extern int __chdir (__const char *__path);
31extern int __fchdir (int __fd);
32extern 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
40char *__canonicalize_directory_name_internal (__const char *__thisdir,
41 char *__buf,
42 size_t __size);
bdbf022d 43
aaa8d85c
UD
44extern int __dup (int __fd);
45extern int __dup2 (int __fd, int __fd2);
46extern int __execve (__const char *__path, char *__const __argv[],
47 char *__const __envp[]);
48extern long int __pathconf (__const char *__path, int __name);
49extern long int __fpathconf (int __fd, int __name);
50extern long int __sysconf (int __name);
51extern __pid_t __getppid (void);
52extern __pid_t __setsid (void);
53extern __uid_t __getuid (void);
54extern __uid_t __geteuid (void);
55extern __gid_t __getgid (void);
56extern __gid_t __getegid (void);
57extern int __getgroups (int __size, __gid_t __list[]);
58extern int __group_member (__gid_t __gid);
59extern int __setuid (__uid_t __uid);
60extern int __setreuid (__uid_t __ruid, __uid_t __euid);
61extern int __setgid (__gid_t __gid);
62extern int __setregid (__gid_t __rgid, __gid_t __egid);
63extern __pid_t __vfork (void);
64extern int __ttyname_r (int __fd, char *__buf, size_t __buflen);
65extern int __isatty (int __fd);
66extern int __link (__const char *__from, __const char *__to);
67extern int __symlink (__const char *__from, __const char *__to);
68extern int __readlink (__const char *__path, char *__buf, size_t __len);
69extern int __unlink (__const char *__name);
70extern int __rmdir (__const char *__path);
71extern int __gethostname (char *__name, size_t __len);
72extern int __profil (unsigned short int *__sample_buffer, size_t __size,
73 size_t __offset, unsigned int __scale);
74extern int __getdtablesize (void);
75extern 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. */
83extern int __libc_enable_secure;
84
f001ded0 85#endif