diff options
author | rsc <rsc> | 2006-09-07 14:13:26 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-09-07 14:13:26 +0000 |
commit | 224f6598c1c6f794bcbe39c510c682efba6c1de5 (patch) | |
tree | e1a02ab4045003e50c078eaab0a6988b8d9f72bd /defs.h | |
parent | 31085bb4166c18b3dee059160d64b4edd7c5e2f4 (diff) | |
download | xv6-labs-224f6598c1c6f794bcbe39c510c682efba6c1de5.tar.gz xv6-labs-224f6598c1c6f794bcbe39c510c682efba6c1de5.tar.bz2 xv6-labs-224f6598c1c6f794bcbe39c510c682efba6c1de5.zip |
refactor syscall code
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -16,7 +16,7 @@ struct jmpbuf; void setupsegs(struct proc*); struct proc* copyproc(struct proc*); struct spinlock; -uint growproc(int); +int growproc(int); void sleep(void*, struct spinlock*); void wakeup(void*); void scheduler(void); @@ -43,10 +43,10 @@ int strncmp(const char*, const char*, uint); // syscall.c void syscall(void); int fetchint(struct proc*, uint, int*); -int fetchbyte(struct proc*, uint, char*); -int fetcharg(int, void*); -int checkstring(uint); -int putint(struct proc*, uint, int); +int fetchstr(struct proc*, uint, char**); +int argint(int, int*); +int argptr(int, char**, int); +int argstr(int, char**); // picirq.c extern ushort irq_mask_8259A; @@ -99,7 +99,6 @@ int pipe_read(struct pipe*, char*, int); // file.c struct stat; void fileinit(void); -int fdalloc(void); struct file* filealloc(void); void fileclose(struct file*); int fileread(struct file*, char*, int n); |