aboutsummaryrefslogtreecommitdiff
path: root/time/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'time/time.h')
-rw-r--r--time/time.h32
1 files changed, 23 insertions, 9 deletions
diff --git a/time/time.h b/time/time.h
index febd0cb2a8..27e0d8bc36 100644
--- a/time/time.h
+++ b/time/time.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999,2000,2001,2002,2003 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
@@ -317,9 +317,12 @@ extern int dysize (int __year) __THROW __attribute__ ((__const__));
# ifdef __USE_POSIX199309
-/* Pause execution for a number of nanoseconds. */
+/* Pause execution for a number of nanoseconds.
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
extern int nanosleep (__const struct timespec *__requested_time,
- struct timespec *__remaining) __THROW;
+ struct timespec *__remaining);
/* Get resolution of clock CLOCK_ID. */
@@ -333,10 +336,13 @@ extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
__THROW;
# ifdef __USE_XOPEN2K
-/* High-resolution sleep with the specified clock. */
+/* High-resolution sleep with the specified clock.
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
extern int clock_nanosleep (clockid_t __clock_id, int __flags,
__const struct timespec *__req,
- struct timespec *__rem) __THROW;
+ struct timespec *__rem);
/* Return clock ID for CPU-time clock. */
extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
@@ -382,8 +388,11 @@ extern int getdate_err;
/* Parse the given string as a date specification and return a value
representing the value. The templates from the file identified by
the environment variable DATEMSK are used. In case of an error
- `getdate_err' is set. */
-extern struct tm *getdate (__const char *__string) __THROW;
+ `getdate_err' is set.
+
+ This function is a possible cancellation points and therefore not
+ marked with __THROW. */
+extern struct tm *getdate (__const char *__string);
# endif
# ifdef __USE_GNU
@@ -391,9 +400,14 @@ extern struct tm *getdate (__const char *__string) __THROW;
and the static buffer to return the result in, we provide a thread-safe
variant. The functionality is the same. The result is returned in
the buffer pointed to by RESBUFP and in case of an error the return
- value is != 0 with the same values as given above for `getdate_err'. */
+ value is != 0 with the same values as given above for `getdate_err'.
+
+ This function is not part of POSIX and therefore no official
+ cancellation point. But due to similarity with an POSIX interface
+ or due to the implementation it is a cancellation point and
+ therefore not marked with __THROW. */
extern int getdate_r (__const char *__restrict __string,
- struct tm *__restrict __resbufp) __THROW;
+ struct tm *__restrict __resbufp);
# endif
__END_DECLS