summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorotto <>2006-04-04 19:07:23 +0000
committerotto <>2006-04-04 19:07:23 +0000
commitf96e7b7035ac868739059b815bcdf7eed259c208 (patch)
tree27327f181f9c1d0d6f24fd1d741800449219d9bb /src/lib
parent98d91b101f726e2dc971f807de9ed123cb2b80e4 (diff)
downloadopenbsd-f96e7b7035ac868739059b815bcdf7eed259c208.tar.gz
openbsd-f96e7b7035ac868739059b815bcdf7eed259c208.tar.bz2
openbsd-f96e7b7035ac868739059b815bcdf7eed259c208.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 'src/lib')
-rw-r--r--src/lib/libc/stdlib/tsearch.310
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/tsearch.3 b/src/lib/libc/stdlib/tsearch.3
index ebc521ba17..0dc5c0c374 100644
--- a/src/lib/libc/stdlib/tsearch.3
+++ b/src/lib/libc/stdlib/tsearch.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tsearch.3,v 1.14 2006/04/04 11:21:50 moritz Exp $ 1.\" $OpenBSD: tsearch.3,v 1.15 2006/04/04 19:07:23 otto Exp $
2.\" 2.\"
3.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> 3.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
4.\" 4.\"
@@ -117,3 +117,11 @@ function returns no value.
117.Sh STANDARDS 117.Sh STANDARDS
118These functions conform to 118These functions conform to
119.St -p1003.1-2004 . 119.St -p1003.1-2004 .
120.Sh CAVEATS
121The
122.St -p1003.1-2004
123standard does not specify what value should be returned when deleting the
124root node.
125Since implementations vary, the user of the
126.Fn tdelete
127function should not rely on a specific behaviour.