summaryrefslogtreecommitdiffstats
path: root/pintos-progos/lib/syscall-nr.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
committermanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
commitb5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch)
tree1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/lib/syscall-nr.h
downloadprogos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip
initial pintos checkin
Diffstat (limited to 'pintos-progos/lib/syscall-nr.h')
-rw-r--r--pintos-progos/lib/syscall-nr.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/pintos-progos/lib/syscall-nr.h b/pintos-progos/lib/syscall-nr.h
new file mode 100644
index 0000000..21a7af9
--- /dev/null
+++ b/pintos-progos/lib/syscall-nr.h
@@ -0,0 +1,34 @@
1#ifndef __LIB_SYSCALL_NR_H
2#define __LIB_SYSCALL_NR_H
3
4/* System call numbers. */
5enum
6 {
7 /* Projects 2 and later. */
8 SYS_HALT, /* Halt the operating system. */
9 SYS_EXIT, /* Terminate this process. */
10 SYS_EXEC, /* Start another process. */
11 SYS_WAIT, /* Wait for a child process to die. */
12 SYS_CREATE, /* Create a file. */
13 SYS_REMOVE, /* Delete a file. */
14 SYS_OPEN, /* Open a file. */
15 SYS_FILESIZE, /* Obtain a file's size. */
16 SYS_READ, /* Read from a file. */
17 SYS_WRITE, /* Write to a file. */
18 SYS_SEEK, /* Change position in a file. */
19 SYS_TELL, /* Report current position in a file. */
20 SYS_CLOSE, /* Close a file. */
21
22 /* Project 3 and optionally project 4. */
23 SYS_MMAP, /* Map a file into memory. */
24 SYS_MUNMAP, /* Remove a memory mapping. */
25
26 /* Project 4 only. */
27 SYS_CHDIR, /* Change the current directory. */
28 SYS_MKDIR, /* Create a directory. */
29 SYS_READDIR, /* Reads a directory entry. */
30 SYS_ISDIR, /* Tests if a fd represents a directory. */
31 SYS_INUMBER /* Returns the inode number for a fd. */
32 };
33
34#endif /* lib/syscall-nr.h */