/usr/include
NameSizeModeActions
arpa/-0755rm
asm/-0755rm
asm-generic/-0755rm
bits/-0755rm
bsock/-0755rm
c++/-0755rm
curl/-0755rm
drm/-0755rm
et/-0755rm
finclude/-0755rm
fwctl/-0755rm
gdb/-0755rm
gnu/-0755rm
gssapi/-0755rm
gssrpc/-0755rm
kadm5/-0755rm
krb5/-0755rm
libxml2/-0755rm
linux/-0755rm
lzma/-0755rm
misc/-0755rm
mtd/-0755rm
net/-0755rm
netash/-0755rm
netatalk/-0755rm
netax25/-0755rm
neteconet/-0755rm
netinet/-0755rm
netipx/-0755rm
netiucv/-0755rm
netpacket/-0755rm
netrom/-0755rm
netrose/-0755rm
nfs/-0755rm
nghttp2/-0755rm
offload/-0755rm
openssl/-0755rm
pcp/-0755rm
protocols/-0755rm
python3.9/-0755rm
rdma/-0755rm
rpc/-0755rm
sasl/-0755rm
scsi/-0755rm
selinux/-0755rm
sepol/-0755rm
sound/-0755rm
sys/-0755rm
video/-0755rm
xen/-0755rm
a.out.h43510644editdlrm
aio.h77380644editdlrm
aliases.h20280644editdlrm
alloca.h12030644editdlrm
ar.h17310644editdlrm
argp.h255480644editdlrm
argz.h60510644editdlrm
assert.h45620644editdlrm
byteswap.h14490644editdlrm
complex.h81400644editdlrm
com_err.h21180644editdlrm
cpio.h22680644editdlrm
cpuidle.h9310644editdlrm
crypt.h111600644editdlrm
ctype.h109690644editdlrm
dirent.h126170644editdlrm
dlfcn.h88020644editdlrm
elf.h1825420644editdlrm
endian.h22990644editdlrm
envz.h28670644editdlrm
err.h23410644editdlrm
errno.h16790644editdlrm
error.h24160644editdlrm
execinfo.h15230644editdlrm
fcntl.h114420644editdlrm
features-time64.h14040644editdlrm
features.h181160644editdlrm
fenv.h57880644editdlrm
FlexLexer.h68930644editdlrm
fmtmsg.h32400644editdlrm
fnmatch.h22960644editdlrm
fpu_control.h35840644editdlrm
fstab.h31110644editdlrm
fts.h95790644editdlrm
ftw.h63430644editdlrm
gconv.h42110644editdlrm
gelf.h114060644editdlrm
GeoIP.h178350644editdlrm
GeoIPCity.h22980644editdlrm
getopt.h14690644editdlrm
glob.h72990644editdlrm
gnu-versions.h23430644editdlrm
gnumake.h29120644editdlrm
grp.h66870644editdlrm
gshadow.h45290644editdlrm
gssapi.h1810644editdlrm
iconv.h18580644editdlrm
idn2.h138910644editdlrm
ieee754.h49160644editdlrm
ifaddrs.h28410644editdlrm
inttypes.h83370644editdlrm
kdb.h643330644editdlrm
keyutils.h117960644editdlrm
krad.h89330644editdlrm
krb5.h4020644editdlrm
langinfo.h178490644editdlrm
lastlog.h1260644editdlrm
lauxlib.h93140644editdlrm
lber.h154800644editdlrm
lber_types.h14680644editdlrm
ldap.h741000644editdlrm
ldap_cdefs.h94660644editdlrm
ldap_features.h15850644editdlrm
ldap_schema.h94500644editdlrm
ldap_utf8.h34680644editdlrm
ldif.h47930644editdlrm
libelf.h207950644editdlrm
libgen.h13860644editdlrm
libintl.h45800644editdlrm
liblsapi-sha1.h5690644editdlrm
libpsl.h57920644editdlrm
libssh2.h606650644editdlrm
libssh2_publickey.h49420644editdlrm
libssh2_sftp.h173690644editdlrm
limits.h57060644editdlrm
link.h78010644editdlrm
locale.h76750644editdlrm
lsapidef.h48890644editdlrm
lscapi.h252290644editdlrm
lscapi_config.h5990644editdlrm
lua.h158180644editdlrm
lua.hpp1910644editdlrm
luaconf-x86_64.h215180644editdlrm
luaconf.h16550644editdlrm
lualib.h11160644editdlrm
lzma.h98660644editdlrm
malloc.h59120644editdlrm
math.h487730644editdlrm
mcheck.h24350644editdlrm
memory.h9560644editdlrm
mntent.h33590644editdlrm
monetary.h19660644editdlrm
mqueue.h46030644editdlrm
mysql-0editdlrm
netdb.h284610644editdlrm
nlist.h16010644editdlrm
nl_types.h17530644editdlrm
nss.h144080644editdlrm
obstack.h213070644editdlrm
openldap.h9640644editdlrm
paths.h29770644editdlrm
pcre2.h472570644editdlrm
pcre2posix.h66770644editdlrm
poll.h220644editdlrm
powercap.h16600644editdlrm
printf.h68750644editdlrm
proc_service.h34770644editdlrm
profile.h121540644editdlrm
pthread.h485240644editdlrm
pty.h15700644editdlrm
pwd.h63170644editdlrm
regex.h259040644editdlrm
regexp.h14480644editdlrm
resolv.h123870644editdlrm
re_comp.h9630644editdlrm
sched.h50380644editdlrm
search.h54500644editdlrm
semaphore.h34640644editdlrm
setjmp.h31900644editdlrm
sgtty.h13440644editdlrm
shadow.h54720644editdlrm
signal.h130400644editdlrm
slapi-plugin.h383520644editdlrm
spawn.h82970644editdlrm
stab.h2640644editdlrm
stdc-predef.h22900644editdlrm
stdint.h84740644editdlrm
stdio.h314110644editdlrm
stdio_ext.h28000644editdlrm
stdlib.h363160644editdlrm
string.h194590644editdlrm
strings.h47530644editdlrm
syscall.h250644editdlrm
sysexits.h52320644editdlrm
syslog.h240644editdlrm
tar.h37860644editdlrm
termio.h2140644editdlrm
termios.h35990644editdlrm
tgmath.h401800644editdlrm
threads.h76860644editdlrm
thread_db.h160240644editdlrm
time.h148480644editdlrm
ttyent.h24940644editdlrm
uchar.h20020644editdlrm
ucontext.h20370644editdlrm
ulimit.h15840644editdlrm
unistd.h444890644editdlrm
utime.h19050644editdlrm
utmp.h32230644editdlrm
utmpx.h41000644editdlrm
values.h19560644editdlrm
verto-module.h66400644editdlrm
verto.h194370644editdlrm
wait.h220644editdlrm
wchar.h321420644editdlrm
wctype.h55490644editdlrm
wordexp.h25020644editdlrm
zconf.h162620644editdlrm
zdict.h264330644editdlrm
zlib.h962610644editdlrm
zstd.h1713780644editdlrm
zstd_errors.h45320644editdlrm
Edit: /usr/include/search.h (5450B)
/* Declarations for System V style searching functions. Copyright (C) 1995-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _SEARCH_H #define _SEARCH_H 1 #include #define __need_size_t #include __BEGIN_DECLS #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED /* Prototype structure for a linked-list data structure. This is the type used by the `insque' and `remque' functions. */ # ifdef __USE_GNU struct qelem { struct qelem *q_forw; struct qelem *q_back; char q_data[1]; }; # endif /* Insert ELEM into a doubly-linked list, after PREV. */ extern void insque (void *__elem, void *__prev) __THROW; /* Unlink ELEM from the doubly-linked list that it is in. */ extern void remque (void *__elem) __THROW; #endif /* For use with hsearch(3). */ #ifndef __COMPAR_FN_T # define __COMPAR_FN_T typedef int (*__compar_fn_t) (const void *, const void *); # ifdef __USE_GNU typedef __compar_fn_t comparison_fn_t; # endif #endif /* Action which shall be performed in the call the hsearch. */ typedef enum { FIND, ENTER } ACTION; typedef struct entry { char *key; void *data; } ENTRY; /* Opaque type for internal use. */ struct _ENTRY; /* Family of hash table handling functions. The functions also have reentrant counterparts ending with _r. The non-reentrant functions all work on a signle internal hashing table. */ /* Search for entry matching ITEM.key in internal hash table. If ACTION is `FIND' return found entry or signal error by returning NULL. If ACTION is `ENTER' replace existing data (if any) with ITEM.data. */ extern ENTRY *hsearch (ENTRY __item, ACTION __action) __THROW; /* Create a new hashing table which will at most contain NEL elements. */ extern int hcreate (size_t __nel) __THROW; /* Destroy current internal hashing table. */ extern void hdestroy (void) __THROW; #ifdef __USE_GNU /* Data type for reentrant functions. */ struct hsearch_data { struct _ENTRY *table; unsigned int size; unsigned int filled; }; /* Reentrant versions which can handle multiple hashing tables at the same time. */ extern int hsearch_r (ENTRY __item, ACTION __action, ENTRY **__retval, struct hsearch_data *__htab) __THROW; extern int hcreate_r (size_t __nel, struct hsearch_data *__htab) __THROW; extern void hdestroy_r (struct hsearch_data *__htab) __THROW; #endif /* The tsearch routines are very interesting. They make many assumptions about the compiler. It assumes that the first field in node must be the "key" field, which points to the datum. Everything depends on that. */ /* For tsearch */ typedef enum { preorder, postorder, endorder, leaf } VISIT; /* Search for an entry matching the given KEY in the tree pointed to by *ROOTP and insert a new element if not found. */ extern void *tsearch (const void *__key, void **__rootp, __compar_fn_t __compar); /* Search for an entry matching the given KEY in the tree pointed to by *ROOTP. If no matching entry is available return NULL. */ extern void *tfind (const void *__key, void *const *__rootp, __compar_fn_t __compar); /* Remove the element matching KEY from the tree pointed to by *ROOTP. */ extern void *tdelete (const void *__restrict __key, void **__restrict __rootp, __compar_fn_t __compar); #ifndef __ACTION_FN_T # define __ACTION_FN_T typedef void (*__action_fn_t) (const void *__nodep, VISIT __value, int __level); #endif /* Walk through the whole tree and call the ACTION callback for every node or leaf. */ extern void twalk (const void *__root, __action_fn_t __action); #ifdef __USE_GNU /* Like twalk, but pass down a closure parameter instead of the level. */ extern void twalk_r (const void *__root, void (*) (const void *__nodep, VISIT __value, void *__closure), void *__closure); /* Callback type for function to free a tree node. If the keys are atomic data this function should do nothing. */ typedef void (*__free_fn_t) (void *__nodep); /* Destroy the whole tree, call FREEFCT for each node or leaf. */ extern void tdestroy (void *__root, __free_fn_t __freefct); #endif /* Perform linear search for KEY by comparing by COMPAR in an array [BASE,BASE+NMEMB*SIZE). */ extern void *lfind (const void *__key, const void *__base, size_t *__nmemb, size_t __size, __compar_fn_t __compar); /* Perform linear search for KEY by comparing by COMPAR function in array [BASE,BASE+NMEMB*SIZE) and insert entry if not found. */ extern void *lsearch (const void *__key, void *__base, size_t *__nmemb, size_t __size, __compar_fn_t __compar); __END_DECLS #endif /* search.h */