mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
12 lines
244 B
C++
12 lines
244 B
C++
#include <Kernel/Syscall.h>
|
|
#include <errno.h>
|
|
#include <utime.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);
|
|
}
|
|
}
|