mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
fstatat: ignore flags
This commit is contained in:
@@ -6,15 +6,12 @@
|
||||
#include <arch/spinlock.h>
|
||||
#include <string.h>
|
||||
|
||||
// we don't care about flags yet
|
||||
|
||||
syscallret syscall_fstatat(int ifd, char* path, stat* st, int flags){
|
||||
syscallret retv;
|
||||
retv.ret = -1;
|
||||
|
||||
if(flags){
|
||||
retv.errno = EINVAL;
|
||||
return retv;
|
||||
}
|
||||
|
||||
if(st > USER_SPACE_END || path > USER_SPACE_END){
|
||||
retv.errno = EFAULT;
|
||||
return retv;
|
||||
|
||||
Reference in New Issue
Block a user