1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef _UNISTD_H
#define _UNISTD_H
#include <dirent.h>
#include <sys/cdefs.h>
#include <sys/types.h>
const enum {
SEEK_SET=0,
SEEK_CUR=1,
SEEK_END=2
} __seek_types;
off_t lseek(int fildes, off_t offset, int whence) __THROW;
int chdir(const char *path) __THROW;
int fchdir(int fd) __THROW;
int mkdir(const char *pathname, mode_t mode) __THROW;
int rmdir(const char *pathname) __THROW;
char *getcwd(char *buf, size_t size) __THROW;
int open(const char* pathname,int flags, ...) __THROW;
int creat(const char* pathname,mode_t mode) __THROW;
int write(int fd,const void* buf,size_t len) __THROW;
int read(int fd,const void* buf,size_t len) __THROW;
int close(int fd) __THROW;
int pread(int fd, void *buf, size_t count, off_t offset);
int pwrite(int fd, const void *buf, size_t count, off_t offset);
int execve (const char *filename, char *const argv [], char *const envp[]) __THROW;
int execl( const char *path, ...);
int execv (const char *__path, char *const __argv[]) __THROW;
pid_t getpid(void) __attribute__((const)) __THROW;
pid_t getppid(void) __THROW;
int kill(pid_t pid, int sig) __THROW;
int mknod(const char *pathname, mode_t mode, dev_t dev) __THROW;
int getdents(unsigned int fd, struct dirent *dirp, unsigned int count) __THROW;
int getdents64(unsigned int fd, struct dirent64 *dirp, unsigned int count) __THROW;
pid_t fork() __THROW;
pid_t vfork() __THROW;
int readlink(const char *path, char *buf, size_t bufsiz) __THROW;
int symlink(const char *oldpath, const char *newpath) __THROW;
int link(const char *oldpath, const char *newpath) __THROW;
int unlink (const char *__name) __THROW;
int chown(const char *path, uid_t owner, gid_t group) __THROW;
int fchown(int fd, uid_t owner, gid_t group) __THROW;
int lchown(const char *path, uid_t owner, gid_t group) __THROW;
char *ttyname (int desc) __THROW;
int brk(void *end_data_segment) __THROW;
void *sbrk(ptrdiff_t increment) __THROW;
int gethostname(char *name, size_t len) __THROW;
/* Values for the second argument to access.
These may be OR'd together. */
#define R_OK 4 /* Test for read permission. */
#define W_OK 2 /* Test for write permission. */
#define X_OK 1 /* Test for execute permission. */
#define F_OK 0 /* Test for existence. */
int access (char *__name, int __type) __THROW;
int dup2 (int __fd, int __fd2) __THROW;
pid_t setsid (void) __THROW;
#endif
|