[libc-commits] [PATCH] D136489: [libc.search] [PATCH 3/6] add `search.h` specifications

Schrodinger ZHU Yifan via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Oct 21 13:30:19 PDT 2022


SchrodingerZhu created this revision.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
SchrodingerZhu requested review of this revision.

This patch initiates definitions for search.h as specified in POXIS.1-2001. Because this patch means to
be a part of a larger patch of hashtable implementation, The header definition is not complete,
only hsearch, hdelete, hcreate, ACTION, ENTRY (POSIX standards), and hsearch_r, hdetele_r, hcreate_r,
struct hsearch_data (GNU extensions) are added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136489

Files:
  libc/config/linux/x86_64/headers.txt
  libc/include/CMakeLists.txt
  libc/include/llvm-libc-types/CMakeLists.txt
  libc/include/llvm-libc-types/action.h
  libc/include/llvm-libc-types/entry.h
  libc/include/llvm-libc-types/struct_hsearch_data.h
  libc/include/search.h.def
  libc/spec/posix.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136489.469748.patch
Type: text/x-patch
Size: 6780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221021/9cea093d/attachment-0001.bin>


More information about the libc-commits mailing list