diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-08-14 14:20:35 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2001-08-14 14:20:35 +0000 |
commit | a2a0a4dc2a1ae8e6bdc1bdeb89f66f0c8df2fa2c (patch) | |
tree | 08bea27d2e4b9156ba4a754cb52c44a14ae702b0 /lib/libc | |
parent | 94ddc5afe95a42ea10f16fc1747e2a87feb01ca5 (diff) | |
download | src-a2a0a4dc2a1ae8e6bdc1bdeb89f66f0c8df2fa2c.tar.gz src-a2a0a4dc2a1ae8e6bdc1bdeb89f66f0c8df2fa2c.zip |
Use the ".Rv" mdoc(7) macro where appropriate.
Reviewed by: ru
Notes
Notes:
svn path=/head/; revision=81629
Diffstat (limited to 'lib/libc')
-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 a199c2fbd8b7..236c49a63824 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 26672520e897..4a3b4a4aea8c 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 ef74d107806b..4f246d5c454e 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 f3dfae33b573..542340faf3bd 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 cd34c5aed063..1bc309f1af9b 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 568d25731425..14b2bd52edd7 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 |