summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-04-04 19:07:23 +0000
committerotto <otto@openbsd.org>2006-04-04 19:07:23 +0000
commit4c7e371ddee180a44fee705e7fd313887ddd5c6d (patch)
treee190f7a562633f21e3f037dfe063a883ed0e0d37 /lib/libc/stdlib
parentRemove unused variable, spotted by otto@ (diff)
downloadwireguard-openbsd-4c7e371ddee180a44fee705e7fd313887ddd5c6d.tar.xz
wireguard-openbsd-4c7e371ddee180a44fee705e7fd313887ddd5c6d.zip
POSIX says tdelete() returns the parent of the deleted node. Sadly the
root node doesn't have a parent, and POSIX does not say what should be done in that case. Warn developers that different implementations may do different things.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/tsearch.310
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3
index ebc521ba17f..0dc5c0c374f 100644
--- a/lib/libc/stdlib/tsearch.3
+++ b/lib/libc/stdlib/tsearch.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tsearch.3,v 1.14 2006/04/04 11:21:50 moritz Exp $
+.\" $OpenBSD: tsearch.3,v 1.15 2006/04/04 19:07:23 otto Exp $
.\"
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -117,3 +117,11 @@ function returns no value.
.Sh STANDARDS
These functions conform to
.St -p1003.1-2004 .
+.Sh CAVEATS
+The
+.St -p1003.1-2004
+standard does not specify what value should be returned when deleting the
+root node.
+Since implementations vary, the user of the
+.Fn tdelete
+function should not rely on a specific behaviour.