forked from mit-pdos/xv6-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renumber system calls (run gmake clean!) skeleton for dup system call
- Loading branch information
kaashoek
committed
Aug 20, 2006
1 parent
8787cd0
commit 16083d4
Showing
7 changed files
with
43 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,9 @@ fd_incref(struct fd *fd) | |
fd->ref++; | ||
release(&fd_table_lock); | ||
} | ||
|
||
int | ||
fd_dup(struct fd *fd) | ||
{ | ||
return -1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#define SYS_fork 1 | ||
#define SYS_exit 2 | ||
#define SYS_wait 3 | ||
#define SYS_pipe 5 | ||
#define SYS_write 6 | ||
#define SYS_read 7 | ||
#define SYS_close 8 | ||
#define SYS_block 9 | ||
#define SYS_kill 10 | ||
#define SYS_exec 13 | ||
#define SYS_open 14 | ||
#define SYS_mknod 15 | ||
#define SYS_unlink 16 | ||
#define SYS_fstat 17 | ||
#define SYS_link 18 | ||
#define SYS_mkdir 19 | ||
#define SYS_chdir 20 | ||
#define SYS_pipe 4 | ||
#define SYS_write 5 | ||
#define SYS_read 6 | ||
#define SYS_close 7 | ||
#define SYS_kill 9 | ||
#define SYS_exec 10 | ||
#define SYS_open 11 | ||
#define SYS_mknod 12 | ||
#define SYS_unlink 13 | ||
#define SYS_fstat 14 | ||
#define SYS_link 15 | ||
#define SYS_mkdir 16 | ||
#define SYS_chdir 17 | ||
#define SYS_dup 18 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters