X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flib%2Fsyscall-nr.h;h=eb1e0ee907dd62d22265d90e0e9e38db8b51f067;hb=a4613d70fb56b93216299f6253698ab0e4bbd46d;hp=e1fc9e14b1a7e8d6f79aa9df749c42062d78279d;hpb=3f9f9abc72ba696d4ef1ddb65cb4bac9056cb00f;p=pintos-anon diff --git a/src/lib/syscall-nr.h b/src/lib/syscall-nr.h index e1fc9e1..eb1e0ee 100644 --- a/src/lib/syscall-nr.h +++ b/src/lib/syscall-nr.h @@ -5,28 +5,29 @@ enum { /* Projects 2 and later. */ - SYS_halt, /* Halts the operating system. */ - SYS_exit, /* Terminates this process. */ - SYS_exec, /* Start another process. */ - SYS_wait, /* Waits for a child process to die. */ - SYS_create, /* Creates a file. */ - SYS_remove, /* Deletes a file. */ - SYS_open, /* Opens a file. */ - SYS_filesize, /* Obtains a file's size. */ - SYS_read, /* Reads from a file. */ - SYS_write, /* Writes to a file. */ - SYS_seek, /* Change position in a file. */ - SYS_tell, /* Report current position in a file. */ - SYS_close, /* Closes a file. */ + SYS_HALT, /* Halt the operating system. */ + SYS_EXIT, /* Terminate this process. */ + SYS_EXEC, /* Start another process. */ + SYS_WAIT, /* Wait for a child process to die. */ + SYS_CREATE, /* Create a file. */ + SYS_REMOVE, /* Delete a file. */ + SYS_OPEN, /* Open a file. */ + SYS_FILESIZE, /* Obtain a file's size. */ + SYS_READ, /* Read from a file. */ + SYS_WRITE, /* Write to a file. */ + SYS_SEEK, /* Change position in a file. */ + SYS_TELL, /* Report current position in a file. */ + SYS_CLOSE, /* Close a file. */ /* Project 3 and optionally project 4. */ - SYS_mmap, /* Maps a file into memory. */ - SYS_munmap, /* Removes a memory mapping. */ + SYS_MMAP, /* Map a file into memory. */ + SYS_MUNMAP, /* Remove a memory mapping. */ /* Project 4 only. */ - SYS_chdir, /* Changes the current directory. */ - SYS_mkdir, /* Create a directory. */ - SYS_lsdir /* Lists the current directory to stdout. */ + SYS_CHDIR, /* Change the current directory. */ + SYS_MKDIR, /* Create a directory. */ + SYS_READDIR, /* Reads a directory entry. */ + SYS_ISDIR /* Tests if a fd represents a directory. */ }; #endif /* lib/syscall-nr.h */