From 7ffdd83736c4e5dc06d040ec090ce154f1e2e64e Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Thu, 29 Jan 2015 01:46:31 +0000 Subject: Use .Rv where appropriate, and move it to RETURN VALUES; remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net. --- src/lib/libc/net/getifaddrs.3 | 15 ++++++--------- src/lib/libc/stdlib/qsort.3 | 13 +++---------- src/lib/libc/stdlib/radixsort.3 | 12 ++++-------- 3 files changed, 13 insertions(+), 27 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/net/getifaddrs.3 b/src/lib/libc/net/getifaddrs.3 index 0b3538302a..4abc01481a 100644 --- a/src/lib/libc/net/getifaddrs.3 +++ b/src/lib/libc/net/getifaddrs.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getifaddrs.3,v 1.19 2014/04/07 17:57:56 schwarze Exp $ +.\" $OpenBSD: getifaddrs.3,v 1.20 2015/01/29 01:46:30 schwarze Exp $ .\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp .\" .\" Copyright (c) 1995, 1999 @@ -21,7 +21,7 @@ .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. -.Dd $Mdocdate: April 7 2014 $ +.Dd $Mdocdate: January 29 2015 $ .Dt GETIFADDRS 3 .Os .Sh NAME @@ -43,11 +43,11 @@ function stores a reference to a linked list of the network interfaces on the local machine in the memory referenced by .Fa ifap . The list consists of -.Nm ifaddrs +.Vt ifaddrs structures, as defined in the include file .In ifaddrs.h . The -.Nm ifaddrs +.Vt ifaddrs structure contains at least the following entries: .Bd -literal struct ifaddrs *ifa_next; /* Pointer to next struct */ @@ -102,7 +102,7 @@ References address family specific data. For .Dv AF_LINK addresses it contains a pointer to the -.Li struct if_data +.Vt struct if_data (as defined in include file .In net/if.h ) which contains various interface attributes and statistics. @@ -118,10 +118,7 @@ is dynamically allocated and should be freed using .Fn freeifaddrs when no longer needed. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS The .Fn getifaddrs diff --git a/src/lib/libc/stdlib/qsort.3 b/src/lib/libc/stdlib/qsort.3 index 4481a96ee4..36eaed879b 100644 --- a/src/lib/libc/stdlib/qsort.3 +++ b/src/lib/libc/stdlib/qsort.3 @@ -29,9 +29,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: qsort.3,v 1.17 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: qsort.3,v 1.18 2015/01/29 01:46:31 schwarze Exp $ .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: January 29 2015 $ .Dt QSORT 3 .Os .Sh NAME @@ -147,14 +147,7 @@ The .Fn qsort function returns no value. .Pp -Upon successful completion, -.Fn heapsort -and -.Fn mergesort -return 0. -Otherwise, they return \-1 and the global variable -.Va errno -is set to indicate the error. +.Rv -std heapsort mergesort .Sh ERRORS The .Fn heapsort diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3 index e62f760270..e706b798b7 100644 --- a/src/lib/libc/stdlib/radixsort.3 +++ b/src/lib/libc/stdlib/radixsort.3 @@ -25,9 +25,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: radixsort.3,v 1.12 2013/06/05 03:39:23 tedu Exp $ +.\" $OpenBSD: radixsort.3,v 1.13 2015/01/29 01:46:31 schwarze Exp $ .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: January 29 2015 $ .Dt RADIXSORT 3 .Os .Sh NAME @@ -78,8 +78,7 @@ If is .Dv NULL , the contents of the array are sorted in ascending order according to the -.Tn ASCII -order of the byte strings they reference and +ASCII order of the byte strings they reference and .Fa endbyte has a sorting weight of 0. .Pp @@ -101,10 +100,7 @@ These functions are variants of most-significant-byte radix sorting; in particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10. They take linear time relative to the number of bytes in the strings. .Sh RETURN VALUES -Upon successful completion 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Bl -tag -width Er .It Bq Er EINVAL -- cgit v1.2.3-55-g6feb