diff options
author | yar <yar@FreeBSD.org> | 2001-08-14 14:20:35 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2001-08-14 14:20:35 +0000 |
commit | deeb90994affa0d72956435908fb98b8f921fd12 (patch) | |
tree | 08bea27d2e4b9156ba4a754cb52c44a14ae702b0 | |
parent | e7702d76b63591efac5034f032cc6070e03a4417 (diff) | |
download | FreeBSD-src-deeb90994affa0d72956435908fb98b8f921fd12.zip FreeBSD-src-deeb90994affa0d72956435908fb98b8f921fd12.tar.gz |
Use the ".Rv" mdoc(7) macro where appropriate.
Reviewed by: ru
-rw-r--r-- | lib/libc/gen/lockf.3 | 8 | ||||
-rw-r--r-- | lib/libc/gen/siginterrupt.3 | 12 | ||||
-rw-r--r-- | lib/libc/posix1e/cap_set_flag.3 | 7 | ||||
-rw-r--r-- | lib/libc/posix1e/cap_set_proc.3 | 7 | ||||
-rw-r--r-- | lib/libc/sys/mincore.2 | 9 | ||||
-rw-r--r-- | lib/libc/sys/profil.2 | 14 |
6 files changed, 18 insertions, 39 deletions
diff --git a/lib/libc/gen/lockf.3 b/lib/libc/gen/lockf.3 index a199c2f..236c49a 100644 --- a/lib/libc/gen/lockf.3 +++ b/lib/libc/gen/lockf.3 @@ -179,12 +179,8 @@ locks may be safely used concurrently. .Pp Blocking on a section is interrupted by any signal. .Sh RETURN VALUES -If successful, the -.Fn lockf -function returns 0. -Otherwise, it returns -1, sets -.Dv errno -to indicate an error, and existing locks are not changed. +.Rv -std lockf +In the case of a failure, existing locks are not changed. .Sh ERRORS .Fn lockf will fail if: diff --git a/lib/libc/gen/siginterrupt.3 b/lib/libc/gen/siginterrupt.3 index 2667252..4a3b4a4 100644 --- a/lib/libc/gen/siginterrupt.3 +++ b/lib/libc/gen/siginterrupt.3 @@ -99,8 +99,16 @@ system call that is not available in .Bx 4.2 , hence it should not be used if backward compatibility is needed. .Sh RETURN VALUES -A 0 value indicates that the call succeeded. -A \-1 value indicates that an invalid signal number has been supplied. +.Rv -std siginterrupt +.Sh ERRORS +The +.Fn siginterrupt +call fails if: +.Bl -tag -width Er +.It Bq Er EINVAL +.Fa sig +is not a valid signal number. +.El .Sh SEE ALSO .Xr sigaction 2 , .Xr sigblock 2 , diff --git a/lib/libc/posix1e/cap_set_flag.3 b/lib/libc/posix1e/cap_set_flag.3 index ef74d10..4f246d5 100644 --- a/lib/libc/posix1e/cap_set_flag.3 +++ b/lib/libc/posix1e/cap_set_flag.3 @@ -59,13 +59,10 @@ Implementations may place restrictions on the setting of the flags in a capabili support for POSIX.1e interfaces and features is still under development at this time. .Sh RETURN VALUES -Upon successful completion, this function shall return a value of zero. -Otherwise, a value of -1 shall be returned, and -.Ar errno -shall be set to indicate the error. +.Rv -std cap_set_flag The capability state identified by .Ar cap_p -shall not be affected if the return value is -1. +shall not be affected if the function fails. .Sh ERRORS If any of the following conditions occur, the .Fn cap_set_flag diff --git a/lib/libc/posix1e/cap_set_proc.3 b/lib/libc/posix1e/cap_set_proc.3 index f3dfae3..542340f 100644 --- a/lib/libc/posix1e/cap_set_proc.3 +++ b/lib/libc/posix1e/cap_set_proc.3 @@ -60,14 +60,11 @@ remain unchanged. support for POSIX.1e interfaces and features is still under development at this time. .Sh RETURN VALUES -Upon successful completion, this function shall return a value of zero. -Otherwise, a value of -1 shall be returned and -.Ar errno -shall be set to indicate the error. +.Rv -std cap_set_proc Neither the state represented in the object identified by .Ar cap_p nor the capability state of the calling process shall be affected if the -return value is -1. +function fails. .Sh ERRORS If any of the following conditions occur, the .Fn cap_set_proc diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2 index cd34c5a..1bc309f 100644 --- a/lib/libc/sys/mincore.2 +++ b/lib/libc/sys/mincore.2 @@ -57,14 +57,7 @@ in the character array with a value of 1 meaning that the page is in-core. .Sh RETURN VALUES -Upon successful completion, -.Fn mincore -returns 0 and -.Fa vec -is updated to reflect the page status. Otherwise a value of -1 -is returned and -.Va errno -is set to indicate the error. +.Rv -std mincore .Sh ERRORS .Bl -tag -width Er .It Bq Er EINVAL diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2 index 568d257..14b2bd5 100644 --- a/lib/libc/sys/profil.2 +++ b/lib/libc/sys/profil.2 @@ -91,19 +91,7 @@ A .Fa scale value of 0 disables profiling. .Sh RETURN VALUES -If the -.Fa scale -value is nonzero and the buffer -.Fa samples -contains an illegal address, -.Fn profil -returns \-1, -profiling is terminated and -.Va errno -is set appropriately. -Otherwise -.Fn profil -returns 0. +.Rv -std profil .Sh FILES .Bl -tag -width /usr/lib/gcrt0.o -compact .It Pa /usr/lib/gcrt0.o |