summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/exec/libcsupport/include/sys/utime.h (renamed from c/src/exec/posix/include/sys/utime.h)0
-rw-r--r--c/src/lib/include/Makefile.in2
-rw-r--r--c/src/lib/include/sys/utime.h25
-rw-r--r--cpukit/libcsupport/include/sys/utime.h25
4 files changed, 51 insertions, 1 deletions
diff --git a/c/src/exec/posix/include/sys/utime.h b/c/src/exec/libcsupport/include/sys/utime.h
index 3e9955e61f..3e9955e61f 100644
--- a/c/src/exec/posix/include/sys/utime.h
+++ b/c/src/exec/libcsupport/include/sys/utime.h
diff --git a/c/src/lib/include/Makefile.in b/c/src/lib/include/Makefile.in
index e0911fabd9..7aaa7d5683 100644
--- a/c/src/lib/include/Makefile.in
+++ b/c/src/lib/include/Makefile.in
@@ -19,7 +19,7 @@ H_PIECES=chain console clockdrv iosupp ringbuf \
spurious timerdrv vmeintr
H_FILES=$(H_PIECES:%=$(srcdir)/%.h)
-SYS_H_PIECES=ioctl termios
+SYS_H_PIECES=ioctl termios utime
SYS_H_FILES=$(SYS_H_PIECES:%=$(srcdir)/sys/%.h)
MOTOROLA_H_PIECES=mc68230 mc68681
diff --git a/c/src/lib/include/sys/utime.h b/c/src/lib/include/sys/utime.h
new file mode 100644
index 0000000000..3e9955e61f
--- /dev/null
+++ b/c/src/lib/include/sys/utime.h
@@ -0,0 +1,25 @@
+/*
+ * $Id$
+ */
+
+#ifndef __UTIME_h__
+#define __UTIME_h__
+
+/*
+ * POSIX 1003.1b 5.6.6 Set File Access and Modification Times
+ */
+
+struct utimbuf {
+ time_t actime; /* Access time */
+ time_t modtime; /* Modification time */
+};
+
+/* Functions */
+
+int utime(
+ const char *path,
+ const struct utimbuf *times
+);
+
+#endif
+/* end of include file */
diff --git a/cpukit/libcsupport/include/sys/utime.h b/cpukit/libcsupport/include/sys/utime.h
new file mode 100644
index 0000000000..3e9955e61f
--- /dev/null
+++ b/cpukit/libcsupport/include/sys/utime.h
@@ -0,0 +1,25 @@
+/*
+ * $Id$
+ */
+
+#ifndef __UTIME_h__
+#define __UTIME_h__
+
+/*
+ * POSIX 1003.1b 5.6.6 Set File Access and Modification Times
+ */
+
+struct utimbuf {
+ time_t actime; /* Access time */
+ time_t modtime; /* Modification time */
+};
+
+/* Functions */
+
+int utime(
+ const char *path,
+ const struct utimbuf *times
+);
+
+#endif
+/* end of include file */