From f96e7b7035ac868739059b815bcdf7eed259c208 Mon Sep 17 00:00:00 2001
From: otto <>
Date: Tue, 4 Apr 2006 19:07:23 +0000
Subject: 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.

---
 src/lib/libc/stdlib/tsearch.3 | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'src')

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 @@
-.\" $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.
-- 
cgit v1.2.3-55-g6feb