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