diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-23 15:45:31 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-23 15:45:31 +0100 |
| commit | 1d472bb0439a83191fcda5e7a778ff0f28a0b6e5 (patch) | |
| tree | a2ef44129eddacc496f899e4fb6a9e85ce7d35ed /userspace/sys/syscalls.c | |
| parent | 6a3ef39feb635f529da9e36975ba77a26c1ff3b4 (diff) | |
adjusting syscalls
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); |
