summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/qsort.3
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-29 01:46:30 +0000
committerschwarze <schwarze@openbsd.org>2015-01-29 01:46:30 +0000
commitee10762e100ef47e82bb9da2ebe88f56c8db1013 (patch)
tree02ab3c65edd5034ed995d7f9609ea712653c2643 /lib/libc/stdlib/qsort.3
parentRadical cleanup of COMPATIBILITY sections: (diff)
downloadwireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.tar.xz
wireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.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 'lib/libc/stdlib/qsort.3')
-rw-r--r--lib/libc/stdlib/qsort.313
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/stdlib/qsort.3 b/lib/libc/stdlib/qsort.3
index 4481a96ee4d..36eaed879b5 100644
--- a/lib/libc/stdlib/qsort.3
+++ b/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