projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't put white space before call to $(eval) because that makes GNU
[pintos-anon]
/
src
/
lib
/
user
/
syscall.c
diff --git
a/src/lib/user/syscall.c
b/src/lib/user/syscall.c
index 2485530fc08f053bfd15935480b3474cc0528bf6..a9c5bc8500c517f58169a52c1dee5f1b78a3edff 100644
(file)
--- a/
src/lib/user/syscall.c
+++ b/
src/lib/user/syscall.c
@@
-165,9
+165,20
@@
mkdir (const char *dir)
return syscall1 (SYS_MKDIR, dir);
}
return syscall1 (SYS_MKDIR, dir);
}
-void
-lsdir (void)
+bool
+readdir (int fd, char name[READDIR_MAX_LEN + 1])
{
{
-
syscall0 (SYS_LSDIR
);
+
return syscall2 (SYS_READDIR, fd, name
);
}
}
+bool
+isdir (int fd)
+{
+ return syscall1 (SYS_ISDIR, fd);
+}
+
+int
+inumber (int fd)
+{
+ return syscall1 (SYS_INUMBER, fd);
+}