[libc-commits] [libc] [libc] add doc for search.h (PR #80492)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Feb 2 15:52:27 PST 2024


================
@@ -0,0 +1,86 @@
+=============
+Search Tables
+=============
+
+.. include:: check.rst
+
+---------------
+Source Location
+---------------
+
+-   The main source for bitwise utility functions is located at:
+    ``libc/src/search``.
+
+-   Hashtable implementation is located at:
+    ``libc/src/__support/HashTable``.
+
+-   The tests are located at:
+    ``libc/test/src/search/``.
+
+---------------------
+Implementation Status
+---------------------
+
+POSIX Standard Types
+====================
+
+============================ =========
+Type Name                    Available
+============================ =========
+ACTION                       |check|
+ENTRY                        |check|
+VISIT                        
+============================ =========
+
+POSIX Standard Functions
+========================
+
+============================ =========
+Function Name                Available
+============================ =========
+hcreate                      |check|
+hdestroy                     |check|
+hsearch                      |check|
+insque                       
+lfind                        
+lsearch                      
+remque
+tdelete
+tfind
+tsearch
+twalk
+============================ =========
+
+
+GNU Extension Functions
+=======================
+
+=========================  =========
+Function Name              Available
+=========================  =========
+hsearch_r                  |check|
+hcreate_r                  |check|
+hdestroy_r                 |check|
+tdestroy
+twalk_r
+=========================  =========
+
+
+Standards
+=========
+search.h is specified in POSIX.1-200x (Portable Operating System Interface, Volume1: Base Specifications).
+
+Notice
+======
+
+The following definitions from ``glibc`` will not be provided: 
+
+============================ =================
+Type Name                    Associated Macro 
+============================ =================
+struct qelem                 
+__compar_fn_t                __COMPAR_FN_T
+comparison_fn_t
+__action_fn_t                __ACTION_FN_T
+__free_fn_t
+============================ =================
----------------
nickdesaulniers wrote:

remove, please

https://github.com/llvm/llvm-project/pull/80492


More information about the libc-commits mailing list