mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
3a0a8848fb
Old: Syscall::invoke(Syscall::SC_foo, (dword)arg1, (dword)arg2) New: syscall(SC_foo, arg1, arg2)
15 lines
246 B
C++
15 lines
246 B
C++
#include <utime.h>
|
|
#include <errno.h>
|
|
#include <Kernel/Syscall.h>
|
|
|
|
extern "C" {
|
|
|
|
int utime(const char* pathname, const struct utimbuf* buf)
|
|
{
|
|
int rc = syscall(SC_utime, (dword)pathname, (dword)buf);
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
}
|
|
|
|
}
|
|
|