malloc: more compact memory pools
[neatlibc.git] / unistd.h
blob6c57aae6be49194b4efbf7bb8894dd8c511316f2
1 #include <stddef.h>
3 /* access() flags */
4 #define R_OK 4
5 #define W_OK 2
6 #define X_OK 1
7 #define F_OK 0
9 int access(char *name, int type);
10 int unlink(char *path);
12 extern char **environ;
14 int close(int fd);
15 long write(int fd, void *buf, long n);
16 long read(int fd, void *buf, long n);
18 /* lseek() whence */
19 #define SEEK_SET 0
20 #define SEEK_CUR 1
21 #define SEEK_END 2
23 long lseek(int fd, long offset, int whence);
25 int pipe(int fds[2]);
26 int dup(int fd);
27 int dup2(int fd, int fd2);
29 int fork(void);
30 int getpid(void);
31 int getppid(void);
33 int execve(char *path, char *argv[], char *envp[]);
34 int execle(char *path, ...);
35 int execvp(char *file, char *argv[]);
36 int execv(char *path, char *argv[]);
38 void _exit(int status);
40 int sleep(int n);
42 /* standard file descriptors */
43 #define STDIN_FILENO 0
44 #define STDOUT_FILENO 1
45 #define STDERR_FILENO 2