blob: 65414d55df4546cb9b6087dd81e33a3099e584c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef _UNISTD_H
#define _UNISTD_H
#include <stddef.h>
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
long read(int fd, void* buffer, size_t length);
long write(int fd, const void* buffer, size_t length);
int close(int fd);
long lseek(int fd, long offset, int whence);
void* sbrk(long increment);
int brk(void* address);
int fork(void);
int exec(const char* path, const char* arg);
int wait(int* status);
int getpid(void);
#endif
|