summaryrefslogtreecommitdiff
path: root/LibC/utime.cpp
blob: 737d958e49203528e21ab479b9602e287fe4df9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}

}