diff options
| author | otto <> | 2006-04-04 19:07:23 +0000 |
|---|---|---|
| committer | otto <> | 2006-04-04 19:07:23 +0000 |
| commit | f96e7b7035ac868739059b815bcdf7eed259c208 (patch) | |
| tree | 27327f181f9c1d0d6f24fd1d741800449219d9bb /src/lib/libc/stdlib | |
| parent | 98d91b101f726e2dc971f807de9ed123cb2b80e4 (diff) | |
| download | openbsd-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/libc/stdlib')
| -rw-r--r-- | src/lib/libc/stdlib/tsearch.3 | 10 |
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 |
| 118 | These functions conform to | 118 | These functions conform to |
| 119 | .St -p1003.1-2004 . | 119 | .St -p1003.1-2004 . |
| 120 | .Sh CAVEATS | ||
| 121 | The | ||
| 122 | .St -p1003.1-2004 | ||
| 123 | standard does not specify what value should be returned when deleting the | ||
| 124 | root node. | ||
| 125 | Since implementations vary, the user of the | ||
| 126 | .Fn tdelete | ||
| 127 | function should not rely on a specific behaviour. | ||
