diff options
author | Frans Kaashoek <[email protected]> | 2019-07-02 14:19:31 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2019-07-02 14:19:31 -0400 |
commit | 1e4d7065d6582fd57d251dfe405afbbe68a55309 (patch) | |
tree | f5ba795c113d04f43fd49744d04519aeef3df4ef /kernel/sysfile.c | |
parent | 84c759fc02c7843b64a1bafc843cd80fe3c9d7ee (diff) | |
parent | f59c1bf1d82da4b445c1cff10c228ea55fa035d4 (diff) | |
download | xv6-labs-1e4d7065d6582fd57d251dfe405afbbe68a55309.tar.gz xv6-labs-1e4d7065d6582fd57d251dfe405afbbe68a55309.tar.bz2 xv6-labs-1e4d7065d6582fd57d251dfe405afbbe68a55309.zip |
Merge branch 'riscv' into riscv-proc
Diffstat (limited to 'kernel/sysfile.c')
-rw-r--r-- | kernel/sysfile.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kernel/sysfile.c b/kernel/sysfile.c index 33f37f2..533e097 100644 --- a/kernel/sysfile.c +++ b/kernel/sysfile.c @@ -52,7 +52,7 @@ fdalloc(struct file *f) return -1; } -int +uint64 sys_dup(void) { struct file *f; @@ -66,7 +66,7 @@ sys_dup(void) return fd; } -int +uint64 sys_read(void) { struct file *f; @@ -78,7 +78,7 @@ sys_read(void) return fileread(f, p, n); } -int +uint64 sys_write(void) { struct file *f; @@ -91,7 +91,7 @@ sys_write(void) return filewrite(f, p, n); } -int +uint64 sys_close(void) { int fd; @@ -104,7 +104,7 @@ sys_close(void) return 0; } -int +uint64 sys_fstat(void) { struct file *f; @@ -116,7 +116,7 @@ sys_fstat(void) } // Create the path new as a link to the same inode as old. -int +uint64 sys_link(void) { char name[DIRSIZ], new[MAXPATH], old[MAXPATH]; @@ -182,7 +182,7 @@ isdirempty(struct inode *dp) } //PAGEBREAK! -int +uint64 sys_unlink(void) { struct inode *ip, *dp; @@ -284,7 +284,7 @@ create(char *path, short type, short major, short minor) return ip; } -int +uint64 sys_open(void) { char path[MAXPATH]; @@ -347,7 +347,7 @@ sys_open(void) return fd; } -int +uint64 sys_mkdir(void) { char path[MAXPATH]; @@ -363,7 +363,7 @@ sys_mkdir(void) return 0; } -int +uint64 sys_mknod(void) { struct inode *ip; @@ -383,7 +383,7 @@ sys_mknod(void) return 0; } -int +uint64 sys_chdir(void) { char path[MAXPATH]; @@ -408,7 +408,7 @@ sys_chdir(void) return 0; } -int +uint64 sys_exec(void) { char path[MAXPATH], *argv[MAXARG]; @@ -446,7 +446,7 @@ sys_exec(void) return ret; } -int +uint64 sys_pipe(void) { uint64 fdarray; // user pointer to array of two integers |