2018-12-19 18:14:55 -02:00
|
|
|
#include <utime.h>
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
#include <Kernel/Syscall.h>
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
int utime(const char* pathname, const struct utimbuf* buf)
|
|
|
|
|
{
|
2018-12-21 00:02:06 -02:00
|
|
|
int rc = syscall(SC_utime, (dword)pathname, (dword)buf);
|
2018-12-19 18:14:55 -02:00
|
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|