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