Add an lstat() syscall and use it to make "ls" nicer.

This commit is contained in:
Andreas Kling 2018-10-24 13:19:36 +02:00
commit 5f36a5f22e
Notes: sideshowbarker 2024-07-19 18:39:27 +09:00
10 changed files with 118 additions and 2 deletions

View file

@ -68,6 +68,8 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
return current->sys$spawn((const char*)arg1);
case Syscall::GetDirEntries:
return current->sys$get_dir_entries((int)arg1, (void*)arg2, (size_t)arg3);
case Syscall::PosixLstat:
return current->sys$lstat((const char*)arg1, (void*)arg2);
case Syscall::PosixOpen:
//kprintf("syscall: open('%s', %u)\n", arg1, arg2);
return current->sys$open((const char*)arg1, (size_t)arg2);