feat: msync(2)
[lunaix-os.git] / lunaix-os / includes / usr / unistd.h
1 #ifndef __LUNAIX_SYS_UNISTD_H
2 #define __LUNAIX_SYS_UNISTD_H
3
4 #include <usr/sys/types.h>
5
6 pid_t
7 fork();
8
9 pid_t
10 getpid();
11
12 pid_t
13 getppid();
14
15 pid_t
16 getpgid();
17
18 pid_t
19 setpgid(pid_t pid, pid_t pgid);
20
21 int
22 sbrk(void* addr);
23
24 void*
25 brk(size_t size);
26
27 void
28 _exit(int status);
29
30 unsigned int
31 sleep(unsigned int);
32
33 int
34 pause();
35
36 int
37 kill(pid_t pid, int signum);
38
39 unsigned int
40 alarm(unsigned int seconds);
41
42 int
43 link(const char* oldpath, const char* newpath);
44
45 int
46 rmdir(const char* pathname);
47
48 int
49 read(int fd, void* buf, size_t size);
50
51 int
52 write(int fd, void* buf, size_t size);
53
54 int
55 readlink(const char* path, char* buffer, size_t size);
56
57 int
58 readlinkat(int dirfd, const char* pathname, char* buffer, size_t size);
59
60 int
61 lseek(int fd, off_t offset, int mode);
62
63 int
64 unlink(const char* pathname);
65
66 int
67 unlinat(int fd, const char* pathname);
68
69 int
70 mkdir(const char* path);
71
72 int
73 close(int fd);
74
75 int
76 dup2(int oldfd, int newfd);
77
78 int
79 dup(int oldfd);
80
81 int
82 fsync(int fd);
83
84 int
85 symlink(const char* pathname, const char* linktarget);
86
87 int
88 chdir(const char* path);
89
90 int
91 fchdir(int fd);
92
93 char*
94 getcwd(char* buf, size_t size);
95
96 int
97 rename(const char* oldpath, const char* newpath);
98
99 int
100 getxattr(const char* path, const char* name, void* value, size_t len);
101
102 int
103 setxattr(const char* path, const char* name, void* value, size_t len);
104
105 int
106 fgetxattr(int fd, const char* name, void* value, size_t len);
107
108 int
109 fsetxattr(int fd, const char* name, void* value, size_t len);
110
111 #endif /* __LUNAIX_UNISTD_H */