aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/utime.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libc/utime.h')
-rw-r--r--system/include/libc/utime.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/system/include/libc/utime.h b/system/include/libc/utime.h
index 652891aa..ec82e0f3 100644
--- a/system/include/libc/utime.h
+++ b/system/include/libc/utime.h
@@ -1,12 +1,24 @@
+#ifndef _UTIME_H
+#define _UTIME_H
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <_ansi.h>
+#define __NEED_time_t
+
+#include <bits/alltypes.h>
+
+struct utimbuf
+{
+ time_t actime;
+ time_t modtime;
+};
-/* The utime function is defined in libc/sys/<arch>/sys if it exists. */
-#include <sys/utime.h>
+int utime (const char *, const struct utimbuf *);
#ifdef __cplusplus
}
#endif
+
+#endif