From 1d472bb0439a83191fcda5e7a778ff0f28a0b6e5 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sun, 23 Nov 2014 15:45:31 +0100 Subject: adjusting syscalls --- userspace/sys/syscalls.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'userspace/sys/syscalls.c') 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); -- cgit v1.2.3