From 2f3d28fca2edfab7ff14b1ba2e34f1e12884b057 Mon Sep 17 00:00:00 2001
From: Jeff Johnston <jjohnstn@redhat.com>
Date: Fri, 21 Sep 2007 21:02:15 +0000
Subject: [PATCH] 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.
---
 newlib/ChangeLog                    |  8 ++++++++
 newlib/libc/include/sched.h         | 14 ++++++++++++++
 newlib/libc/machine/spu/sys/sched.h |  6 ++++++
 newlib/libc/machine/spu/sys/utime.h | 23 +++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 100644 newlib/libc/include/sched.h
 create mode 100644 newlib/libc/machine/spu/sys/sched.h
 create mode 100644 newlib/libc/machine/spu/sys/utime.h

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 856bf787f..c1498f22e 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
 
 	* libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
diff --git a/newlib/libc/include/sched.h b/newlib/libc/include/sched.h
new file mode 100644
index 000000000..a59a0f4ba
--- /dev/null
+++ b/newlib/libc/include/sched.h
@@ -0,0 +1,14 @@
+#ifndef _SCHED_H_
+#define _SCHED_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/sched.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SCHED_H_ */
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