-
ASORT_PREFIX(sort)
-
static void ASORT\_PREFIX(sort)(ASORT\_ARRAY\_ARG uint array\_size ASORT\_EXTRA\_ARGS);
-
ASORT_PREFIX(sort)
-
static ASORT\_KEY\_TYPE \*ASORT\_PREFIX(sort)(ASORT\_KEY\_TYPE \*array, uint num\_elts ASORT\_HASH\_ARGS);
-
Cxvalue
-
static inline uint Cxvalue(byte x);
-
GBUF_PREFIX(done)
-
static void UNUSED GBUF\_PREFIX(done)(BUF\_T \*b);
-
GBUF_PREFIX(grow)
-
static inline GBUF\_TYPE \*GBUF\_PREFIX(grow)(BUF\_T \*b, size\_t len);
-
GBUF_PREFIX(init)
-
static inline void GBUF\_PREFIX(init)(BUF\_T \*b);
-
GBUF_PREFIX(set_size)
-
static void UNUSED GBUF\_PREFIX(set\_size)(BUF\_T \*b, size\_t len);
-
HASH_PREFIX(cleanup)
-
static void HASH\_PREFIX(cleanup)(TA);
-
HASH_PREFIX(delete)
-
static int HASH\_PREFIX(delete)(TAC HASH\_KEY\_DECL);
-
HASH_PREFIX(find)
-
static HASH\_NODE\* HASH\_PREFIX(find)(TAC HASH\_KEY\_DECL);
-
HASH_PREFIX(find_next)
-
static HASH\_NODE\* HASH\_PREFIX(find\_next)(TAC P(node) \*start);
-
HASH_PREFIX(init)
-
static void HASH\_PREFIX(init)(TA);
-
HASH_PREFIX(lookup)
-
static HASH\_NODE\* HASH\_PREFIX(lookup)(TAC HASH\_KEY\_DECL, int \*new\_item);
-
HASH_PREFIX(new)
-
static HASH\_NODE \* HASH\_PREFIX(new)(TAC HASH\_KEY\_DECL);
-
HASH_PREFIX(remove)
-
static void HASH\_PREFIX(remove)(TAC HASH\_NODE \*n);
-
adler32
-
static inline uint adler32(const byte \*buf, uint len);
-
adler32_update
-
uint adler32\_update(uint adler, const byte \*ptr, uint len);
-
base224_decode
-
uint base224\_decode(byte \*dest, const byte \*src, uint len);
-
base224_encode
-
uint base224\_encode(byte \*dest, const byte \*src, uint len);
-
base64_decode
-
uint base64\_decode(byte \*dest, const byte \*src, uint len);
-
base64_encode
-
uint base64\_encode(byte \*dest, const byte \*src, uint len);
-
bavailr
-
static inline uint bavailr(struct fastbuf \*f);
-
bavailw
-
static inline uint bavailw(struct fastbuf \*f);
-
bb_printf
-
char \*bb\_printf(bb\_t \*bb, const char \*fmt, \...);
-
bb_printf_at
-
char \*bb\_printf\_at(bb\_t \*bb, size\_t ofs, const char \*fmt, \...);
-
bb_vprintf
-
char \*bb\_vprintf(bb\_t \*bb, const char \*fmt, va\_list args);
-
bb_vprintf_at
-
char \*bb\_vprintf\_at(bb\_t \*bb, size\_t ofs, const char \*fmt, va\_list args);
-
bbcopy
-
static inline void bbcopy(struct fastbuf \*f, struct fastbuf \*t, uint l);
-
bclose
-
void bclose(struct fastbuf \*f);
-
bconfig
-
int bconfig(struct fastbuf \*f, uint type, int data);
-
bdirect_read_commit
-
static inline void bdirect\_read\_commit(struct fastbuf \*f, byte \*pos);
-
bdirect_read_commit_modified
-
static inline void bdirect\_read\_commit\_modified(struct fastbuf \*f, byte \*pos);
-
bdirect_read_prepare
-
static inline uint bdirect\_read\_prepare(struct fastbuf \*f, byte \*\*buf);
-
bdirect_write_commit
-
static inline void bdirect\_write\_commit(struct fastbuf \*f, byte \*pos);
-
bdirect_write_prepare
-
static inline uint bdirect\_write\_prepare(struct fastbuf \*f, byte \*\*buf);
-
beof
-
static inline int beof(struct fastbuf \*f);
-
bfdopen
-
struct fastbuf \*bfdopen(int fd, uint buflen);
-
bfdopen_shared
-
struct fastbuf \*bfdopen\_shared(int fd, uint buflen);
-
bfilesize
-
ucw\_off\_t bfilesize(struct fastbuf \*f);
-
bfilesync
-
void bfilesync(struct fastbuf \*b);
-
bfix_tmp_file
-
void bfix\_tmp\_file(struct fastbuf \*fb, const char \*name);
-
bflush
-
void bflush(struct fastbuf \*f);
-
bget_utf16_be
-
static inline int bget\_utf16\_be(struct fastbuf \*b);
-
bget_utf16_le
-
static inline int bget\_utf16\_le(struct fastbuf \*b);
-
bget_utf8
-
static inline int bget\_utf8(struct fastbuf \*b);
-
bget_utf8_32
-
static inline int bget\_utf8\_32(struct fastbuf \*b);
-
bgetc
-
static inline int bgetc(struct fastbuf \*f);
-
bgets
-
char \*bgets(struct fastbuf \*f, char \*b, uint l);
-
bgets0
-
char \*bgets0(struct fastbuf \*f, char \*b, uint l);
-
bgets_bb
-
uint bgets\_bb(struct fastbuf \*f, struct bb\_t \*b, uint limit);
-
bgets_mp
-
char \*bgets\_mp(struct fastbuf \*f, struct mempool \*mp);
-
bgets_nodie
-
int bgets\_nodie(struct fastbuf \*f, char \*b, uint l);
-
big_alloc
-
void \*big\_alloc(u64 len) LIKE\_MALLOC;
-
big_alloc_zero
-
void \*big\_alloc\_zero(u64 len) LIKE\_MALLOC;
-
big_free
-
void big\_free(void \*start, u64 len);
-
block_io_add
-
void block\_io\_add(struct main\_block\_io \*bio, int fd);
-
block_io_del
-
void block\_io\_del(struct main\_block\_io \*bio);
-
block_io_is_active
-
static inline int block\_io\_is\_active(struct main\_block\_io \*bio);
-
block_io_read
-
void block\_io\_read(struct main\_block\_io \*bio, void \*buf, uint len);
-
block_io_set_timeout
-
void block\_io\_set\_timeout(struct main\_block\_io \*bio, timestamp\_t expires\_delta);
-
block_io_write
-
void block\_io\_write(struct main\_block\_io \*bio, const void \*buf, uint len);
-
bopen
-
struct fastbuf \*bopen(const char \*name, uint mode, uint buflen);
-
bopen_fd
-
static inline struct fastbuf \*bopen\_fd(int fd, struct fb\_params \*params);
-
bopen_fd_name
-
struct fastbuf \*bopen\_fd\_name(int fd, struct fb\_params \*params, const char \*name);
-
bopen_file
-
struct fastbuf \*bopen\_file(const char \*name, int mode, struct fb\_params \*params);
-
bopen_file_try
-
struct fastbuf \*bopen\_file\_try(const char \*name, int mode, struct fb\_params \*params);
-
bopen_limited_fd
-
struct fastbuf \*bopen\_limited\_fd(int fd, uint bufsize, uint limit);
-
bopen_tmp
-
struct fastbuf \*bopen\_tmp(uint buflen);
-
bopen_tmp_file
-
struct fastbuf \*bopen\_tmp\_file(struct fb\_params \*params);
-
bopen_try
-
struct fastbuf \*bopen\_try(const char \*name, uint mode, uint buflen);
-
bpeekc
-
static inline int bpeekc(struct fastbuf \*f);
-
bprintf
-
int bprintf(struct fastbuf \*b, const char \*msg, \...);
-
bput_utf16_be
-
static inline void bput\_utf16\_be(struct fastbuf \*b, uint u);
-
bput_utf16_le
-
static inline void bput\_utf16\_le(struct fastbuf \*b, uint u);
-
bput_utf8
-
static inline void bput\_utf8(struct fastbuf \*b, uint u);
-
bput_utf8_32
-
static inline void bput\_utf8\_32(struct fastbuf \*b, uint u);
-
bputc
-
static inline void bputc(struct fastbuf \*f, uint c);
-
bputs
-
static inline void bputs(struct fastbuf \*f, const char \*b);
-
bputs0
-
static inline void bputs0(struct fastbuf \*f, const char \*b);
-
bputsn
-
static inline void bputsn(struct fastbuf \*f, const char \*b);
-
bread
-
static inline uint bread(struct fastbuf \*f, void \*b, uint l);
-
breadb
-
static inline uint breadb(struct fastbuf \*f, void \*b, uint l);
-
brewind
-
void brewind(struct fastbuf \*f);
-
bseek
-
void bseek(struct fastbuf \*f, ucw\_off\_t pos, int whence);
-
bsetpos
-
void bsetpos(struct fastbuf \*f, ucw\_off\_t pos);
-
bskip
-
static inline int bskip(struct fastbuf \*f, uint len);
-
btell
-
static inline ucw\_off\_t btell(struct fastbuf \*f);
-
bthrow
-
void bthrow(struct fastbuf \*f, const char \*id, const char \*fmt, \...) FORMAT\_CHECK(printf,3,4) NONRET;
-
bungetc
-
static inline void bungetc(struct fastbuf \*f);
-
bwrite
-
static inline void bwrite(struct fastbuf \*f, const void \*b, uint l);
-
cf_close_group
-
int cf\_close\_group(void);
-
cf_declare_rel_section
-
void cf\_declare\_rel\_section(const char \*name, struct cf\_section \*sec, void \*ptr, uint allow\_unknown);
-
cf_declare_section
-
void cf\_declare\_section(const char \*name, struct cf\_section \*sec, uint allow\_unknown);
-
cf_delete_context
-
void cf\_delete\_context(struct cf\_context \*cc);
-
cf_dump_sections
-
void cf\_dump\_sections(struct fastbuf \*fb);
-
cf_find_item
-
char \*cf\_find\_item(const char \*name, struct cf\_item \*item);
-
cf_get_pool
-
struct mempool \*cf\_get\_pool(void);
-
cf_getopt
-
int cf\_getopt(int argc, char \* const argv[], const char \*short\_opts, const struct option \*long\_opts, int \*long\_index);
-
cf_init_section
-
void cf\_init\_section(const char \*name, struct cf\_section \*sec, void \*ptr, uint do\_bzero);
-
cf_journal_block
-
void cf\_journal\_block(void \*ptr, uint len);
-
cf_journal_commit_transaction
-
void cf\_journal\_commit\_transaction(uint new\_pool, struct cf\_journal\_item \*oldj);
-
cf_journal_new_transaction
-
struct cf\_journal\_item \*cf\_journal\_new\_transaction(uint new\_pool);
-
cf_journal_rollback_transaction
-
void cf\_journal\_rollback\_transaction(uint new\_pool, struct cf\_journal\_item \*oldj);
-
cf_load
-
int cf\_load(const char \*file);
-
cf_malloc
-
void \*cf\_malloc(uint size);
-
cf_malloc_zero
-
void \*cf\_malloc\_zero(uint size);
-
cf_modify_item
-
char \*cf\_modify\_item(struct cf\_item \*item, enum cf\_operation op, int number, char \*\*pars);
-
cf_new_context
-
struct cf\_context \*cf\_new\_context(void);
-
cf_open_group
-
void cf\_open\_group(void);
-
cf_parse_double
-
char \*cf\_parse\_double(const char \*str, double \*ptr);
-
cf_parse_int
-
char \*cf\_parse\_int(const char \*str, int \*ptr);
-
cf_parse_ip
-
char \*cf\_parse\_ip(const char \*p, u32 \*varp);
-
cf_parse_u64
-
char \*cf\_parse\_u64(const char \*str, u64 \*ptr);
-
cf_printf
-
char \*cf\_printf(const char \*fmt, \...) FORMAT\_CHECK(printf,1,2);
-
cf_reload
-
int cf\_reload(const char \*file);
-
cf_revert
-
void cf\_revert(void);
-
cf_set
-
int cf\_set(const char \*string);
-
cf_set_journalling
-
void cf\_set\_journalling(int enable);
-
cf_strdup
-
char \*cf\_strdup(const char \*s);
-
cf_switch_context
-
struct cf\_context \*cf\_switch\_context(struct cf\_context \*cc);
-
clist_add_head
-
static inline void clist\_add\_head(clist \*l, cnode \*n);
-
clist_add_list_head
-
static inline void clist\_add\_list\_head(clist \*l, clist \*what);
-
clist_add_list_tail
-
static inline void clist\_add\_list\_tail(clist \*l, clist \*what);
-
clist_add_tail
-
static inline void clist\_add\_tail(clist \*l, cnode \*n);
-
clist_empty
-
static inline int clist\_empty(clist \*l);
-
clist_head
-
static inline void \*clist\_head(clist \*l);
-
clist_init
-
static inline void clist\_init(clist \*l);
-
clist_insert_after
-
static inline void clist\_insert\_after(cnode \*what, cnode \*after);
-
clist_insert_before
-
static inline void clist\_insert\_before(cnode \*what, cnode \*before);
-
clist_insert_list_after
-
static inline void clist\_insert\_list\_after(clist \*what, cnode \*after);
-
clist_is_linked
-
static inline int clist\_is\_linked(cnode \*n);
-
clist_move
-
static inline void clist\_move(clist \*to, clist \*from);
-
clist_next
-
static inline void \*clist\_next(clist \*l, cnode \*n);
-
clist_prev
-
static inline void \*clist\_prev(clist \*l, cnode \*n);
-
clist_remove
-
static inline void clist\_remove(cnode \*n);
-
clist_remove_head
-
static inline void \*clist\_remove\_head(clist \*l);
-
clist_remove_tail
-
static inline void \*clist\_remove\_tail(clist \*l);
-
clist_size
-
static inline uint clist\_size(clist \*l);
-
clist_tail
-
static inline void \*clist\_tail(clist \*l);
-
clist_unlink
-
static inline void clist\_unlink(cnode \*n);
-
clist_unlink_head
-
static inline void \*clist\_unlink\_head(clist \*l);
-
clist_unlink_tail
-
static inline void \*clist\_unlink\_tail(clist \*l);
-
crc32_final
-
static inline u32 crc32\_final(crc32\_context \*ctx);
-
crc32_hash_buffer
-
u32 crc32\_hash\_buffer(const byte \*buf, uint len);
-
crc32_init
-
void crc32\_init(crc32\_context \*ctx, uint crc\_mode);
-
crc32_update
-
static inline void crc32\_update(crc32\_context \*ctx, const byte \*buf, uint len);
-
daemon_control
-
enum daemon\_control\_status daemon\_control(struct daemon\_control\_params \*dc);
-
daemon_exit
-
void daemon\_exit(struct daemon\_params \*dp);
-
daemon_init
-
void daemon\_init(struct daemon\_params \*dp);
-
daemon_resolve_ugid
-
void daemon\_resolve\_ugid(struct daemon\_params \*dp);
-
daemon_switch_ugid
-
void daemon\_switch\_ugid(struct daemon\_params \*dp);
-
die
-
void die(const char \*, \...) NONRET FORMAT\_CHECK(printf,1,2);
-
ep_alloc
-
static inline void \*ep\_alloc(struct eltpool \*pool);
-
ep_delete
-
void ep\_delete(struct eltpool \*pool);
-
ep_free
-
static inline void ep\_free(struct eltpool \*pool, void \*p);
-
ep_new
-
struct eltpool \*ep\_new(uint elt\_size, uint elts\_per\_chunk);
-
ep_total_size
-
u64 ep\_total\_size(struct eltpool \*pool);
-
fb_tie
-
struct fastbuf \*fb\_tie(struct fastbuf \*b);
-
fb_wrap_hex_in
-
struct fastbuf \*fb\_wrap\_hex\_in(struct fastbuf \*f);
-
fb_wrap_hex_out
-
struct fastbuf \*fb\_wrap\_hex\_out(struct fastbuf \*f);
-
fbatomic_commit
-
static inline void fbatomic\_commit(struct fastbuf \*b);
-
fbatomic_open
-
struct fastbuf \*fbatomic\_open(const char \*name, struct fastbuf \*master, uint bufsize, int record\_len);
-
fbbuf_count_written
-
static inline uint fbbuf\_count\_written(struct fastbuf \*f);
-
fbbuf_init_read
-
void fbbuf\_init\_read(struct fastbuf \*f, byte \*buffer, uint size, uint can\_overwrite);
-
fbbuf_init_write
-
void fbbuf\_init\_write(struct fastbuf \*f, byte \*buffer, uint size);
-
fbgrow_create
-
struct fastbuf \*fbgrow\_create(uint basic\_size);
-
fbgrow_create_mp
-
struct fastbuf \*fbgrow\_create\_mp(struct mempool \*mp, uint basic\_size);
-
fbgrow_get_buf
-
uint fbgrow\_get\_buf(struct fastbuf \*b, byte \*\*buf);
-
fbgrow_reset
-
void fbgrow\_reset(struct fastbuf \*b);
-
fbgrow_rewind
-
void fbgrow\_rewind(struct fastbuf \*b);
-
fbmem_clone_read
-
struct fastbuf \*fbmem\_clone\_read(struct fastbuf \*f);
-
fbmem_create
-
struct fastbuf \*fbmem\_create(uint blocksize);
-
fbmulti_append
-
void fbmulti\_append(struct fastbuf \*f, struct fastbuf \*fb);
-
fbmulti_create
-
struct fastbuf \*fbmulti\_create(void);
-
fbmulti_remove
-
void fbmulti\_remove(struct fastbuf \*f, struct fastbuf \*fb);
-
fbnull_open
-
struct fastbuf \*fbnull\_open(uint bufsize);
-
fbnull_start
-
void fbnull\_start(struct fastbuf \*b, byte \*buf, uint bufsize);
-
fbnull_test
-
bool fbnull\_test(struct fastbuf \*b);
-
fbpool_end
-
void \*fbpool\_end(struct fbpool \*fb);
-
fbpool_init
-
void fbpool\_init(struct fbpool \*fb);
-
fbpool_start
-
void fbpool\_start(struct fbpool \*fb, struct mempool \*mp, size\_t init\_size);
-
fbsock_create
-
struct fastbuf \*fbsock\_create(struct fbsock\_params \*par);
-
file_add
-
void file\_add(struct main\_file \*fi);
-
file_chg
-
void file\_chg(struct main\_file \*fi);
-
file_debug
-
void file\_debug(struct main\_file \*fi);
-
file_del
-
void file\_del(struct main\_file \*fi);
-
file_is_active
-
static inline int file\_is\_active(struct main\_file \*fi);
-
get_timer
-
uint get\_timer(timestamp\_t \*timer);
-
get_timestamp
-
timestamp\_t get\_timestamp(void);
-
get_u16
-
static inline uint get\_u16(const void \*p);
-
get_u16_be
-
static inline uint get\_u16\_be(const void \*p);
-
get_u16_le
-
static inline uint get\_u16\_le(const void \*p);
-
get_u32
-
static inline u32 get\_u32(const void \*p);
-
get_u32_be
-
static inline u32 get\_u32\_be(const void \*p);
-
get_u32_le
-
static inline u32 get\_u32\_le(const void \*p);
-
get_u40
-
static inline u64 get\_u40(const void \*p);
-
get_u40_be
-
static inline u64 get\_u40\_be(const void \*p);
-
get_u40_le
-
static inline u64 get\_u40\_le(const void \*p);
-
get_u64
-
static inline u64 get\_u64(const void \*p);
-
get_u64_be
-
static inline u64 get\_u64\_be(const void \*p);
-
get_u64_le
-
static inline u64 get\_u64\_le(const void \*p);
-
get_u8
-
static inline uint get\_u8(const void \*p);
-
hash_block
-
uint hash\_block(const byte \*buf, uint len) PURE;
-
hash_block_aligned
-
uint hash\_block\_aligned(const byte \*buf, uint len) PURE;
-
hash_pointer
-
static inline uint CONST hash\_pointer(void \*x);
-
hash_string
-
uint hash\_string(const char \*str) PURE;
-
hash_string_aligned
-
uint hash\_string\_aligned(const char \*str) PURE;
-
hash_string_nocase
-
uint hash\_string\_nocase(const char \*str) PURE;
-
hash_u32
-
static inline uint CONST hash\_u32(uint x);
-
hash_u64
-
static inline uint CONST hash\_u64(u64 x);
-
hex_to_mem
-
const char \*hex\_to\_mem(byte \*dest, const char \*src, size\_t max\_bytes, uint flags);
-
hook_add
-
void hook\_add(struct main\_hook \*ho);
-
hook_debug
-
void hook\_debug(struct main\_hook \*ho);
-
hook_del
-
void hook\_del(struct main\_hook \*ho);
-
hook_is_active
-
static inline int hook\_is\_active(struct main\_hook \*ho);
-
init_timer
-
void init\_timer(timestamp\_t \*timer);
-
isprime
-
int isprime(uint x);
-
lizard_alloc
-
struct lizard\_buffer \*lizard\_alloc(void);
-
lizard_compress
-
int lizard\_compress(const byte \*in, uint in\_len, byte \*out);
-
lizard_decompress
-
int lizard\_decompress(const byte \*in, byte \*out);
-
lizard_decompress_safe
-
byte \*lizard\_decompress\_safe(const byte \*in, struct lizard\_buffer \*buf, uint expected\_length);
-
lizard_free
-
void lizard\_free(struct lizard\_buffer \*buf);
-
log_add_substream
-
void log\_add\_substream(struct log\_stream \*where, struct log\_stream \*what);
-
log_check_configured
-
char \*log\_check\_configured(const char \*name);
-
log_close_all
-
void log\_close\_all(void);
-
log_close_stream
-
int log\_close\_stream(struct log\_stream \*ls);
-
log_configured
-
void log\_configured(const char \*name);
-
log_default_stream
-
static inline struct log\_stream \*log\_default\_stream(void);
-
log_drop_stderr
-
void log\_drop\_stderr(void);
-
log_file
-
void log\_file(const char \*name);
-
log_find_type
-
int log\_find\_type(const char \*name);
-
log_fork
-
void log\_fork(void);
-
log_init
-
void log\_init(const char \*argv0);
-
log_new_configured
-
struct log\_stream \*log\_new\_configured(const char \*name);
-
log_new_fd
-
struct log\_stream \*log\_new\_fd(int fd, uint flags);
-
log_new_file
-
struct log\_stream \*log\_new\_file(const char \*path, uint flags);
-
log_new_stream
-
struct log\_stream \*log\_new\_stream(size\_t size);
-
log_new_syslog
-
struct log\_stream \*log\_new\_syslog(const char \*facility, int options);
-
log_pass_filtered
-
void log\_pass\_filtered(struct log\_stream \*ls, struct log\_msg \*m);
-
log_ref_stream
-
static inline struct log\_stream \*log\_ref\_stream(struct log\_stream \*ls);
-
log_register_type
-
int log\_register\_type(const char \*name);
-
log_rm_substream
-
int log\_rm\_substream(struct log\_stream \*where, struct log\_stream \*what);
-
log_set_default_stream
-
void log\_set\_default\_stream(struct log\_stream \*ls);
-
log_set_format
-
void log\_set\_format(struct log\_stream \*ls, uint mask, uint data);
-
log_stream_by_flags
-
struct log\_stream \*log\_stream\_by\_flags(uint flags);
-
log_switch
-
int log\_switch(void);
-
log_switch_disable
-
void log\_switch\_disable(void);
-
log_switch_enable
-
void log\_switch\_enable(void);
-
log_syslog_facility_exists
-
int log\_syslog\_facility\_exists(const char \*facility);
-
log_type_name
-
char \*log\_type\_name(uint flags);
-
main_cleanup
-
void main\_cleanup(void);
-
main_current
-
struct main\_context \*main\_current(void);
-
main_debug_context
-
void main\_debug\_context(struct main\_context \*m);
-
main_delete
-
void main\_delete(struct main\_context \*m);
-
main_destroy
-
void main\_destroy(struct main\_context \*m);
-
main_get_now
-
static inline timestamp\_t main\_get\_now(void);
-
main_get_time
-
void main\_get\_time(void);
-
main_init
-
void main\_init(void);
-
main_loop
-
void main\_loop(void);
-
main_new
-
struct main\_context \*main\_new(void);
-
main_shut_down
-
static inline void main\_shut\_down(void);
-
main_step
-
void main\_step(void);
-
main_switch_context
-
struct main\_context \*main\_switch\_context(struct main\_context \*m);
-
main_teardown
-
void main\_teardown(void);
-
md5_final
-
byte \*md5\_final(md5\_context \*context);
-
md5_hash_buffer
-
void md5\_hash\_buffer(byte \*outbuf, const byte \*buffer, uint length);
-
md5_init
-
void md5\_init(md5\_context \*context);
-
md5_transform
-
void md5\_transform(u32 buf[4], const u32 in[16]);
-
md5_update
-
void md5\_update(md5\_context \*context, const byte \*buf, uint len);
-
mem_to_hex
-
void mem\_to\_hex(char \*dest, const byte \*src, size\_t bytes, uint flags);
-
mp_alloc
-
void \*mp\_alloc(struct mempool \*pool, size\_t size);
-
mp_alloc_fast
-
static inline void \*mp\_alloc\_fast(struct mempool \*pool, size\_t size);
-
mp_alloc_fast_noalign
-
static inline void \*mp\_alloc\_fast\_noalign(struct mempool \*pool, size\_t size);
-
mp_alloc_noalign
-
void \*mp\_alloc\_noalign(struct mempool \*pool, size\_t size);
-
mp_alloc_zero
-
void \*mp\_alloc\_zero(struct mempool \*pool, size\_t size);
-
mp_append_block
-
static inline void \*mp\_append\_block(struct mempool \*pool, void \*p, const void \*block, size\_t size);
-
mp_append_char
-
static inline char \*mp\_append\_char(struct mempool \*pool, char \*p, uint c);
-
mp_append_string
-
static inline void \*mp\_append\_string(struct mempool \*pool, void \*p, const char \*str);
-
mp_append_utf8_32
-
void \*mp\_append\_utf8\_32(struct mempool \*pool, void \*p, uint c);
-
mp_avail
-
static inline size\_t mp\_avail(struct mempool \*pool);
-
mp_delete
-
void mp\_delete(struct mempool \*pool);
-
mp_end
-
static inline void \*mp\_end(struct mempool \*pool, void \*end);
-
mp_end_string
-
static inline char \*mp\_end\_string(struct mempool \*pool, void \*end);
-
mp_expand
-
static inline void \*mp\_expand(struct mempool \*pool);
-
mp_flush
-
void mp\_flush(struct mempool \*pool);
-
mp_get_allocator
-
static inline struct ucw\_allocator \*mp\_get\_allocator(struct mempool \*mp);
-
mp_grow
-
static inline void \*mp\_grow(struct mempool \*pool, size\_t size);
-
mp_init
-
void mp\_init(struct mempool \*pool, size\_t chunk\_size);
-
mp_memdup
-
void \*mp\_memdup(struct mempool \*, const void \*, size\_t) LIKE\_MALLOC;
-
mp_multicat
-
char \*mp\_multicat(struct mempool \*, \...) LIKE\_MALLOC SENTINEL\_CHECK;
-
mp_new
-
struct mempool \*mp\_new(size\_t chunk\_size);
-
mp_open
-
size\_t mp\_open(struct mempool \*pool, void \*ptr);
-
mp_open_fast
-
static inline size\_t mp\_open\_fast(struct mempool \*pool, void \*ptr);
-
mp_pop
-
void mp\_pop(struct mempool \*pool);
-
mp_printf
-
char \*mp\_printf(struct mempool \*mp, const char \*fmt, \...) FORMAT\_CHECK(printf,2,3) LIKE\_MALLOC;
-
mp_printf_append
-
char \*mp\_printf\_append(struct mempool \*mp, char \*ptr, const char \*fmt, \...) FORMAT\_CHECK(printf,3,4);
-
mp_ptr
-
static inline void \*mp\_ptr(struct mempool \*pool);
-
mp_push
-
struct mempool\_state \*mp\_push(struct mempool \*pool);
-
mp_realloc
-
void \*mp\_realloc(struct mempool \*pool, void \*ptr, size\_t size);
-
mp_realloc_fast
-
static inline void \*mp\_realloc\_fast(struct mempool \*pool, void \*ptr, size\_t size);
-
mp_realloc_zero
-
void \*mp\_realloc\_zero(struct mempool \*pool, void \*ptr, size\_t size);
-
mp_restore
-
void mp\_restore(struct mempool \*pool, struct mempool\_state \*state);
-
mp_restore_fast
-
static inline void mp\_restore\_fast(struct mempool \*pool, struct mempool\_state \*state);
-
mp_save
-
static inline void mp\_save(struct mempool \*pool, struct mempool\_state \*state);
-
mp_shrink
-
void mp\_shrink(struct mempool \*pool, u64 min\_total\_size);
-
mp_size
-
static inline size\_t mp\_size(struct mempool \*pool, void \*ptr);
-
mp_spread
-
static inline void \*mp\_spread(struct mempool \*pool, void \*p, size\_t size);
-
mp_start
-
void \*mp\_start(struct mempool \*pool, size\_t size);
-
mp_start_fast
-
static inline void \*mp\_start\_fast(struct mempool \*pool, size\_t size);
-
mp_start_fast_noalign
-
static inline void \*mp\_start\_fast\_noalign(struct mempool \*pool, size\_t size);
-
mp_stats
-
void mp\_stats(struct mempool \*pool, struct mempool\_stats \*stats);
-
mp_str_from_mem
-
char \*mp\_str\_from\_mem(struct mempool \*p, const void \*mem, size\_t len) LIKE\_MALLOC;
-
mp_strcat
-
static inline char \*LIKE\_MALLOC mp\_strcat(struct mempool \*mp, const char \*x, const char \*y);
-
mp_strdup
-
char \*mp\_strdup(struct mempool \*, const char \*) LIKE\_MALLOC;
-
mp_strjoin
-
char \*mp\_strjoin(struct mempool \*p, char \*\*a, uint n, uint sep) LIKE\_MALLOC;
-
mp_total_size
-
u64 mp\_total\_size(struct mempool \*pool);
-
mp_vprintf
-
char \*mp\_vprintf(struct mempool \*mp, const char \*fmt, va\_list args) LIKE\_MALLOC;
-
mp_vprintf_append
-
char \*mp\_vprintf\_append(struct mempool \*mp, char \*ptr, const char \*fmt, va\_list args);
-
msg
-
void msg(uint flags, const char \*fmt, \...) FORMAT\_CHECK(printf,2,3);
-
next_table_prime
-
uint next\_table\_prime(uint x);
-
nextprime
-
uint nextprime(uint x);
-
open_tmp
-
int open\_tmp(char \*name\_buf, int open\_flags, int mode);
-
opt_failure
-
void opt\_failure(const char \* mesg, \...) FORMAT\_CHECK(printf,1,2) NONRET;
-
opt_parse
-
int opt\_parse(const struct opt\_section \* options, char \*\* argv);
-
prev_table_prime
-
uint prev\_table\_prime(uint x);
-
process_add
-
void process\_add(struct main\_process \*mp);
-
process_debug
-
void process\_debug(struct main\_process \*pr);
-
process_del
-
void process\_del(struct main\_process \*mp);
-
process_fork
-
int process\_fork(struct main\_process \*mp);
-
process_is_active
-
static inline int process\_is\_active(struct main\_process \*mp);
-
put_u16
-
static inline void put\_u16(void \*p, uint x);
-
put_u16_be
-
static inline void put\_u16\_be(void \*p, uint x);
-
put_u16_le
-
static inline void put\_u16\_le(void \*p, uint x);
-
put_u32
-
static inline void put\_u32(void \*p, u32 x);
-
put_u32_be
-
static inline void put\_u32\_be(void \*p, u32 x);
-
put_u32_le
-
static inline void put\_u32\_le(void \*p, u32 x);
-
put_u40
-
static inline void put\_u40(void \*p, u64 x);
-
put_u64
-
static inline void put\_u64(void \*p, u64 x);
-
put_u64_be
-
static inline void put\_u64\_be(void \*p, u64 x);
-
put_u64_le
-
static inline void put\_u64\_le(void \*p, u64 x);
-
put_u8
-
static inline void put\_u8(void \*p, uint x);
-
random_gen_seed
-
uint random\_gen\_seed(void);
-
random_max
-
uint random\_max(uint max);
-
random_max_u64
-
u64 random\_max\_u64(u64 max);
-
random_set_seed
-
void random\_set\_seed(uint seed);
-
random_u32
-
uint random\_u32(void);
-
random_u64
-
u64 random\_u64(void);
-
rec_io_add
-
void rec\_io\_add(struct main\_rec\_io \*rio, int fd);
-
rec_io_del
-
void rec\_io\_del(struct main\_rec\_io \*rio);
-
rec_io_is_active
-
static inline int rec\_io\_is\_active(struct main\_rec\_io \*rio);
-
rec_io_parse_line
-
uint rec\_io\_parse\_line(struct main\_rec\_io \*rio);
-
rec_io_set_timeout
-
void rec\_io\_set\_timeout(struct main\_rec\_io \*rio, timestamp\_t expires\_delta);
-
rec_io_start_read
-
void rec\_io\_start\_read(struct main\_rec\_io \*rio);
-
rec_io_stop_read
-
void rec\_io\_stop\_read(struct main\_rec\_io \*rio);
-
res_add
-
void res\_add(struct resource \*r);
-
res_detach
-
void res\_detach(struct resource \*r);
-
res_drop
-
void res\_drop(struct resource \*r);
-
res_dump
-
void res\_dump(struct resource \*r, uint indent);
-
res_eltpool
-
struct resource \*res\_eltpool(struct eltpool \*ep);
-
res_for_fd
-
struct resource \*res\_for\_fd(int fd);
-
res_free
-
void res\_free(struct resource \*r);
-
res_init
-
static inline struct resource \*res\_init(struct resource \*r, const struct res\_class \*rc, void \*priv);
-
res_malloc
-
void \*res\_malloc(size\_t size, struct resource \*\*ptr) LIKE\_MALLOC;
-
res_malloc_zero
-
void \*res\_malloc\_zero(size\_t size, struct resource \*\*ptr) LIKE\_MALLOC;
-
res_mempool
-
struct resource \*res\_mempool(struct mempool \*mp);
-
res_new
-
static inline struct resource \*res\_new(const struct res\_class \*rc, void \*priv);
-
res_permanent
-
static inline void res\_permanent(struct resource \*r);
-
res_realloc
-
void \*res\_realloc(struct resource \*res, size\_t size);
-
res_subpool
-
struct resource \*res\_subpool(struct respool \*rp);
-
res_temporary
-
static inline void res\_temporary(struct resource \*r);
-
reset_getopt
-
void reset\_getopt(void);
-
rp_commit
-
void rp\_commit(struct respool \*rp);
-
rp_current
-
static inline struct respool \*rp\_current(void);
-
rp_delete
-
void rp\_delete(struct respool \*rp);
-
rp_detach
-
void rp\_detach(struct respool \*rp);
-
rp_dump
-
void rp\_dump(struct respool \*rp, uint indent);
-
rp_new
-
struct respool \*rp\_new(const char \*name, struct mempool \*mp);
-
rp_switch
-
static inline struct respool \*rp\_switch(struct respool \*rp);
-
sha1_final
-
byte \*sha1\_final(sha1\_context \*hd);
-
sha1_hash_buffer
-
void sha1\_hash\_buffer(byte \*outbuf, const byte \*buffer, uint length);
-
sha1_hmac
-
void sha1\_hmac(byte \*outbuf, const byte \*key, uint keylen, const byte \*data, uint datalen);
-
sha1_init
-
void sha1\_init(sha1\_context \*hd);
-
sha1_update
-
void sha1\_update(sha1\_context \*hd, const byte \*inbuf, uint inlen);
-
sig_name_to_number
-
int sig\_name\_to\_number(const char \*name);
-
sig_number_to_name
-
const char \*sig\_number\_to\_name(int number);
-
signal_add
-
void signal\_add(struct main\_signal \*ms);
-
signal_debug
-
void signal\_debug(struct main\_signal \*sg);
-
signal_del
-
void signal\_del(struct main\_signal \*ms);
-
signal_is_active
-
static inline int signal\_is\_active(struct main\_signal \*ms);
-
simp2_append
-
simp2\_node \*simp2\_append(struct mempool \*mp, clist \*l);
-
simp_append
-
simp\_node \*simp\_append(struct mempool \*mp, clist \*l);
-
slist_add_head
-
static inline void slist\_add\_head(slist \*l, snode \*n);
-
slist_add_list_head
-
static inline void slist\_add\_list\_head(slist \*l, slist \*what);
-
slist_add_list_tail
-
static inline void slist\_add\_list\_tail(slist \*l, slist \*what);
-
slist_add_tail
-
static inline void slist\_add\_tail(slist \*l, snode \*n);
-
slist_empty
-
static inline int slist\_empty(slist \*l);
-
slist_head
-
static inline void \*slist\_head(slist \*l);
-
slist_init
-
static inline void slist\_init(slist \*l);
-
slist_insert_after
-
static inline void slist\_insert\_after(slist \*l, snode \*what, snode \*after);
-
slist_insert_before
-
void slist\_insert\_before(slist \*l, snode \*what, snode \*before);
-
slist_move
-
static inline void slist\_move(slist \*to, slist \*from);
-
slist_next
-
static inline void \*slist\_next(snode \*n);
-
slist_prev
-
void \*slist\_prev(slist \*l, snode \*n);
-
slist_remove
-
void slist\_remove(slist \*l, snode \*n);
-
slist_remove_after
-
static inline void slist\_remove\_after(slist \*l, snode \*after);
-
slist_remove_head
-
static inline void \*slist\_remove\_head(slist \*l);
-
slist_remove_tail
-
static inline void slist\_remove\_tail(slist \*l);
-
slist_size
-
static inline uint slist\_size(slist \*l);
-
slist_tail
-
static inline void \*slist\_tail(slist \*l);
-
str_count_char
-
size\_t str\_count\_char(const char \*str, uint chr);
-
str_format_flags
-
char \*str\_format\_flags(char \*dest, const char \*fmt, uint flags);
-
str_has_prefix
-
int str\_has\_prefix(const char \*str, const char \*prefix);
-
str_has_suffix
-
int str\_has\_suffix(const char \*str, const char \*suffix);
-
str_hier_prefix
-
int str\_hier\_prefix(const char \*str, const char \*prefix, uint sep);
-
str_hier_suffix
-
int str\_hier\_suffix(const char \*str, const char \*suffix, uint sep);
-
str_len
-
uint str\_len(const char \*str) PURE;
-
str_len_aligned
-
uint str\_len\_aligned(const char \*str) PURE;
-
str_match_pattern
-
int str\_match\_pattern(const char \*patt, const char \*str);
-
str_match_pattern_nocase
-
int str\_match\_pattern\_nocase(const char \*patt, const char \*str);
-
str_sepsplit
-
int str\_sepsplit(char \*str, uint sep, char \*\*rec, uint max);
-
str_unesc
-
char \*str\_unesc(char \*dest, const char \*src);
-
str_wordsplit
-
int str\_wordsplit(char \*str, char \*\*rec, uint max);
-
switch_timer
-
uint switch\_timer(timestamp\_t \*oldt, timestamp\_t \*newt);
-
table_cleanup
-
void table\_cleanup(struct table \*tbl);
-
table_col_fbend
-
void table\_col\_fbend(struct table \*tbl);
-
table_col_fbstart
-
struct fastbuf \*table\_col\_fbstart(struct table \*tbl, int col);
-
table_col_generic_format
-
void table\_col\_generic\_format(struct table \*tbl, int col, void \*value, const struct xtype \*expected\_type);
-
table_col_is_printed
-
bool table\_col\_is\_printed(struct table \*tbl, uint col\_def\_idx);
-
table_col_printf
-
void table\_col\_printf(struct table \*tbl, int col, const char \*fmt, \...) FORMAT\_CHECK(printf, 3, 4);
-
table_end
-
void table\_end(struct table \*tbl);
-
table_end_row
-
void table\_end\_row(struct table \*tbl);
-
table_get_col_idx
-
int table\_get\_col\_idx(struct table \*tbl, const char \*col\_name);
-
table_get_col_list
-
const char \*table\_get\_col\_list(struct table \*tbl);
-
table_init
-
struct table \*table\_init(const struct table\_template \*tbl\_template);
-
table_reset_row
-
void table\_reset\_row(struct table \*tbl);
-
table_set_col_opt
-
const char \*table\_set\_col\_opt(struct table \*tbl, uint col\_inst\_idx, const char \*col\_opt);
-
table_set_col_order
-
void table\_set\_col\_order(struct table \*tbl, const struct table\_col\_instance \*col\_order);
-
table_set_col_order_by_name
-
const char \*table\_set\_col\_order\_by\_name(struct table \*tbl, const char \*col\_order);
-
table_set_formatter
-
void table\_set\_formatter(struct table \*tbl, const struct table\_formatter \*fmt);
-
table_set_gary_options
-
const char \*table\_set\_gary\_options(struct table \*tbl, char \*\*gary\_table\_opts);
-
table_set_option
-
const char \*table\_set\_option(struct table \*tbl, const char \*opt);
-
table_set_option_value
-
const char \*table\_set\_option\_value(struct table \*tbl, const char \*key, const char \*value);
-
table_start
-
void table\_start(struct table \*tbl, struct fastbuf \*out);
-
tbf_init
-
void tbf\_init(struct token\_bucket\_filter \*f);
-
tbf_limit
-
int tbf\_limit(struct token\_bucket\_filter \*f, timestamp\_t now);
-
temp_file_name
-
void temp\_file\_name(char \*name\_buf, int \*open\_flags);
-
timer_add
-
void timer\_add(struct main\_timer \*tm, timestamp\_t expires);
-
timer_add_rel
-
void timer\_add\_rel(struct main\_timer \*tm, timestamp\_t expires\_delta);
-
timer_debug
-
void timer\_debug(struct main\_timer \*tm);
-
timer_del
-
void timer\_del(struct main\_timer \*tm);
-
timer_is_active
-
static inline int timer\_is\_active(struct main\_timer \*tm);
-
trans_caught
-
void trans\_caught(void);
-
trans_cleanup
-
void trans\_cleanup(void);
-
trans_commit
-
void trans\_commit(void);
-
trans_current_exc
-
struct exception \*trans\_current\_exc(void);
-
trans_dump
-
void trans\_dump(void);
-
trans_fold
-
void trans\_fold(void);
-
trans_get_current
-
struct trans \*trans\_get\_current(void);
-
trans_init
-
void trans\_init(void);
-
trans_open
-
struct trans \*trans\_open(void);
-
trans_rollback
-
void trans\_rollback(void);
-
trans_throw
-
void trans\_throw(const char \*id, void \*object, const char \*fmt, \...) FORMAT\_CHECK(printf,3,4) NONRET;
-
trans_throw_exc
-
void trans\_throw\_exc(struct exception \*x) NONRET;
-
trans_vthrow
-
void trans\_vthrow(const char \*id, void \*object, const char \*fmt, va\_list args) NONRET;
-
unicode_sanitize_char
-
static inline uint unicode\_sanitize\_char(uint u);
-
utf16_be_get
-
static inline void \*utf16\_be\_get(const void \*p, uint \*uu);
-
utf16_be_get_repl
-
static inline void \*utf16\_be\_get\_repl(const void \*p, uint \*uu, uint repl);
-
utf16_be_put
-
static inline void \*utf16\_be\_put(void \*p, uint u);
-
utf16_le_get
-
static inline void \*utf16\_le\_get(const void \*p, uint \*uu);
-
utf16_le_get_repl
-
static inline void \*utf16\_le\_get\_repl(const void \*p, uint \*uu, uint repl);
-
utf16_le_put
-
static inline void \*utf16\_le\_put(void \*p, uint u);
-
utf8_32_get
-
static inline byte \*utf8\_32\_get(const byte \*p, uint \*uu);
-
utf8_32_get_repl
-
static inline byte \*utf8\_32\_get\_repl(const byte \*p, uint \*uu, uint repl);
-
utf8_32_put
-
static inline byte \*utf8\_32\_put(byte \*p, uint u);
-
utf8_encoding_len
-
static inline uint utf8\_encoding\_len(uint c);
-
utf8_get
-
static inline byte \*utf8\_get(const byte \*p, uint \*uu);
-
utf8_get_repl
-
static inline byte \*utf8\_get\_repl(const byte \*p, uint \*uu, uint repl);
-
utf8_put
-
static inline byte \*utf8\_put(byte \*p, uint u);
-
utf8_space
-
static inline uint utf8\_space(uint u);
-
utf8_strlen
-
size\_t utf8\_strlen(const byte \*str);
-
utf8_strnlen
-
size\_t utf8\_strnlen(const byte \*str, size\_t n);
-
varint_get
-
static inline const byte \*varint\_get(const byte \*p, u64 \*res);
-
varint_get32
-
static inline const byte \*varint\_get32(const byte \*p, u32 \*res);
-
varint_invalid
-
static inline int varint\_invalid(const byte \*p);
-
varint_len
-
static inline uint varint\_len(const byte hdr);
-
varint_put
-
static inline uint varint\_put(byte \*p, u64 u);
-
varint_put_invalid
-
static inline uint varint\_put\_invalid(byte \*p);
-
varint_space
-
static inline uint varint\_space(u64 u);
-
vbprintf
-
int vbprintf(struct fastbuf \*b, const char \*msg, va\_list args);
-
vdie
-
void vdie(const char \*fmt, va\_list args) NONRET;
-
vmsg
-
void vmsg(uint flags, const char \*fmt, va\_list args);
-
xfree
-
void xfree(void \*);
-
xmalloc
-
void \*xmalloc(size\_t) LIKE\_MALLOC;
-
xmalloc_zero
-
void \*xmalloc\_zero(size\_t) LIKE\_MALLOC;
-
xrealloc
-
void \*xrealloc(void \*, size\_t);
-
xstrdup
-
char \*xstrdup(const char \*) LIKE\_MALLOC;
-
xtype_format_fmt
-
const char \*xtype\_format\_fmt(struct xtype \*xt, u32 fmt, struct mempool \*pool);
-
xtype_parse_fmt
-
const char \*xtype\_parse\_fmt(const struct xtype \*xt, const char \*str, u32 \*dest, struct mempool \*pool);
-
xtype_unit_parser
-
int xtype\_unit\_parser(const char \*str, const struct unit\_definition \*units);