/
usr
/
include
/
bind9
/
isc
/
/usr/include/bind9/isc
mkdir
upload
Name
Size
Mode
Actions
aes.h
1080
0644
edit
dl
rm
app.h
10478
0644
edit
dl
rm
assertions.h
2907
0644
edit
dl
rm
atomic.h
4168
0644
edit
dl
rm
backtrace.h
3891
0644
edit
dl
rm
base32.h
4453
0644
edit
dl
rm
base64.h
2866
0644
edit
dl
rm
bind9.h
830
0644
edit
dl
rm
boolean.h
594
0644
edit
dl
rm
buffer.h
26268
0644
edit
dl
rm
bufferlist.h
1452
0644
edit
dl
rm
cmocka.h
1383
0644
edit
dl
rm
commandline.h
1713
0644
edit
dl
rm
condition.h
1478
0644
edit
dl
rm
counter.h
1926
0644
edit
dl
rm
crc64.h
998
0644
edit
dl
rm
deprecated.h
623
0644
edit
dl
rm
dir.h
1598
0644
edit
dl
rm
endian.h
4778
0644
edit
dl
rm
entropy.h
10373
0644
edit
dl
rm
errno.h
659
0644
edit
dl
rm
errno2result.h
902
0644
edit
dl
rm
error.h
1430
0644
edit
dl
rm
event.h
3053
0644
edit
dl
rm
eventclass.h
1381
0644
edit
dl
rm
file.h
11667
0644
edit
dl
rm
formatcheck.h
893
0644
edit
dl
rm
fsaccess.h
7442
0644
edit
dl
rm
hash.h
7662
0644
edit
dl
rm
heap.h
5264
0644
edit
dl
rm
hex.h
2806
0644
edit
dl
rm
hmacmd5.h
1787
0644
edit
dl
rm
hmacsha.h
4511
0644
edit
dl
rm
ht.h
4396
0644
edit
dl
rm
httpd.h
2318
0644
edit
dl
rm
int.h
1088
0644
edit
dl
rm
interfaceiter.h
3120
0644
edit
dl
rm
iterated_hash.h
1046
0644
edit
dl
rm
json.h
1459
0644
edit
dl
rm
keyboard.h
989
0644
edit
dl
rm
lang.h
637
0644
edit
dl
rm
lex.h
9771
0644
edit
dl
rm
lfsr.h
2958
0644
edit
dl
rm
lib.h
1068
0644
edit
dl
rm
likely.h
818
0644
edit
dl
rm
list.h
5751
0644
edit
dl
rm
log.h
28734
0644
edit
dl
rm
magic.h
994
0644
edit
dl
rm
md5.h
2380
0644
edit
dl
rm
mem.h
21110
0644
edit
dl
rm
meminfo.h
710
0644
edit
dl
rm
msgcat.h
2726
0644
edit
dl
rm
msgs.h
8422
0644
edit
dl
rm
mutex.h
3524
0644
edit
dl
rm
mutexblock.h
1375
0644
edit
dl
rm
net.h
10534
0644
edit
dl
rm
netaddr.h
4590
0644
edit
dl
rm
netdb.h
863
0644
edit
dl
rm
netscope.h
967
0644
edit
dl
rm
offset.h
700
0644
edit
dl
rm
once.h
983
0644
edit
dl
rm
ondestroy.h
2799
0644
edit
dl
rm
os.h
671
0644
edit
dl
rm
parseint.h
1542
0644
edit
dl
rm
platform.h
9717
0644
edit
dl
rm
pool.h
3502
0644
edit
dl
rm
portset.h
3295
0644
edit
dl
rm
print.h
2475
0644
edit
dl
rm
queue.h
5204
0644
edit
dl
rm
quota.h
2440
0644
edit
dl
rm
radix.h
6491
0644
edit
dl
rm
random.h
3582
0644
edit
dl
rm
ratelimiter.h
3497
0644
edit
dl
rm
refcount.h
8193
0644
edit
dl
rm
regex.h
767
0644
edit
dl
rm
region.h
2034
0644
edit
dl
rm
resource.h
2862
0644
edit
dl
rm
result.h
4982
0644
edit
dl
rm
resultclass.h
1599
0644
edit
dl
rm
rwlock.h
3807
0644
edit
dl
rm
safe.h
1352
0644
edit
dl
rm
serial.h
1368
0644
edit
dl
rm
sha1.h
1556
0644
edit
dl
rm
sha2.h
5733
0644
edit
dl
rm
siphash.h
734
0644
edit
dl
rm
sockaddr.h
6039
0644
edit
dl
rm
socket.h
36655
0644
edit
dl
rm
stat.h
806
0644
edit
dl
rm
stats.h
3709
0644
edit
dl
rm
stdatomic.h
5250
0644
edit
dl
rm
stdio.h
1787
0644
edit
dl
rm
stdlib.h
704
0644
edit
dl
rm
stdtime.h
1065
0644
edit
dl
rm
strerror.h
777
0644
edit
dl
rm
string.h
6019
0644
edit
dl
rm
symtab.h
4326
0644
edit
dl
rm
syslog.h
844
0644
edit
dl
rm
task.h
21544
0644
edit
dl
rm
taskpool.h
3709
0644
edit
dl
rm
thread.h
1506
0644
edit
dl
rm
time.h
8876
0644
edit
dl
rm
timer.h
10795
0644
edit
dl
rm
tm.h
895
0644
edit
dl
rm
types.h
5780
0644
edit
dl
rm
utf8.h
928
0644
edit
dl
rm
util.h
10537
0644
edit
dl
rm
version.h
689
0644
edit
dl
rm
xml.h
1094
0644
edit
dl
rm
Edit:
/usr/include/bind9/isc/symtab.h
(4326B)
/* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. * * See the COPYRIGHT file distributed with this work for additional * information regarding copyright ownership. */ #ifndef ISC_SYMTAB_H #define ISC_SYMTAB_H 1 /***** ***** Module Info *****/ /*! \file isc/symtab.h * \brief Provides a simple memory-based symbol table. * * Keys are C strings, and key comparisons are case-insensitive. A type may * be specified when looking up, defining, or undefining. A type value of * 0 means "match any type"; any other value will only match the given * type. * * It's possible that a client will attempt to define a <key, type, value> * tuple when a tuple with the given key and type already exists in the table. * What to do in this case is specified by the client. Possible policies are: * *\li #isc_symexists_reject Disallow the define, returning #ISC_R_EXISTS *\li #isc_symexists_replace Replace the old value with the new. The * undefine action (if provided) will be called * with the old <key, type, value> tuple. *\li #isc_symexists_add Add the new tuple, leaving the old tuple in * the table. Subsequent lookups will retrieve * the most-recently-defined tuple. * * A lookup of a key using type 0 will return the most-recently defined * symbol with that key. An undefine of a key using type 0 will undefine the * most-recently defined symbol with that key. Trying to define a key with * type 0 is illegal. * * The symbol table library does not make a copy the key field, so the * caller must ensure that any key it passes to isc_symtab_define() will not * change until it calls isc_symtab_undefine() or isc_symtab_destroy(). * * A user-specified action will be called (if provided) when a symbol is * undefined. It can be used to free memory associated with keys and/or * values. * * A symbol table is implemented as a hash table of lists; the size of the * hash table is set by the 'size' parameter to isc_symtbl_create(). When * the number of entries in the symbol table reaches three quarters of this * value, the hash table is reallocated with size doubled, in order to * optimize lookup performance. This has a negative effect on insertion * performance, which can be mitigated by sizing the table appropriately * when creating it. * * \li MP: * The callers of this module must ensure any required synchronization. * * \li Reliability: * No anticipated impact. * * \li Resources: * TBS * * \li Security: * No anticipated impact. * * \li Standards: * None. */ /*** *** Imports. ***/ #include <stdbool.h> #include <isc/lang.h> #include <isc/types.h> /* *** Symbol Tables. ***/ /*% Symbol table value. */ typedef union isc_symvalue { void * as_pointer; const void * as_cpointer; int as_integer; unsigned int as_uinteger; } isc_symvalue_t; typedef void (*isc_symtabaction_t)(char *key, unsigned int type, isc_symvalue_t value, void *userarg); /*% Symbol table exists. */ typedef enum { isc_symexists_reject = 0, /*%< Disallow the define */ isc_symexists_replace = 1, /*%< Replace the old value with the new */ isc_symexists_add = 2 /*%< Add the new tuple */ } isc_symexists_t; ISC_LANG_BEGINDECLS /*% Create a symbol table. */ isc_result_t isc_symtab_create(isc_mem_t *mctx, unsigned int size, isc_symtabaction_t undefine_action, void *undefine_arg, bool case_sensitive, isc_symtab_t **symtabp); /*% Destroy a symbol table. */ void isc_symtab_destroy(isc_symtab_t **symtabp); /*% Lookup a symbol table. */ isc_result_t isc_symtab_lookup(isc_symtab_t *symtab, const char *key, unsigned int type, isc_symvalue_t *value); /*% Define a symbol table. */ isc_result_t isc_symtab_define(isc_symtab_t *symtab, const char *key, unsigned int type, isc_symvalue_t value, isc_symexists_t exists_policy); /*% Undefine a symbol table. */ isc_result_t isc_symtab_undefine(isc_symtab_t *symtab, const char *key, unsigned int type); /*% Return the number of items in a symbol table. */ unsigned int isc_symtab_count(isc_symtab_t *symtab); ISC_LANG_ENDDECLS #endif /* ISC_SYMTAB_H */
Save
cmd:
run