Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-09-22 01:02:15 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-09-22 01:02:15 +0400
commit2f3d28fca2edfab7ff14b1ba2e34f1e12884b057 (patch)
tree9850406c6ec41355acea0b3bf91d4e43f047fb46 /newlib/libc/machine
parent12df0c42e96812a6238aa663a688efefaef9a16f (diff)
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/sched.h: New file, just include sys/sched.h. * libc/machine/spu/sys/sched.h: New file, has just sched_yield prototype. * libc/machine/spu/sys/utime.h: New file, has utime prototype and struct utimbuf definition.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r--newlib/libc/machine/spu/sys/sched.h6
-rw-r--r--newlib/libc/machine/spu/sys/utime.h23
2 files changed, 29 insertions, 0 deletions
diff --git a/newlib/libc/machine/spu/sys/sched.h b/newlib/libc/machine/spu/sys/sched.h
new file mode 100644
index 000000000..90c274c37
--- /dev/null
+++ b/newlib/libc/machine/spu/sys/sched.h
@@ -0,0 +1,6 @@
+#ifndef _SYS_SCHED_H
+#define _SYS_SCHED_H
+
+int sched_yield(void);
+
+#endif
diff --git a/newlib/libc/machine/spu/sys/utime.h b/newlib/libc/machine/spu/sys/utime.h
new file mode 100644
index 000000000..18731a179
--- /dev/null
+++ b/newlib/libc/machine/spu/sys/utime.h
@@ -0,0 +1,23 @@
+#ifndef _SYS_UTIME_H
+#define _SYS_UTIME_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Per POSIX
+ */
+struct utimbuf
+{
+ time_t actime;
+ time_t modtime;
+};
+
+int utime(const char *, const struct utimbuf *);
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif