1 #ifndef __LIB_SYSCALL_NR_H
2 #define __LIB_SYSCALL_NR_H
4 /* System call numbers. */
7 /* Projects 2 and later. */
8 SYS_HALT, /* Halts the operating system. */
9 SYS_EXIT, /* Terminates this process. */
10 SYS_EXEC, /* Start another process. */
11 SYS_WAIT, /* Waits for a child process to die. */
12 SYS_CREATE, /* Creates a file. */
13 SYS_REMOVE, /* Deletes a file. */
14 SYS_OPEN, /* Opens a file. */
15 SYS_FILESIZE, /* Obtains a file's size. */
16 SYS_READ, /* Reads from a file. */
17 SYS_WRITE, /* Writes to a file. */
18 SYS_SEEK, /* Change position in a file. */
19 SYS_TELL, /* Report current position in a file. */
20 SYS_CLOSE, /* Closes a file. */
22 /* Project 3 and optionally project 4. */
23 SYS_MMAP, /* Maps a file into memory. */
24 SYS_MUNMAP, /* Removes a memory mapping. */
27 SYS_CHDIR, /* Changes the current directory. */
28 SYS_MKDIR, /* Create a directory. */
29 SYS_LSDIR /* Lists the current directory to stdout. */
32 #endif /* lib/syscall-nr.h */