Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
D
 daemonize_process, process_t
 decodechar_utf8, utf8
 decsize_decimalpowbase
 defaultscreen_x11display, x11display_t
 defaultscreennr_display, display_t
 defaultscreennr_x11display, x11display_t
 define calculate_crc32
 delete_arraysf, arraysf_t
 delete_arraystf, arraystf_t
 delete_bigint, bigint_t
 delete_decimal, decimal_t
 delete_directory, directory_t
 delete_ipaddr, ipaddr_t
 delete_ipaddrlist, ipaddr_list_t
 delete_queuepage
 delete_signalstate, signalstate_t
 delete_suffixtreeiterator, suffixtree_iterator_t
 delete_suffixtreeleaf, suffixtree_leaf_t
 delete_sysuserinfo, sysuser_info_t
 delete_thread, thread_t
 delete_trienode, trie_node_t
 delete_triesubnode, trie_subnode_t
 delete_triesubnode2, trie_subnode2_t
 delete_url, url_t
 delsubnode_trienode, trie_node_t
 deluservalue_trienode, trie_node_t
 determinehshiftleft_decimalhelper
 diffms_timevalue, timevalue_t
 digit_trienode, trie_node_t
 digit2str_decimalhelper
 digitsperint_decimal, decimal_t
 disable_fpuexcept
 dispatcher_signalhandler, signalhandler_t
 dispatchevent_X11, X11_t
 display_window, window_t
 display_x11screen, x11screen_t
 display_x11window, x11window_t
 div_bigint, bigint_t
 div_decimal, decimal_t
 div_decimalhelper
 div3by2digits_biginthelper
 div3by2digits_decimalhelper
 divi32_decimal, decimal_t
 divi32_decimalhelper
 divmod_bigint, bigint_t
 divmod_biginthelper
 divmodui32_bigint, bigint_t
 divmodui32_biginthelper
 divui32_bigint, bigint_t
 dnsname_ipaddr, ipaddr_t
 dnsnameace_ipaddr, ipaddr_t
 dump_suffixtree, suffixtree_t
