utime.cpp 246 B

1234567891011121314
  1. #include <utime.h>
  2. #include <errno.h>
  3. #include <Kernel/Syscall.h>
  4. extern "C" {
  5. int utime(const char* pathname, const struct utimbuf* buf)
  6. {
  7. int rc = syscall(SC_utime, (dword)pathname, (dword)buf);
  8. __RETURN_WITH_ERRNO(rc, rc, -1);
  9. }
  10. }