diff options
author | mike <mike@FreeBSD.org> | 2002-10-04 21:32:00 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-04 21:32:00 +0000 |
commit | cf479e35164c9b972e937e94c67035dbaf674b9c (patch) | |
tree | d82fb6bf3b9463173544ca9a029720cd80857b8f /lib | |
parent | 308c69ee6a0c88f6783afba7505bc043dbc4e918 (diff) | |
download | FreeBSD-src-cf479e35164c9b972e937e94c67035dbaf674b9c.zip FreeBSD-src-cf479e35164c9b972e937e94c67035dbaf674b9c.tar.gz |
Add restrict type-qualifier to sem_getvalue().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/sem.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/sem_getvalue.3 | 2 | ||||
-rw-r--r-- | lib/libc/sys/sem.c | 2 | ||||
-rw-r--r-- | lib/libc_r/man/sem_getvalue.3 | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/sem.c b/lib/libc/gen/sem.c index 2547eb2..fbed62a 100644 --- a/lib/libc/gen/sem.c +++ b/lib/libc/gen/sem.c @@ -333,7 +333,7 @@ sem_post(sem_t *sem) } int -sem_getvalue(sem_t *sem, int *sval) +sem_getvalue(sem_t * __restrict sem, int * __restrict sval) { int retval; diff --git a/lib/libc/gen/sem_getvalue.3 b/lib/libc/gen/sem_getvalue.3 index d1cc3a4..6ccff5c 100644 --- a/lib/libc/gen/sem_getvalue.3 +++ b/lib/libc/gen/sem_getvalue.3 @@ -37,7 +37,7 @@ .Sh SYNOPSIS .In semaphore.h .Ft int -.Fn sem_getvalue "sem_t *sem" "int *sval" +.Fn sem_getvalue "sem_t * restrict sem" "int * restrict sval" .Sh DESCRIPTION The .Fn sem_getvalue diff --git a/lib/libc/sys/sem.c b/lib/libc/sys/sem.c index 2547eb2..fbed62a 100644 --- a/lib/libc/sys/sem.c +++ b/lib/libc/sys/sem.c @@ -333,7 +333,7 @@ sem_post(sem_t *sem) } int -sem_getvalue(sem_t *sem, int *sval) +sem_getvalue(sem_t * __restrict sem, int * __restrict sval) { int retval; diff --git a/lib/libc_r/man/sem_getvalue.3 b/lib/libc_r/man/sem_getvalue.3 index d1cc3a4..6ccff5c 100644 --- a/lib/libc_r/man/sem_getvalue.3 +++ b/lib/libc_r/man/sem_getvalue.3 @@ -37,7 +37,7 @@ .Sh SYNOPSIS .In semaphore.h .Ft int -.Fn sem_getvalue "sem_t *sem" "int *sval" +.Fn sem_getvalue "sem_t * restrict sem" "int * restrict sval" .Sh DESCRIPTION The .Fn sem_getvalue |