Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-25 17:46:23 +0400
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-25 17:46:23 +0400
commitd482870337349732ad1c9f3715730fd32b6216d0 (patch)
treea7395d230c93fee8c52d2b4730963001bdf7149d /newlib/libc/sys
parent3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (diff)
2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
* libc/include/time.h (time): Add restrict keyword. * libc/include/wchar.h (wcsftime): Add restrict keyword. * libc/time/asctime_r.c (asctime_r): Same. * libc/time/gmtime_r.c (gmtime_r): Same. * libc/time/lcltime_r.c (lcltime_r): Same. * libc/time/strftime.c (strftime): Same. * libc/time/strptime.c (strptime): Same. * libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same. * libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/linux/linuxthreads/timer_create.c4
-rw-r--r--newlib/libc/sys/linux/linuxthreads/timer_settime.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/sys/linux/linuxthreads/timer_create.c b/newlib/libc/sys/linux/linuxthreads/timer_create.c
index 1dccd3036..5eff1fc37 100644
--- a/newlib/libc/sys/linux/linuxthreads/timer_create.c
+++ b/newlib/libc/sys/linux/linuxthreads/timer_create.c
@@ -30,8 +30,8 @@
int
timer_create (clock_id, evp, timerid)
clockid_t clock_id;
- struct sigevent *evp;
- timer_t *timerid;
+ struct sigevent *__restrict evp;
+ timer_t *__restrict timerid;
{
int retval = -1;
struct timer_node *newtimer = NULL;
diff --git a/newlib/libc/sys/linux/linuxthreads/timer_settime.c b/newlib/libc/sys/linux/linuxthreads/timer_settime.c
index 2f187fd18..697640724 100644
--- a/newlib/libc/sys/linux/linuxthreads/timer_settime.c
+++ b/newlib/libc/sys/linux/linuxthreads/timer_settime.c
@@ -29,8 +29,8 @@ int
timer_settime (timerid, flags, value, ovalue)
timer_t timerid;
int flags;
- const struct itimerspec *value;
- struct itimerspec *ovalue;
+ const struct itimerspec *__restrict value;
+ struct itimerspec *__restrict ovalue;
{
struct timer_node *timer;
struct thread_node *thread = NULL;