unistd: add execv()
[neatlibc.git] / unistd.h
blob67f55c056983c7e9e56385c30732c74c4fe9be83
1 #include <stddef.h>
3 #define SEEK_SET 0
4 #define SEEK_CUR 1
5 #define SEEK_END 2
7 #define STDIN_FILENO 0
8 #define STDOUT_FILENO 1
9 #define STDERR_FILENO 2
11 #define R_OK 4
12 #define W_OK 2
13 #define X_OK 1
14 #define F_OK 0
15 int access(char *name, int type);
17 extern char **environ;
19 int close(int fd);
20 long write(int fd, void *buf, long n);
21 long read(int fd, void *buf, long n);
23 #define SEEK_SET 0
24 #define SEEK_CUR 1
25 #define SEEK_END 2
26 long lseek(int fd, long offset, int whence);
28 void _exit(int status);
29 int execve(char *path, char *argv[], char *envp[]);
30 int execle(char *path, ...);
31 int execvp(char *file, char *argv[]);
32 int execv(char *path, char *argv[]);
33 int sleep(int n);