[orbis-kenel] implement sys_access

fix shm_unlink
This commit is contained in:
DH 2023-11-11 22:25:31 +03:00
parent e9dfaf2573
commit 044c86dc3f
3 changed files with 63 additions and 2 deletions

View file

@ -146,6 +146,11 @@ orbis::SysResult orbis::sys_freebsd6_lseek(Thread *thread, sint fd, sint,
return sys_lseek(thread, fd, offset, whence);
}
orbis::SysResult orbis::sys_access(Thread *thread, ptr<char> path, sint flags) {
if (auto open = thread->tproc->ops->open) {
Ref<File> file;
return open(thread, path, flags, 0, &file);
}
return ErrorCode::NOSYS;
}
orbis::SysResult orbis::sys_faccessat(Thread *thread, sint fd, ptr<char> path,