diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-19 21:14:55 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-19 21:14:55 +0100 |
commit | 038d8641f9394aa587c0fa06878b6798a80dbcda (patch) | |
tree | ab29b5465d3db41e21e8470915d82fdb24f9fea3 /Kernel/Syscall.cpp | |
parent | e03d341615119788037f9e50c9043a30a2449894 (diff) | |
download | serenity-038d8641f9394aa587c0fa06878b6798a80dbcda.zip |
Implement utime() along with a naive /bin/touch.
This synchronous approach to inodes is silly, obviously. I need to rework
it so that the in-memory CoreInode object is the canonical inode, and then
we just need a sync() that flushes pending changes to disk.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r-- | Kernel/Syscall.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index 0d83459de1..0c9d8b472f 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -177,6 +177,8 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2, return current->sys$mkdir((const char*)arg1, (mode_t)arg2); case Syscall::SC_times: return current->sys$times((Unix::tms*)arg1); + case Syscall::SC_utime: + return current->sys$utime((const char*)arg1, (const Unix::utimbuf*)arg2); default: kprintf("<%u> int0x80: Unknown function %u requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3); break; |