about summary refs log tree commit diff
path: root/time/time.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-11 07:12:59 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-11 07:12:59 +0000
commit094f72c6a57bf36e70726c1827d93d1d85ed0154 (patch)
tree6fcad05f4d19b784212a47598be40548a9f45d0b /time/time.h
parent6689a1882be51506e254adbf088a61968604f498 (diff)
downloadglibc-094f72c6a57bf36e70726c1827d93d1d85ed0154.tar.gz
glibc-094f72c6a57bf36e70726c1827d93d1d85ed0154.tar.xz
glibc-094f72c6a57bf36e70726c1827d93d1d85ed0154.zip
Update.
	* time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
Diffstat (limited to 'time/time.h')
-rw-r--r--time/time.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/time/time.h b/time/time.h
index e98d265f77..c71199aef7 100644
--- a/time/time.h
+++ b/time/time.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -133,6 +133,13 @@ struct sigevent;
 
 #endif	/* POSIX.1b */
 
+#ifdef __USE_XOPEN2K
+# ifndef __pid_t_defined
+typedef __pid_t pid_t;
+#  define __pid_t_defined
+# endif
+#endif
+
 
 /* Time used by the program so far (user time + system time).
    The result / CLOCKS_PER_SECOND is program time in seconds.  */
@@ -269,6 +276,11 @@ extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
      __THROW;
 
+#  ifdef __USE_XOPEN2K
+/* Return clock ID for CPU-time clock.  */
+extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id);
+#  endif
+
 
 /* Create new per-process timer using CLOCK_ID.  */
 extern int timer_create (clockid_t __clock_id, struct sigevent *__evp,