1 #ifndef __LIB_USER_SYSCALL_H
2 #define __LIB_USER_SYSCALL_H
9 void halt (void) NO_RETURN;
10 void exit (int status) NO_RETURN;
11 pid_t exec (const char *file);
13 bool create (const char *file);
14 bool remove (const char *file);
15 int open (const char *file);
16 int filesize (int fd);
17 int read (int fd, void *buffer, unsigned length);
18 int write (int fd, const void *buffer, unsigned length);
20 bool mmap (int fd, void *addr, unsigned length);
21 bool munmap (void *addr, unsigned length);
22 bool chdir (const char *dir);
23 bool mkdir (const char *dir);
26 #endif /* lib/user/syscall.h */