Prepares this process to be a daemon process.
int daemonize_process( process_stdio_t * stdfd/*0 = > /dev/null*/ )
Decodes utf-8 encoded bytes beginning from strstart and returns character in uchar.
uint8_t decodechar_utf8( const uint8_t strstart[/*maxsize_utf8() or big enough*/], /*out*/char32_t * uchar )
Returns size of decimal_t needed to represent <s_decimal_powbase>[tableindex].
static inline unsigned decsize_decimalpowbase( unsigned tableindex )
Returns the default screen of x11disp.
struct x11screen_t defaultscreen_x11display( x11display_t * x11disp )
Returns the number of the default screens attached to this display.
uint32_t defaultscreennr_display( const display_t * disp )
Returns the default screen number of x11disp.
uint32_t defaultscreennr_x11display( const x11display_t * x11disp )
Frees allocated memory.
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 any allocated memory and sets (*big) to 0.
int delete_bigint( bigint_t ** big )
Frees any allocated memory and sets (*dec) to 0.
int delete_decimal( decimal_t ** dec )
Closes open directory stream.
int delete_directory( directory_t ** dir )
Deletes a created or copied address.
int delete_ipaddr( ipaddr_t ** addr )
Frees memory of internal list of ipaddr_list_t.
int delete_ipaddrlist( ipaddr_list_t ** addrlist )
Frees single memory page with RELEASE_PAGECACHE.
static int delete_queuepage( queue_page_t ** qpage )
Frees any resources associated with sigstate.
int delete_signalstate( signalstate_t ** sigstate )
Frees all memory allocated for suffixtree_iterator_t object.
static int delete_suffixtreeiterator( suffixtree_iterator_t ** iter )
Frees resources associated with suffixtree_leaf_t.
static int delete_suffixtreeleaf( suffixtree_leaf_t ** leaf )
Frees memory holding system user information.
int delete_sysuserinfo( sysuser_info_t ** usrinfo )
Calls join_thread (if not already called) and deletes resources.
int delete_thread( thread_t ** threadobj )
Frees memory of node and all of its child nodes.
static int delete_trienode( trie_nodedata_t ** node )
Frees allocated memory of subnode.
static int delete_triesubnode( trie_subnode_t ** subnode )
Frees memory of subnode and sets it to 0.
static int delete_triesubnode2( trie_subnode2_t ** subnode )
Frees all resources bound to url.
int delete_url( url_t ** url )
Returns shiftleft10p_f for argument decimal_exponent_x.
static shiftleft10p_f determinehshiftleft_decimalhelper( uint32_t shiftcount )
int64_t diffms_timevalue( timevalue_t * endtv, timevalue_t * starttv )
Returns ptr to digit array.
static inline uint8_t * digit_trienode( trie_node_t * node )
Writes a decimal representation of digit into string str.
static inline void digit2str_decimalhelper( uint8_t * str, uint32_t digit, uint8_t digitsize )
Returns the number of decimal digits stored internally per integer.
uint8_t digitsperint_decimal( void )
Disables a fpu exception to be silent.
int disable_fpuexcept( fpu_except_e exception_flags )
This signal handler is called for every signal.
static void dispatcher_signalhandler( int signr, siginfo_t * siginfo, void * ucontext )
Checks event queue and dispatches 1 event if avialable.
int dispatchevent_X11( struct x11display_t * x11disp )
Returns a pointer to the display_t the window is associated with.
struct display_t * display_window( const window_t * win )
Returns the display of the screen of.
struct x11display_t * display_x11screen( const x11screen_t * x11screen )
Returns the display the window is associated with.
struct x11display_t * display_x11window( const x11window_t * x11win )
Divides dividend lbig by divisor rbig.
int div_bigint( bigint_t *restrict * result, const bigint_t * lbig, const bigint_t * rbig )
Divides parameter ldec by rdec and returns the quotient in the first.
int div_decimal( decimal_t *restrict * result, const decimal_t * ldec, const decimal_t * rdec, uint8_t result_size )
Divides two decimal numbers and returns the positive quotient.
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 3 32 bit integer digits by 2 32 bit integer digits.
static void div3by2digits_biginthelper( bigint_divstate_t * state )
Computes ((dividend * DIGITSBASE + nextdigit) / divisor).
static void div3by2digits_decimalhelper( decimal_divstate_t * state )
Divides parameter ldec by rdivisor and returns quotient in the first.
int divi32_decimal( decimal_t *restrict * result, const decimal_t * ldec, int32_t rdivisor, uint8_t result_size )
Divides decimal number by integer and returns the positive quotient.
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 lbig by rbig and computes lbig modulo rbig.
int divmod_bigint( bigint_t *restrict * divresult, bigint_t *restrict * modresult, const bigint_t * lbig, const bigint_t * rbig )
Computes ldigits[0..lnrdigits-1] = divresult * rdigits[0..rnrdigits-1] + modresult.
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
Divides lbig by divisor of type uint32_t and computes modulo.
int divmodui32_bigint( bigint_t *restrict * divresult, bigint_t *restrict * modresult, const bigint_t * lbig, const uint32_t divisor )
Divides lbig by signed divisor.
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 divisor of type uint32_t.
int divui32_bigint( bigint_t *restrict * result, const bigint_t * lbig, const uint32_t divisor )
Tries a reverse mapping from a binary ip address into its dns name representation.
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 )
Writes a simple ascii representation of all nodes into a cstring_t.
int dump_suffixtree( suffixtree_t * tree, struct cstring_t * cstr )