1
2
3 #ifndef _UNISTD_H
4 #define _UNISTD_H
5
6 #include <sys/types.h>
7 #include <pwd.h>
8
9
10
11
12
13
14
15
16
17 extern ssize_t readlink (const char *, char *, size_t);
18 extern ssize_t readlinkat (int, const char *, char *, size_t);
19 extern int symlink (char const *, char const *);
20 extern int setpgid (pid_t, pid_t);
21 extern pid_t getpgrp (void);
22 extern pid_t setsid (void);
23 extern pid_t tcgetpgrp (int);
24
25 extern int faccessat (int, char const *, int, int);
26
27
28
29 #define AT_FDCWD (-3041965)
30 #define AT_EACCESS 4
31 #define AT_SYMLINK_NOFOLLOW 4096
32
33 #define O_IGNORE_CTTY 0
34 #define O_NOCTTY 0
35 #define O_NOFOLLOW 0
36
37
38 extern int unsetenv (const char *);
39
40 #endif