ladybird/LibC/utime.cpp

15 lines
263 B
C++
Raw Normal View History

#include <utime.h>
#include <errno.h>
#include <Kernel/Syscall.h>
extern "C" {
int utime(const char* pathname, const struct utimbuf* buf)
{
int rc = Syscall::invoke(Syscall::SC_utime, (dword)pathname, (dword)buf);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}