Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177910542
D61969.1795561625.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
599 B
Referenced Files
None
Subscribers
None
D61969.1795561625.diff
View Options
diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3
--- a/lib/libc/stdlib/tsearch.3
+++ b/lib/libc/stdlib/tsearch.3
@@ -26,7 +26,7 @@
.\"
.\" OpenBSD: tsearch.3,v 1.2 1998/06/21 22:13:49 millert Exp
.\"
-.Dd November 17, 2026
+.Dd November 23, 2026
.Dt TSEARCH 3
.Os
.Sh NAME
@@ -107,7 +107,12 @@
.Fn tsearch .
If the node to be deleted is the root of the binary search tree,
.Fa rootp
-will be adjusted.
+will be adjusted,
+and, since it has no parent,
+.Fn tdelete
+returns an unspecified
+.Pf non- Dv NULL
+pointer which must not be dereferenced.
.Pp
The
.Fn tdestroy
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 24, 11:07 PM (22 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41967399
Default Alt Text
D61969.1795561625.diff (599 B)
Attached To
Mode
D61969: tdelete(3): Document return value when deleting root node
Attached
Detach File
Event Timeline