diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-23 01:25:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-23 01:25:47 +0000 |
commit | 9cd69d84efeb1fbbc59b468760be13430b585964 (patch) | |
tree | 7b063b08271195251c55353394c5314b5ba70eca | |
parent | 849fe25d0e50b015bcbe531113cd400ca0b8269a (diff) | |
download | newlib-9cd69d84efeb1fbbc59b468760be13430b585964.zip newlib-9cd69d84efeb1fbbc59b468760be13430b585964.tar.gz newlib-9cd69d84efeb1fbbc59b468760be13430b585964.tar.bz2 |
2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
* libc/include/sys/time.h (gettimeofday): Add restrict keyword.
(setitimer): Likewise.
* libc/sys/rdos/gettod.c (gettimeofday): Likewise.
* libc/sys/rtems/crt0.c (gettimeofday): Likewise.
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libc/include/sys/time.h | 7 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 2 |
3 files changed, 12 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9fb9bf0..4931f5d 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com> + + * libc/include/sys/time.h (gettimeofday): Add restrict keyword. + (setitimer): Likewise. + * libc/sys/rdos/gettod.c (gettimeofday): Likewise. + * libc/sys/rtems/crt0.c (gettimeofday): Likewise. + 2013-11-22 Chirayu Desai <chirayudesai1@gmail.com> * libc/include/sys/unistd.h (readlink): Add restrict keyword. diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 120ef55..1932580 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -74,12 +74,13 @@ struct itimerval { int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz)); #endif -int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz)); +int _EXFUN(gettimeofday, (struct timeval *__restrict __p, + void *__restrict __tz)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); int _EXFUN(getitimer, (int __which, struct itimerval *__value)); -int _EXFUN(setitimer, (int __which, const struct itimerval *__value, - struct itimerval *__ovalue)); +int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value, + struct itimerval *__restrict __ovalue)); #ifdef __cplusplus } diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index e47d933..a6f48f2 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -59,7 +59,7 @@ RTEMS_STUB(pid_t, fork(void), { return -1; }) RTEMS_STUB(int, fstat(int fd, struct stat *buf), { return -1; }) RTEMS_STUB(int, getdents(int fd, void *dp, int count), { return -1; }) RTEMS_STUB(char *, getlogin(void), { return 0; }) -RTEMS_STUB(int, gettimeofday(struct timeval *tv, struct timezone *tz), { return -1; }) +RTEMS_STUB(int, gettimeofday(struct timeval *__restrict tv, struct timezone *__restrict tz), { return -1; }) RTEMS_STUB(struct passwd *, getpwnam(const char *name), { return 0; }) RTEMS_STUB(struct passwd *, getpwuid(uid_t uid), { return 0; }) RTEMS_STUB(uid_t, getuid(void), { return 0; }) |