diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-21 06:49:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-21 06:49:52 +0000 |
commit | 98cbe360d947b59e7a5eda068581f4cfeb4b99b3 (patch) | |
tree | cea10cb9c398de637781b09112ca635518cf3944 /time | |
parent | 4aebaa6bd906383aca1b7a5e1251b0d1652f9f7c (diff) | |
download | glibc-98cbe360d947b59e7a5eda068581f4cfeb4b99b3.tar.gz |
Update.
* misc/sys/cdefs.h: Define __restrict_arr.
* include/sys/time.h: Add restrict where required by AGd4.
* inet/arpa/inet.h: Likewise.
* io/sys/stat.h: Likewise.
* io/sys/statvfs.h: Likewise.
* misc/search.h: Likewise.
* misc/sys/select.h: Likewise.
* posix/glob.h: Likewise.
* posix/regex.h: Likewise.
* posix/spawn.h: Likewise.
* posix/unistd.h: Likewise.
* rt/aio.h: Likewise.
* signal/signal.h: Likewise.
* socket/sys/socket.h: Likewise.
* stdlib/ucontext.h: Likewise.
* streams/stropts.h: Likewise.
* string/string.h: Likewise.
* time/time.h: Likewise.
* time/sys/time.h: Likewise.
* posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
and posix_spawnattr_setscheparam.
* libio/stdio.h: Make cuserid prototype again available for all
XPG versions.
Diffstat (limited to 'time')
-rw-r--r-- | time/sys/time.h | 7 | ||||
-rw-r--r-- | time/time.h | 12 |
2 files changed, 11 insertions, 8 deletions
diff --git a/time/sys/time.h b/time/sys/time.h index fe8648e763..a753912299 100644 --- a/time/sys/time.h +++ b/time/sys/time.h @@ -65,7 +65,8 @@ typedef void *__timezone_ptr_t; Returns 0 on success, -1 on errors. NOTE: This form of timezone information is obsolete. Use the functions and variables declared in <time.h> instead. */ -extern int gettimeofday (struct timeval *__tv, __timezone_ptr_t __tz) __THROW; +extern int gettimeofday (struct timeval *__restrict __tv, + __timezone_ptr_t __restrict __tz) __THROW; /* Set the current time of day and timezone information. This call is restricted to the super-user. */ @@ -120,8 +121,8 @@ extern int getitimer (__itimer_which_t __which, set *OLD to the old value of timer WHICH. Returns 0 on success, -1 on errors. */ extern int setitimer (__itimer_which_t __which, - __const struct itimerval *__new, - struct itimerval *__old) __THROW; + __const struct itimerval *__restrict __new, + struct itimerval *__restrict __old) __THROW; /* Change the access time of FILE to TVP[0] and the modification time of FILE to TVP[1]. */ diff --git a/time/time.h b/time/time.h index 47e4d8c5be..9178d5f2da 100644 --- a/time/time.h +++ b/time/time.h @@ -182,7 +182,8 @@ extern size_t strftime (char *__restrict __s, size_t __maxsize, # ifdef __USE_XOPEN /* Parse S according to FORMAT and store binary time information in TP. The return value is a pointer to the first unparsed character in S. */ -extern char *strptime (__const char *__s, __const char *__fmt, struct tm *__tp) +extern char *strptime (__const char *__restrict __s, + __const char *__restrict __fmt, struct tm *__tp) __THROW; # endif @@ -304,16 +305,17 @@ extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; /* Create new per-process timer using CLOCK_ID. */ -extern int timer_create (clockid_t __clock_id, struct sigevent *__evp, - timer_t *__timerid) __THROW; +extern int timer_create (clockid_t __clock_id, + struct sigevent *__restrict __evp, + timer_t *__restrict __timerid) __THROW; /* Delete timer TIMERID. */ extern int timer_delete (timer_t __timerid) __THROW; /* Set timer TIMERID to VALUE, returning old value in OVLAUE. */ extern int timer_settime (timer_t __timerid, int __flags, - __const struct itimerspec *__value, - struct itimerspec *__ovalue) __THROW; + __const struct itimerspec *__restrict __value, + struct itimerspec *__restrict __ovalue) __THROW; /* Get current value of timer TIMERID and store it in VLAUE. */ extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) |