diff options
author | Michael Foiani <mfoiani@cs.brown.edu> | 2024-05-15 18:17:49 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani@cs.brown.edu> | 2024-05-15 18:17:49 -0400 |
commit | 3942ec1841219e9d1033f583ebfcf687cb76a4af (patch) | |
tree | 13168b263ee28ce2d0867cac47b0fc90bf23b815 /kernel/fs/vfs_syscall.c | |
parent | 77408081bd2622c50d9acbcec18f1c598738fdaa (diff) |
Diffstat (limited to 'kernel/fs/vfs_syscall.c')
-rw-r--r-- | kernel/fs/vfs_syscall.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/kernel/fs/vfs_syscall.c b/kernel/fs/vfs_syscall.c index fc0878e..548eaa9 100644 --- a/kernel/fs/vfs_syscall.c +++ b/kernel/fs/vfs_syscall.c @@ -26,8 +26,6 @@ */ ssize_t do_read(int fd, void *buf, size_t len) { - // NOT_YET_IMPLEMENTED("VFS: do_read"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -96,8 +94,6 @@ ssize_t do_read(int fd, void *buf, size_t len) */ ssize_t do_write(int fd, const void *buf, size_t len) { - // NOT_YET_IMPLEMENTED("VFS: do_write"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -165,8 +161,6 @@ ssize_t do_write(int fd, const void *buf, size_t len) */ long do_close(int fd) { - // NOT_YET_IMPLEMENTED("VFS: do_close"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -198,8 +192,6 @@ long do_close(int fd) */ long do_dup(int fd) { - // NOT_YET_IMPLEMENTED("VFS: do_dup"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -239,8 +231,6 @@ long do_dup(int fd) */ long do_dup2(int ofd, int nfd) { - // NOT_YET_IMPLEMENTED("VFS: do_dup2"); - // Check if the file descriptors are valid if (ofd < 0 || ofd >= NFILES || nfd < 0 || nfd >= NFILES) { @@ -294,8 +284,6 @@ long do_dup2(int ofd, int nfd) */ long do_mknod(const char *path, int mode, devid_t devid) { - // NOT_YET_IMPLEMENTED("VFS: do_mknod"); - // Check if the mode is valid if (mode != S_IFCHR && mode != S_IFBLK && mode != S_IFREG) { @@ -337,8 +325,6 @@ long do_mknod(const char *path, int mode, devid_t devid) */ long do_mkdir(const char *path) { - // NOT_YET_IMPLEMENTED("VFS: do_mkdir"); - // Call namev_dir() to find the parent of the directory to be created size_t len = 0; const char *name = NULL; @@ -404,8 +390,6 @@ long do_mkdir(const char *path) */ long do_rmdir(const char *path) { - // NOT_YET_IMPLEMENTED("VFS: do_rmdir"); - // Call namev_dir() to find the parent of the directory to be removed size_t len = 0; const char *name = NULL; @@ -489,8 +473,6 @@ long do_rmdir(const char *path) */ long do_unlink(const char *path) { - // NOT_YET_IMPLEMENTED("VFS: do_unlink"); - // Call namev_dir() to find the parent of the file to be unlinked size_t len = 0; const char *name = NULL; @@ -566,8 +548,6 @@ long do_unlink(const char *path) */ long do_link(const char *oldpath, const char *newpath) { - // NOT_YET_IMPLEMENTED("VFS: do_link"); - // Resolve the oldpath if (strlen(newpath) > NAME_LEN) { @@ -657,8 +637,6 @@ long do_link(const char *oldpath, const char *newpath) */ long do_rename(const char *oldpath, const char *newpath) { - // NOT_YET_IMPLEMENTED("VFS: do_rename"); - // Get the old directory size_t old_len = 0; const char *old_name = NULL; @@ -724,8 +702,6 @@ long do_rename(const char *oldpath, const char *newpath) */ long do_chdir(const char *path) { - // NOT_YET_IMPLEMENTED("VFS: do_chdir"); - // Resolve the path vnode_t *vnode = NULL; long ret = namev_resolve(NULL, path, &vnode); @@ -763,8 +739,6 @@ long do_chdir(const char *path) */ ssize_t do_getdent(int fd, struct dirent *dirp) { - // NOT_YET_IMPLEMENTED("VFS: do_getdent"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -817,8 +791,6 @@ ssize_t do_getdent(int fd, struct dirent *dirp) */ off_t do_lseek(int fd, off_t offset, int whence) { - // NOT_YET_IMPLEMENTED("VFS: do_lseek"); - // Check if the file descriptor is valid if (fd < 0 || fd >= NFILES) { @@ -871,8 +843,6 @@ off_t do_lseek(int fd, off_t offset, int whence) */ long do_stat(const char *path, stat_t *buf) { - // NOT_YET_IMPLEMENTED("VFS: do_stat"); - // Resolve the path vnode_t *vnode = NULL; long ret = namev_resolve(NULL, path, &vnode); |