Use the ".Rv" mdoc(7) macro where appropriate.

Reviewed by:	ru
This commit is contained in:
Yaroslav Tykhiy 2001-08-14 14:20:35 +00:00
parent 94ddc5afe9
commit a2a0a4dc2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81629
6 changed files with 18 additions and 39 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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