summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/radixsort.3
diff options
context:
space:
mode:
authorschwarze <>2015-01-29 01:46:31 +0000
committerschwarze <>2015-01-29 01:46:31 +0000
commitba252189625c65f9cf5d3737694778ed5ae1ac0b (patch)
treef26cbae9414442340e770fa73eb134ec819c0d4c /src/lib/libc/stdlib/radixsort.3
parenta1f5c39690c9143d4043aaabb4517ab02f2d1911 (diff)
downloadopenbsd-ba252189625c65f9cf5d3737694778ed5ae1ac0b.tar.gz
openbsd-ba252189625c65f9cf5d3737694778ed5ae1ac0b.tar.bz2
openbsd-ba252189625c65f9cf5d3737694778ed5ae1ac0b.zip
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.
Diffstat (limited to 'src/lib/libc/stdlib/radixsort.3')
-rw-r--r--src/lib/libc/stdlib/radixsort.312
1 files changed, 4 insertions, 8 deletions
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 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: radixsort.3,v 1.12 2013/06/05 03:39:23 tedu Exp $ 28.\" $OpenBSD: radixsort.3,v 1.13 2015/01/29 01:46:31 schwarze Exp $
29.\" 29.\"
30.Dd $Mdocdate: June 5 2013 $ 30.Dd $Mdocdate: January 29 2015 $
31.Dt RADIXSORT 3 31.Dt RADIXSORT 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -78,8 +78,7 @@ If
78is 78is
79.Dv NULL , 79.Dv NULL ,
80the contents of the array are sorted in ascending order according to the 80the contents of the array are sorted in ascending order according to the
81.Tn ASCII 81ASCII order of the byte strings they reference and
82order of the byte strings they reference and
83.Fa endbyte 82.Fa endbyte
84has a sorting weight of 0. 83has a sorting weight of 0.
85.Pp 84.Pp
@@ -101,10 +100,7 @@ These functions are variants of most-significant-byte radix sorting; in
101particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10. 100particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10.
102They take linear time relative to the number of bytes in the strings. 101They take linear time relative to the number of bytes in the strings.
103.Sh RETURN VALUES 102.Sh RETURN VALUES
104Upon successful completion 0 is returned. 103.Rv -std
105Otherwise, \-1 is returned and the global variable
106.Va errno
107is set to indicate the error.
108.Sh ERRORS 104.Sh ERRORS
109.Bl -tag -width Er 105.Bl -tag -width Er
110.It Bq Er EINVAL 106.It Bq Er EINVAL