int daemonize_process(process_stdio_t *stdfd/*0 = > /dev/null*/)
Prepares this process to be a daemon process.
uint8_t decodechar_utf8(
   const uint8_t strstart[/*maxsize_utf8() or big enough*/],
   /*out*/char32_t *uchar
)
Decodes utf-8 encoded bytes beginning from strstart and returns character in uchar.
static inline unsigned decsize_decimalpowbase(unsigned tableindex)
Returns size of decimal_t needed to represent <s_decimal_powbase>[tableindex].
struct x11screen_t defaultscreen_x11display(x11display_t *x11disp)
Returns the default screen of x11disp.
uint32_t defaultscreennr_display(const display_t *disp)
Returns the number of the default screens attached to this display.
uint32_t defaultscreennr_x11display(const x11display_t *x11disp)
Returns the default screen number of x11disp.
Implements calculate_crc32.
int delete_arraysf(arraysf_t **array,
struct typeadapt_member_t *nodeadp)
Frees allocated memory.
int delete_arraystf(arraystf_t **array,
struct typeadapt_member_t *nodeadp)
Frees allocated memory.
int delete_bigint(bigint_t **big)
Frees any allocated memory and sets (*big) to 0.
int delete_decimal(decimal_t **dec)
Frees any allocated memory and sets (*dec) to 0.
int delete_directory(directory_t **dir)
Closes open directory stream.
int delete_ipaddr(ipaddr_t **addr)
Deletes a created or copied address.
int delete_ipaddrlist(ipaddr_list_t **addrlist)
Frees memory of internal list of ipaddr_list_t.
static int delete_queuepage(queue_page_t **qpage)
Frees single memory page with RELEASE_PAGECACHE.
int delete_signalstate(signalstate_t **sigstate)
Frees any resources associated with sigstate.
static int delete_suffixtreeiterator(suffixtree_iterator_t **iter)
Frees all memory allocated for suffixtree_iterator_t object.
static int delete_suffixtreeleaf(suffixtree_leaf_t **leaf)
Frees resources associated with suffixtree_leaf_t.
int delete_sysuserinfo(sysuser_info_t **usrinfo)
Frees memory holding system user information.
int delete_thread(thread_t **threadobj)
Calls join_thread (if not already called) and deletes resources.
static int delete_trienode(trie_nodedata_t **node)
Frees memory of node and all of its child nodes.
static int delete_triesubnode(trie_subnode_t **subnode)
Frees allocated memory of subnode.
static int delete_triesubnode2(trie_subnode2_t **subnode)
Frees memory of subnode and sets it to 0.
int delete_url(url_t **url)
Frees all resources bound to url.
Moves all pointers from subnode into child[] array.
static shiftleft10p_f determinehshiftleft_decimalhelper(uint32_t shiftcount)
Returns shiftleft10p_f for argument decimal_exponent_x.
int64_t diffms_timevalue(timevalue_t *endtv,
timevalue_t *starttv)
static inline uint8_t * digit_trienode(trie_node_t *node)
Returns ptr to digit array.
static inline void digit2str_decimalhelper(uint8_t *str,
uint32_t digit,
uint8_t digitsize)
Writes a decimal representation of digit into string str.
uint8_t digitsperint_decimal(void)
Returns the number of decimal digits stored internally per integer.
int disable_fpuexcept(fpu_except_e exception_flags)
Disables a fpu exception to be silent.
static void dispatcher_signalhandler(int signr,
siginfo_t *siginfo,
void *ucontext)
This signal handler is called for every signal.
int dispatchevent_X11(struct x11display_t *x11disp)
Checks event queue and dispatches 1 event if avialable.
struct display_t * display_window(const window_t *win)
Returns a pointer to the display_t the window is associated with.
struct x11display_t * display_x11screen(const x11screen_t *x11screen)
Returns the display of the screen of.
struct x11display_t * display_x11window(const x11window_t *x11win)
Returns the display the window is associated with.
int div_bigint(bigint_t *restrict *result,
const bigint_t *lbig,
const bigint_t *rbig)
Divides dividend lbig by divisor rbig.
int div_decimal(decimal_t *restrict *result,
const decimal_t *ldec,
const decimal_t *rdec,
uint8_t result_size)
Divides parameter ldec by rdec and returns the quotient in the first.
static int div_decimalhelper(decimal_t *restrict result,
bool isNegSign,
int32_t exponent,
const uint8_t lsize,
uint32_t * const ldigits,
const uint8_t rsize,
const uint32_t * const rdigits,
const uint8_t result_size)
Divides two decimal numbers and returns the positive quotient.
static void div3by2digits_biginthelper(bigint_divstate_t *state)
Divides 3 32 bit integer digits by 2 32 bit integer digits.
static void div3by2digits_decimalhelper(decimal_divstate_t *state)
Computes ((dividend * DIGITSBASE + nextdigit) / divisor).
int divi32_decimal(decimal_t *restrict *result,
const decimal_t *ldec,
int32_t rdivisor,
uint8_t result_size)
Divides parameter ldec by rdivisor and returns quotient in the first.
static int divi32_decimalhelper(decimal_t *restrict result,
bool isNegSign,
int32_t exponent,
uint8_t lsize,
const uint32_t *ldigits,
uint32_t divisor,
const uint32_t result_size)
Divides decimal number by integer and returns the positive quotient.
int divmod_bigint(bigint_t *restrict *divresult,
bigint_t *restrict *modresult,
const bigint_t *lbig,
const bigint_t *rbig)
Divides lbig by rbig and computes lbig modulo rbig.
static void divmod_biginthelper(
   bigint_t *restrict *divresult,
   bigint_t *restrict *modresult,
   uint16_t divnrdigits,
   // number of digits which must be computed const uint16_t modnrdigits,
   // number of digits of the remainder const int16_t divsign,
   // sign ([-1,+1]) of divresult const int16_t lsign,
   // sign ([-1,+1]) of ldigits (which is the sign of modresult) const uint16_t lnrdigits,
   // the number of digits in array ldigits uint32_t *ldigits,
   // the array of digits for the left operand const uint16_t rnrdigits,
   // the number of digits in array rdigits const uint32_t *rdigits
) // the array of digits for the right operand
Computes ldigits[0..lnrdigits-1] = divresult * rdigits[0..rnrdigits-1] + modresult.
int divmodui32_bigint(bigint_t *restrict *divresult,
bigint_t *restrict *modresult,
const bigint_t *lbig,
const uint32_t divisor)
Divides lbig by divisor of type uint32_t and computes modulo.
static void divmodui32_biginthelper(bigint_t *restrict *divresult,
bigint_t *restrict *modresult,
uint16_t divnrdigits,
const int16_t divsign,
const int16_t lsign,
uint16_t lnrdigits,
const uint32_t * const ldigits,
const uint32_t divisor)
Divides lbig by signed divisor.
int divui32_bigint(bigint_t *restrict *result,
const bigint_t *lbig,
const uint32_t divisor)
Divides lbig by divisor of type uint32_t.
int dnsname_ipaddr(const ipaddr_t *addr,
cstring_t *dns_name)
Tries a reverse mapping from a binary ip address into its dns name representation.
int dnsnameace_ipaddr(const ipaddr_t *addr,
cstring_t *dns_name)
Tries a reverse mapping from a binary ip address into its dns name representation.
int dump_suffixtree(suffixtree_t *tree,
struct cstring_t *cstr)
Writes a simple ascii representation of all nodes into a cstring_t.
Close