diff options
Diffstat (limited to 'userspace/sys/syscalls.c')
| -rw-r--r-- | userspace/sys/syscalls.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/userspace/sys/syscalls.c b/userspace/sys/syscalls.c index 51436fb..314492f 100644 --- a/userspace/sys/syscalls.c +++ b/userspace/sys/syscalls.c @@ -1,4 +1,4 @@ -#include "../kernel/syscalls.h" +#include "kernel/syscalls.h" /* char *__env3[]={0}; @@ -43,10 +43,6 @@ int close(int file) return syscall(SYSCALL_CLOSE,file,0,0); } -int fstat(int file, struct stat *st) -{ - return syscall(SYSCALL_FSTAT,file,st,0); -} int isatty(int file) { @@ -120,6 +116,15 @@ int stat(const char *file, struct stat *st) return syscall(SYSCALL_STAT,file,st,0); } +int ltat(const char *file, struct stat *st) +{ + return syscall(SYSCALL_LSTAT,file,st,0); +} + +int fstat(int file, struct stat *st) +{ + return syscall(SYSCALL_FSTAT,file,st,0); +} int times(struct tms *buf) { return syscall(SYSCALL_TIMES,buf,0,0); |
