X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flib%2Fsyscall-nr.h;h=01851098fd28b24aee43715daa67267242956ba3;hb=79d43675f4fd36237529d676e3c7c231b308dc7f;hp=498d05c6511ca54c24112da7c477aebd1b40326d;hpb=19ba389c50bf8d28edff3f5fe14b2199f3b67393;p=pintos-anon diff --git a/src/lib/syscall-nr.h b/src/lib/syscall-nr.h index 498d05c..0185109 100644 --- a/src/lib/syscall-nr.h +++ b/src/lib/syscall-nr.h @@ -5,19 +5,20 @@ #define SYS_halt 0 /* Halts the operating system. */ #define SYS_exit 1 /* Terminates this process. */ #define SYS_exec 2 /* Start another process. */ -#define SYS_join 3 /* Waits for a child process to die. */ +#define SYS_wait 3 /* Waits for a child process to die. */ #define SYS_create 4 /* Creates a file. */ #define SYS_remove 5 /* Deletes a file. */ #define SYS_open 6 /* Opens a file. */ -#define SYS_read 7 /* Reads from a file. */ -#define SYS_write 8 /* Writes to a file. */ -#define SYS_close 9 /* Closes a file. */ -#define SYS_length 10 /* Obtains a file's size. */ -#define SYS_mmap 11 /* Maps a file into memory. */ -#define SYS_munmap 12 /* Removes a memory mapping. */ - -/* Predefined file handles. */ -#define STDIN_FILENO 0 -#define STDOUT_FILENO 1 +#define SYS_filesize 7 /* Obtains a file's size. */ +#define SYS_read 8 /* Reads from a file. */ +#define SYS_write 9 /* Writes to a file. */ +#define SYS_seek 10 /* Change position in a file. */ +#define SYS_tell 11 /* Report current position in a file. */ +#define SYS_close 12 /* Closes a file. */ +#define SYS_mmap 13 /* Maps a file into memory. */ +#define SYS_munmap 14 /* Removes a memory mapping. */ +#define SYS_chdir 15 /* Changes the current directory. */ +#define SYS_mkdir 16 /* Create a directory. */ +#define SYS_lsdir 17 /* Lists the current directory to stdout. */ #endif /* lib/syscall-nr.h */