Rename printk() to printf().
[pintos-anon] / src / lib / user / syscall.h
1 #ifndef LIB_USER_SYSCALL_H
2 #define LIB_USER_SYSCALL_H 1
3
4 #include <stdbool.h>
5 #include <debug.h>
6
7 typedef int pid_t;
8
9 void halt (void) NO_RETURN;
10 void exit (int status) NO_RETURN;
11 pid_t exec (const char *);
12 int join (pid_t);
13 bool create (const char *);
14 bool remove (const char *);
15 int open (const char *);
16 int read (int fd, void *, unsigned);
17 int write (int fd, const void *, unsigned);
18 void close (int fd);
19
20 #endif /* lib/user/syscall.h */