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