8b58e81077
better parsing of sh commands (copied from jos sh) cat: read from 1 if no args sbrk system call, but untested getpid system call moved locks in keyboard intr, but why do we get intr w. null characters from keyboard?
20 lines
382 B
C
20 lines
382 B
C
#define SYS_fork 1
|
|
#define SYS_exit 2
|
|
#define SYS_wait 3
|
|
#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
|
|
#define SYS_getpid 19
|
|
#define SYS_sbrk 20
|
|
|