[orbis-kernel] Stub sys_getdirentries

This commit is contained in:
Ivan Chikish 2023-07-23 17:40:35 +03:00
parent 8e9026bf8c
commit 306fecf2ab
2 changed files with 4 additions and 1 deletions

View file

@ -259,7 +259,9 @@ orbis::SysResult orbis::sys_rmdir(Thread *thread, ptr<char> path) {
orbis::SysResult orbis::sys_getdirentries(Thread *thread, sint fd,
ptr<char> buf, uint count,
ptr<slong> basep) {
return ErrorCode::NOSYS;
ORBIS_LOG_ERROR(__FUNCTION__, fd, (void *)buf, count, basep);
thread->where();
return {};
}
orbis::SysResult orbis::sys_getdents(Thread *thread, sint fd, ptr<char> buf,
size_t count) {

View file

@ -23,6 +23,7 @@ enum OpenFlags {
kOpenFlagExcl = 0x800,
kOpenFlagDSync = 0x1000,
kOpenFlagDirect = 0x10000,
kOpenFlagDirectory = 0x20000,
};
struct IoDeviceInstance : orbis::RcBase {