Add restrict type-qualifier to sem_getvalue().

This commit is contained in:
mike 2002-10-04 21:32:00 +00:00
parent 308c69ee6a
commit cf479e3516
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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