summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-07 14:13:26 +0000
committerrsc <rsc>2006-09-07 14:13:26 +0000
commit224f6598c1c6f794bcbe39c510c682efba6c1de5 (patch)
treee1a02ab4045003e50c078eaab0a6988b8d9f72bd /defs.h
parent31085bb4166c18b3dee059160d64b4edd7c5e2f4 (diff)
downloadxv6-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.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/defs.h b/defs.h
index fb48700..9babf92 100644
--- a/defs.h
+++ b/defs.h
@@ -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);