summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/sys/time.h8
-rw-r--r--time/time.h15
2 files changed, 15 insertions, 8 deletions
diff --git a/time/sys/time.h b/time/sys/time.h
index 4c8562fa29..c0753337c2 100644
--- a/time/sys/time.h
+++ b/time/sys/time.h
@@ -33,14 +33,6 @@ struct timeval
     int tv_usec;		/* Microseconds.  */
   };
 
-/* POSIX.4 structure for a time value.  This is like a `struct timeval' but
-   has nanoseconds instead of microseconds.  */
-struct timespec
-  {
-    long int ts_sec;		/* Seconds.  */
-    long int ts_nsec;		/* Nanoseconds.  */
-  };
-
 /* Macros for converting between `struct timeval' and `struct timespec'.  */
 #define TIMEVAL_TO_TIMESPEC(tv, ts) {                                   \
         (ts)->ts_sec = (tv)->tv_sec;                                    \
diff --git a/time/time.h b/time/time.h
index 514a615457..5f9591419e 100644
--- a/time/time.h
+++ b/time/time.h
@@ -217,6 +217,21 @@ extern int dysize __P ((int __year));
 #endif
 
 
+/* POSIX.4 structure for a time value.  This is like a `struct timeval' but
+   has nanoseconds instead of microseconds.  */
+struct timespec
+  {
+    long int ts_sec;		/* Seconds.  */
+    long int ts_nsec;		/* Nanoseconds.  */
+  };
+
+#ifdef __USE_POSIX
+/* Pause execution for a number of nanoseconds.  */
+extern int nanosleep __P ((__const struct timespec *__requested_time,
+			   struct timespec *__remaining));
+#endif
+
+
 __END_DECLS
 
 #endif /* <time.h> included.  */