3 |
- |
1 |
|
|
|
2 |
/* /usr/include/unistd.h */
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
int access(char *name, int type);
|
|
|
6 |
int euidaccess(char *name, int type);
|
|
|
7 |
int eaccess(char *name, int type);
|
|
|
8 |
int faccessat(int fd, char *file, int type, int flag);
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
__off_t lseek(int fd, __off_t offset, int whence);
|
|
|
12 |
__off64_t lseek64(int fd, __off64_t offset, int whence);
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
int close(int fd);
|
|
|
16 |
size_t read(int fd, void *buf, size_t nbytes);
|
|
|
17 |
size_t write(int fd, void *buf, size_t n);
|
|
|
18 |
size_t pread(int fd, void *buf, size_t nbytes, __off_t offset);
|
|
|
19 |
size_t pwrite(int fd, void *buf, size_t n, __off_t offset);
|
|
|
20 |
size_t pread64(int fd, void *buf, size_t nbytes, __off64_t offset);
|
|
|
21 |
size_t pwrite64(int fd, void *buf, size_t n, __off64_t offset);
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
int pipe(void *pipe);
|
|
|
25 |
u_int alarm(u_int seconds);
|
|
|
26 |
u_int sleep(u_int seconds);
|
|
|
27 |
u_int ualarm(u_int __value, u_int interval);
|
|
|
28 |
int usleep(u_int useconds);
|
|
|
29 |
int pause();
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
int chown(char *file, __uid_t owner, __gid_t group);
|
|
|
33 |
int fchown(int fd, __uid_t owner, __gid_t group);
|
|
|
34 |
int lchown(char *file, __uid_t owner, __gid_t group);
|
|
|
35 |
int fchownat(int fd, char *file, __uid_t owner, __gid_t group, int flag);
|
|
|
36 |
int chdir(char *path);
|
|
|
37 |
int fchdir(int fd);
|
|
|
38 |
char* getcwd(char *buf, size_t size);
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
char* get_current_dir_name();
|
|
|
42 |
char* getwd(char *buf);
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
int dup(int fd);
|
|
|
46 |
int dup2(int fd, int fd2);
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
int execve(char *path, void *argv, void *envp);
|
|
|
50 |
int fexecve(int fd, void *argv, void *envp);
|
|
|
51 |
int execv(char *path, void *argv);
|
|
|
52 |
int execle(char *path, char *arg);
|
|
|
53 |
int execl(char *path, char *arg);
|
|
|
54 |
int execvp(char *file, void *argv);
|
|
|
55 |
int execlp(char *file, char *arg);
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
int nice(int inc);
|
|
|
59 |
void _exit(int status);
|
|
|
60 |
long pathconf(char *path, int name);
|
|
|
61 |
long fpathconf(int fd, int name);
|
|
|
62 |
long sysconf(int name);
|
|
|
63 |
size_t confstr(int name, char *buf, size_t len);
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
__pid_t getpid();
|
|
|
67 |
__pid_t getppid();
|
|
|
68 |
__pid_t getpgrp();
|
|
|
69 |
__pid_t __getpgid(__pid_t pid);
|
|
|
70 |
__pid_t getpgid(__pid_t pid);
|
|
|
71 |
int setpgid(__pid_t pid, __pid_t pgid);
|
|
|
72 |
int setpgrp();
|
|
|
73 |
__pid_t setsid();
|
|
|
74 |
__pid_t getsid(__pid_t pid);
|
|
|
75 |
__uid_t getuid();
|
|
|
76 |
__uid_t geteuid();
|
|
|
77 |
__gid_t getgid();
|
|
|
78 |
__gid_t getegid();
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
int getgroups(int size, void *list);
|
|
|
82 |
int group_member(__gid_t gid);
|
|
|
83 |
int setuid(__uid_t uid);
|
|
|
84 |
int setreuid(__uid_t ruid, __uid_t euid);
|
|
|
85 |
int seteuid(__uid_t uid);
|
|
|
86 |
int setgid(__gid_t gid);
|
|
|
87 |
int setregid(__gid_t rgid, __gid_t egid);
|
|
|
88 |
int setegid(__gid_t gid);
|
|
|
89 |
int getresuid(__uid_t *ruid, __uid_t *euid, __uid_t *suid);
|
|
|
90 |
int getresgid(__gid_t *rgid, __gid_t *egid, __gid_t *sgid);
|
|
|
91 |
int setresuid(__uid_t ruid, __uid_t euid, __uid_t suid);
|
|
|
92 |
int setresgid(__gid_t rgid, __gid_t egid, __gid_t sgid);
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__pid_t fork();
|
|
|
96 |
__pid_t vfork();
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
char* ttyname(int fd);
|
|
|
100 |
int ttyname_r(int fd, char *buf, size_t buflen);
|
|
|
101 |
int isatty(int fd);
|
|
|
102 |
int ttyslot();
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
int link(char *from, char *to);
|
|
|
106 |
int linkat(int fromfd, char *from, int tofd, char *to, int flags);
|
|
|
107 |
int symlink(char *from, char *to);
|
|
|
108 |
size_t readlink(char *path, char *buf, size_t len);
|
|
|
109 |
int symlinkat(char *from, int tofd, char *to);
|
|
|
110 |
size_t readlinkat(int fd, char *path, char *buf, size_t len);
|
|
|
111 |
int unlink(char *name);
|
|
|
112 |
int unlinkat(int fd, char *name, int flag);
|
|
|
113 |
int rmdir(char *path);
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
__pid_t tcgetpgrp(int fd);
|
|
|
117 |
int tcsetpgrp(int fd, __pid_t pgrp_id);
|
|
|
118 |
char* getlogin();
|
|
|
119 |
int getlogin_r(char *name, size_t name_len);
|
|
|
120 |
int setlogin(char *name);
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
int gethostname(char *name, size_t len);
|
|
|
124 |
int sethostname(char *name, size_t len);
|
|
|
125 |
int sethostid(long id);
|
|
|
126 |
int getdomainname(char *name, size_t len);
|
|
|
127 |
int setdomainname(char *name, size_t len);
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
int vhangup();
|
|
|
131 |
int revoke(char *file);
|
|
|
132 |
int profil(u_short *sample_buffer, size_t __size, size_t offset, u_int scale);
|
|
|
133 |
int acct(char *name);
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
char *getusershell();
|
|
|
137 |
void endusershell();
|
|
|
138 |
void setusershell();
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
int daemon(int nochdir, int noclose);
|
|
|
142 |
int chroot(char *path);
|
|
|
143 |
char* getpass(char *prompt);
|
|
|
144 |
int fsync(int fd);
|
|
|
145 |
long gethostid();
|
|
|
146 |
void sync();
|
|
|
147 |
int getpagesize();
|
|
|
148 |
int getdtablesize();
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
int truncate(char *file, __off_t length);
|
|
|
152 |
int truncate64(char *file, __off64_t length);
|
|
|
153 |
int ftruncate(int fd, __off_t length);
|
|
|
154 |
int ftruncate64(int fd, __off64_t length);
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
int brk(void *addr);
|
|
|
158 |
void* sbrk(u_int delta);
|
|
|
159 |
long syscall(long sysno = SYSCALL_NO);
|
|
|
160 |
|
|
|
161 |
int lockf(int fd, int cmd, __off_t len);
|
|
|
162 |
int lockf64(int fd, int cmd, __off64_t len);
|
|
|
163 |
int fdatasync(int fildes);
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
char* crypt(char *key, char *salt);
|
|
|
167 |
void encrypt(char *block, int edflag);
|
|
|
168 |
|
|
|
169 |
void swab(void *from, void *to, size_t n);
|
|
|
170 |
char* ctermid(char* s);
|