From d0441d10b5801db1d53f885fa707ae3768d2c98d Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 24 Mar 2003 16:05:24 +0000 Subject: The .Fn function. Use .Xr where appropriate. --- lib/libc/gen/sem_destroy.3 | 6 ++++-- lib/libc/gen/sem_getvalue.3 | 6 ++++-- lib/libc/gen/sem_init.3 | 19 +++++++++++-------- lib/libc/gen/sem_wait.3 | 6 ++++-- 4 files changed, 23 insertions(+), 14 deletions(-) (limited to 'lib/libc/gen') diff --git a/lib/libc/gen/sem_destroy.3 b/lib/libc/gen/sem_destroy.3 index c79b558..9b88b02 100644 --- a/lib/libc/gen/sem_destroy.3 +++ b/lib/libc/gen/sem_destroy.3 @@ -51,8 +51,9 @@ is unusable until re-initialized by another call to .Sh RETURN VALUES .Rv -std sem_destroy .Sh ERRORS +The .Fn sem_destroy -will fail if: +function will fail if: .Bl -tag -width Er .It Bq Er EINVAL .Fa sem @@ -66,8 +67,9 @@ points to. .Xr sem_init 3 , .Xr sem 4 .Sh STANDARDS +The .Fn sem_destroy -conforms to +function conforms to .St -p1003.1-96 . .Pp POSIX does not define the behavior of diff --git a/lib/libc/gen/sem_getvalue.3 b/lib/libc/gen/sem_getvalue.3 index 9517ffb..694ced4 100644 --- a/lib/libc/gen/sem_getvalue.3 +++ b/lib/libc/gen/sem_getvalue.3 @@ -51,8 +51,9 @@ is actually run. .Sh RETURN VALUES .Rv -std sem_getvalue .Sh ERRORS +The .Fn sem_getvalue -will fail if: +function will fail if: .Bl -tag -width Er .It Bq Er EINVAL .Fa sem @@ -64,8 +65,9 @@ points to an invalid semaphore. .Xr sem_wait 3 , .Xr sem 4 .Sh STANDARDS +The .Fn sem_getvalue -conforms to +function conforms to .St -p1003.1-96 . .Pp The value of the semaphore is never negative, even if there are threads blocked diff --git a/lib/libc/gen/sem_init.3 b/lib/libc/gen/sem_init.3 index f9eec78..46394b4 100644 --- a/lib/libc/gen/sem_init.3 +++ b/lib/libc/gen/sem_init.3 @@ -54,19 +54,21 @@ Following a successful call to .Fn sem_init , .Fa sem can be used as an argument in subsequent calls to -.Fa sem_wait , -.Fa sem_trywait , -.Fa sem_post , +.Xr sem_wait 3 , +.Xr sem_trywait 3 , +.Xr sem_post 3 , and -.Fa sem_destroy . +.Xr sem_destroy 3 . +The .Fa sem -is no longer valid after a successful call to -.Fa sem_destroy . +argument is no longer valid after a successful call to +.Xr sem_destroy 3 . .Sh RETURN VALUES .Rv -std sem_init .Sh ERRORS +The .Fn sem_init -will fail if: +function will fail if: .Bl -tag -width Er .It Bq Er EINVAL .Fa value @@ -83,8 +85,9 @@ Unable to initialize a shared semaphore. .Xr sem_wait 3 , .Xr sem 4 .Sh STANDARDS +The .Fn sem_init -conforms to +function conforms to .St -p1003.1-96 . .Pp This implementation does not support shared semaphores, and reports this fact diff --git a/lib/libc/gen/sem_wait.3 b/lib/libc/gen/sem_wait.3 index 84a17b3..735061e 100644 --- a/lib/libc/gen/sem_wait.3 +++ b/lib/libc/gen/sem_wait.3 @@ -59,10 +59,11 @@ an error is returned. .Sh RETURN VALUES .Rv -std .Sh ERRORS +The .Fn sem_wait and .Fn sem_trywait -will fail if: +functions will fail if: .Bl -tag -width Er .It Bq Er EINVAL .Fa sem @@ -80,8 +81,9 @@ The semaphore value was zero, and thus could not be decremented. .Xr sem_post 3 , .Xr sem 4 .Sh STANDARDS +The .Fn sem_wait and .Fn sem_trywait -conform to +functions conform to .St -p1003.1-96 . -- cgit v1.1