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
C
 calcfractionsize_decimalhelper
 calculate_crc32
 calculate_sha1hash, sha1_hash_t
 call_iocallback, iocallback_t
 callabort_syncthread, syncthread_t
 callcmpkeyobj_typeadapt, typeadapt_t
 callcmpkeyobj_typeadaptcomparator
 callcmpkeyobj_typeadaptmember, typeadapt_member_t
 callcmpobj_typeadapt, typeadapt_t
 callcmpobj_typeadaptcomparator
 callcmpobj_typeadaptmember, typeadapt_member_t
 calldelete_typeadapt, typeadapt_t
 calldelete_typeadaptlifetime, typeadapt_lifetime_it
 calldelete_typeadaptmember, typeadapt_member_t
 callgetbinarykey_typeadapt, typeadapt_t
 callgetbinarykey_typeadaptgetkey
 callgetbinarykey_typeadaptmember, typeadapt_member_t
 callhashkey_typeadapt, typeadapt_t
 callhashkey_typeadaptgethash, typeadapt_gethash_it
 callhashkey_typeadaptmember, typeadapt_member_t
 callhashobject_typeadapt, typeadapt_t
 callhashobject_typeadaptgethash, typeadapt_gethash_it
 callhashobject_typeadaptmember, typeadapt_member_t
 callinit_syncthread, syncthread_t
 callmain_platform
 callnewcopy_typeadapt, typeadapt_t
 callnewcopy_typeadaptlifetime, typeadapt_lifetime_it
 callnewcopy_typeadaptmember, typeadapt_member_t
 callrun_syncthread, syncthread_t
 callwakeup_syncthread, syncthread_t
 cast_wait2queueentry, wait2queue_entry_t
 cast_waitqueueentry, waitqueue_entry_t
 castfromos_display, display_t
 changesize_trienodeoffsets, trie_nodeoffsets_t
 charencoding_locale
 charencoding_locale implementation
 child_trienode, trie_node_t
 child_triesubnode, trie_subnode_t
 childindex_arraysfmwaybranch, arraysf_mwaybranch_t
 childindex_arraystfmwaybranch, arraystf_mwaybranch_t
 childprocess_environment
 clear_bigint, bigint_t
 clear_cstring, cstring_t
 clear_decimal, decimal_t
 clear_fpuexcept
 clear_header, trie_node_t
 clear_logbuffer, logbuffer_t
 clear_memblock, memblock_t
 clear_signalhandler, signalhandler_t
 clear_suffixtree, suffixtree_t
 clear_wbuffer, wbuffer_t
 clearbuffer_logwriter, logwriter_t
 clearevents_syncrun
 clearfirstdigit_bigint, bigint_t
 clearlsbits_ptr, ptr_t
 cleartoken_utf8scanner, utf8scanner_t
 cmp_bigint, bigint_t
 cmp_decimal, decimal_t
 cmpmagnitude_bigint, bigint_t
 cmpmagnitude_decimal, decimal_t
 codeaddr_module, module_t
 codesize_module, module_t
 colname_csvfilereader, csvfilereader_t
 column_textpos, textpos_t
 column_utf8reader, utf8reader_t
 colvalue_csvfilereader, csvfilereader_t
 compact_syncqueue, syncqueue_t
 compact2_syncqueue, syncqueue_t
 compare_expectnode
 compare_ipaddr, ipaddr_t
 compare_logbuffer, logbuffer_t
 compare_logwriter, logwriter_t
 compare_signalstate, signalstate_t
 compare_vmmappedregions, vm_mappedregions_t
 compare_vmregion, vm_region_t
 comparelogfile_unittest, unittest_t
 compiletime_assert
 compiletime_tests
 config_threadcontext
 configfilter_x11window, x11window_t
 configid_eglconfig, eglconfig_t
 configid_eglcontext, eglcontext_t
 configid_eglpbuffer, eglpbuffer_t
 configid_gconfig, gconfig_t
 configid_gcontext, gcontext_t
 configid_pixelbuffer, pixelbuffer_t
 context_threadtls, thread_tls_t
 continue_syncthread, syncthread_t
 continuelabel_syncrun, syncrun_t
 continuelabel_syncwait, syncwait_t
 convert_ipsocketasync, ipsocket_async_t
 convert2epollevent_iopoll
 convert2epolleventbits
 convert2ioeventbits_iopoll
 convert2subnode_trienodeoffsets, trie_nodeoffsets_t
 convertchild2sub_trienode, trie_node_t
 copy_bigint, bigint_t
 copy_decimal, decimal_t
 copy_ipaddr, ipaddr_t
 current_eglcontext, eglcontext_t
 current_gcontext, gcontext_t
 current_locale
 current_sysuser, sysuser_t
 current_threadtls, thread_tls_t
 currentmsg_locale
 currentpos_convertwchar, convert_wchar_t
static uint32_t calcfractionsize_decimalhelper(
   /*out*/uint32_t *leadingzerosize,
   uint32_t fractionalbits,
   uint32_t nrleadingzerobits
)
Calculates the number of digits needed to represent a binary fraction.
uint32_t calculate_crc32(size_t blocksize,
const void *datablock/*[blocksize]*/)
Calculates the CRC-32 checkusm of a data block.
int calculate_sha1hash(sha1_hash_t *sha1,
size_t buffer_size,
const uint8_t buffer[buffer_size])
Udpates internal fields with content from buffer[buffer_size].
void call_iocallback(const iocallback_t *iocb,
sys_iochannel_t fd,
uint8_t ioevents)
Calls iocallback_t.iimpl with iocallback_t.object as its first parameter.
int callabort_syncthread(syncthread_t *sthread)
Calls syncthread_t.mainfct with signalstate set to syncthread_signal_ABORT.
int callcmpkeyobj_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callcmpkeyobj_typeadaptcomparator.
Implements typeadapt_comparator_it.callcmpkeyobj_typeadaptcomparator.
int callcmpkeyobj_typeadaptcomparator(typeadapt_comparator_it *adpcmp,
struct typeadapt_t *typeadp,
const void *key,
const struct typeadapt_object_t *robject)
Calls function typeadapt_comparator_it.cmp_key_object.
int callcmpkeyobj_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callcmpkeyobj_typeadapt.
int callcmpobj_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callcmpobj_typeadaptcomparator.
Implements typeadapt_comparator_it.callcmpobj_typeadaptcomparator.
int callcmpobj_typeadaptcomparator(typeadapt_comparator_it *adpcmp,
struct typeadapt_t *typeadp,
const struct typeadapt_object_t *lobject,
const struct typeadapt_object_t *robject)
Calls function typeadapt_comparator_it.cmp_object.
int callcmpobj_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callcmpobj_typeadapt.
int calldelete_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call calldelete_typeadaptlifetime.
int calldelete_typeadaptlifetime(typeadapt_lifetime_it *adplife,
struct typeadapt_t *typeadp,
struct typeadapt_object_t **object)
Calls function typeadapt_lifetime_it.delete_object.
int calldelete_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See calldelete_typeadapt.
int callgetbinarykey_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callgetbinarykey_typeadaptgetkey.
Implements typeadapt_getkey_it.callgetbinarykey_typeadaptgetkey.
void callgetbinarykey_typeadaptgetkey(typeadapt_getkey_it *adpgetkey,
struct typeadapt_t *typeadp,
struct typeadapt_object_t *node,
/*out*/typeadapt_binarykey_t *binkey)
Calls function typeadapt_getkey_it.getbinarykey.
void callgetbinarykey_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callgetbinarykey_typeadapt.
int callhashkey_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callhashkey_typeadaptgethash.
size_t callhashkey_typeadaptgethash(typeadapt_gethash_it *gethash,
struct typeadapt_t *typeadp,
const void *key)
Calls function typeadapt_gethash_it.hashkey.
int callhashkey_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callhashkey_typeadapt.
int callhashobject_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callhashobject_typeadaptgethash.
size_t callhashobject_typeadaptgethash(typeadapt_gethash_it *gethash,
struct typeadapt_t *typeadp,
const struct typeadapt_object_t *node)
Calls function typeadapt_gethash_it.hashobject.
int callhashobject_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callhashobject_typeadapt.
int callinit_syncthread(syncthread_t *sthread)
Calls syncthread_t.mainfct with signalstate set to syncthread_signal_INIT.
static void callmain_platform(void)
Calls the main threads main function.
int callnewcopy_typeadapt(typeadapt_t *typeadp,
 ...)
Wrapper to call callnewcopy_typeadaptlifetime.
int callnewcopy_typeadaptlifetime(
   typeadapt_lifetime_it *adplife,
   struct typeadapt_t *typeadp,
   /*out*/struct typeadapt_object_t **destobject,
   const struct typeadapt_object_t *srcobject
)
Calls function typeadapt_lifetime_it.newcopy_object.
int callnewcopy_typeadaptmember(typeadapt_member_t *nodeadp,
 ...)
See callnewcopy_typeadapt.
int callrun_syncthread(syncthread_t *sthread)
Calls syncthread_t.mainfct with signalstate set to syncthread_signal_NULL.
int callwakeup_syncthread(syncthread_t *sthread)
Calls syncthread_t.mainfct with signalstate set to syncthread_signal_WAKEUP.
static inline wait2queue_entry_t * cast_wait2queueentry(syncwait_t *waitentry)
Casts pointer to syncwait_t into pointer to wait2queue_entry_t.
static inline waitqueue_entry_t * cast_waitqueueentry(syncwait_t *waitentry)
Casts pointer to syncwait_t into pointer to waitqueue_entry_t.
display_t * castfromos_display(const void *osdisplay)
Casts pointer to osdisplay into pointer to display_t.
static void changesize_trienodeoffsets(trie_nodeoffsets_t *offsets,
header_t headersize)
Sets header and nodesize of offset to smaller or bigger size.
const char * charencoding_locale(void)
Returns the name of the character encoding of the current selected locale.
See charencoding_locale for interface description.
Returns ptr to child array.
static inline trie_nodedata_t * child_triesubnode(trie_subnode_t *subnode,
uint8_t digit)
Returns child pointer for digit.
unsigned childindex_arraysfmwaybranch(arraysf_mwaybranch_t *branch,
size_t pos)
Determines the index into the internal array arraysf_mwaybranch_t.childs.
unsigned childindex_arraystfmwaybranch(arraystf_mwaybranch_t *branch,
size_t data)
Determines the index into the internal array arraystf_mwaybranch_t.childs.
static int childprocess_environment(void *dummy)
Execute this test in child to make changing environment safe.
void clear_bigint(bigint_t *big)
Sets the value to 0.
void clear_cstring(cstring_t *cstr)
Sets size of string to 0.
void clear_decimal(decimal_t *dec)
Sets the value to 0.
int clear_fpuexcept(fpu_except_e exception_flags)
Clears the flags indicating an exceptional condition.
static inline header_t clear_header(const header_t header,
header_e flags)
Clears flags in header.
void clear_logbuffer(logbuffer_t *logbuf)
Clears the buffer without writting it out.
void clear_memblock(memblock_t *mblock)
Sets the content of the memory block to 0.
static int clear_signalhandler(unsigned signr)
Restores the default signal handler of the platform.
int clear_suffixtree(suffixtree_t *tree)
All contained suffixes are removed and all internal memory is freed.
void clear_wbuffer(wbuffer_t *wbuf)
Removes all appended content from wbuffer.
void clearbuffer_logwriter(logwriter_t *lgwrt,
uint8_t channel)
Clears log buffer (sets length of logbuffer to 0).
static int clearevents_syncrun(syncrun_t *srun)
Set all syncevent_t.waiting pointer to 0 which reference threads in the wait queues.
void clearfirstdigit_bigint(bigint_t *big)
Sets the first digit to 0 and decrements the number of digits.
ptr_t clearlsbits_ptr(const ptr_t ptr,
unsigned nrbits)
Sets all nrbits least significant bits of ptr to zero.
int cleartoken_utf8scanner(utf8scanner_t *scan,
struct filereader_t *frd)
Clears the current token string.
int cmp_bigint(const bigint_t *lbig,
const bigint_t *rbig)
Compares two big integers and returns -1,0 or +1.
int cmp_decimal(const decimal_t *ldec,
const decimal_t *rdec)
Compares two decimal numbers and returns result.
int cmpmagnitude_bigint(const bigint_t *lbig,
const bigint_t *rbig)
Compares magnitude of two big integers and returns -1,0 or +1.
int cmpmagnitude_decimal(const decimal_t *ldec,
const decimal_t *rdec)
Compares magnitude of two decimal numbers returns result.
uint8_t * codeaddr_module(const module_t *mod)
Returns the start address of the mapped program code.
size_t codesize_module(const module_t *mod)
Returns the size of the mapped program code.
int colname_csvfilereader(const csvfilereader_t *csvfile,
size_t column/*0..nrcolumns-1*/,
/*out*/struct string_t *colname)
The name of a column.
size_t column_textpos(const textpos_t *txtpos)
Returns the current column number beginning from 0.
size_t column_utf8reader(const utf8reader_t *utfread)
Returns the column nr of the current reading position.
int colvalue_csvfilereader(const csvfilereader_t *csvfile,
size_t row/*1..nrrows-1*/,
size_t column/*0..nrcolumns-1*/,
/*out*/struct string_t *colvalue)
Returns the value of a single column in a certain row.
int compact_syncqueue(syncqueue_t *syncqueue,
IDNAME elem_t,
struct dlist_t *freelist,
void (*initmove_elem)(void * dest, void * src))
Moves elements from the end of queue to elements stored in freelist.
int compact2_syncqueue(syncqueue_t *syncqueue,
uint16_t elemsize,
struct dlist_t *freelist,
void (*initmove_elem)(void * dest, void * src))
Called from macro compact_syncqueue.
static int compare_expectnode(expect_node_t *expect,
trie_node_t *node,
trie_nodeoffsets_t * nodeoffsets/*could be 0*/,
uint8_t cmpnodesize,
uint8_t cmpsubnodesize)
Compares expect with node.
int compare_ipaddr(const ipaddr_t *left,
const ipaddr_t *right)
Returns result of comparison (0 == equal).
int compare_logbuffer(const logbuffer_t *logbuf,
size_t logsize,
const uint8_t logbuffer[logsize])
Returns 0 if logbuffer compares equal to content in logbuf.
int compare_logwriter(const logwriter_t *lgwrt,
uint8_t channel,
size_t logsize,
const uint8_t logbuffer[logsize])
Returns 0 if logbuffer compares equal to channel content of lgwrt.
int compare_signalstate(const signalstate_t *sigstate1,
const signalstate_t *sigstate2)
Returns 0 if sigstate1 and sigstate2 contains equal settings.
int compare_vmmappedregions(const vm_mappedregions_t *left,
const vm_mappedregions_t *right)
Returns 0 if all regions stored in left and right container compare equal.
int compare_vmregion(const vm_region_t *left,
const vm_region_t *right)
Returns 0 if left and right regions compare equal.
static int comparelogfile_unittest(const char *testname)
Compares stored errlog file with content of current error log.
static inline void compiletime_assert(void)
Checks that arraystf_node_t can be castet into string_t.
static inline void compiletime_tests(void)
Tests that suffixtree_node_t inherits from suffixtree_leaf_t.
static int config_threadcontext(threadcontext_t *tcontext,
maincontext_e context_type)
Adapts tcontext to chosen maincontext_e type.
int configfilter_x11window(/*out*/struct gconfig_filter_t *filter,
const int32_t config_attributes[])
Returns a gconfig_filter_f which helps to filter for a specific window visual.
int configid_eglconfig(eglconfig_t eglconf,
struct opengl_display_t *egldisp,
/*out*/uint32_t *id)
Returns the ID of configuration eglconf in id.
int configid_eglcontext(const eglcontext_t eglcont,
struct opengl_display_t *egldisp,
/*out*/uint32_t *configid)
Returns id of the configuration used during context creation in configid.
int configid_eglpbuffer(const eglpbuffer_t eglpbuf,
struct opengl_display_t *egldisp,
/*out*/uint32_t *configid)
Returns the configuration ID of eglpbuf in configid.
int configid_gconfig(const gconfig_t *gconf,
struct display_t *display,
/*out*/uint32_t *configid)
Returns the configuration ID of gconf.
int configid_gcontext(const gcontext_t *cont,
struct display_t *disp,
/*out*/uint32_t *configid)
Returns id of the configuration cont in configid used during context creation.
int configid_pixelbuffer(const pixelbuffer_t *pbuf,
struct display_t *disp,
/*out*/uint32_t *configid)
Returns the configuration ID of pbuf in configid.
struct threadcontext_t * context_threadtls(const thread_tls_t *tls)
Returns pointer to threadcontext_t stored in thread local storage.
void continue_syncthread(syncthread_t *sthread)
Jumps to state_syncthread which was set with setcontinuelabel_syncthread.
void * continuelabel_syncrun(const syncrun_t *srun)
Returns address where execution should continue after wakeup.
void * continuelabel_syncwait(const syncwait_t *syncwait)
Returns pointer to syncwait->continuelabel (see syncwait_t.continuelabel).
int convert_ipsocketasync(ipsocket_async_t *ipsockasync,
/*out*/ipsocket_t *ipsock)
Converts ipsocket_async_t into ipsocket_t.
static inline void convert2epollevent_iopoll(
   /*out*/struct epoll_event *epevent,
   const ioevent_t *ioevent
)
Converts ioevent_t into Linux struct epoll_event.
static inline uint32_t convert2epolleventbits_iopoll(uint32_t ioevents)
Converts ioevent_e into Linux epoll event bits.
static inline uint32_t convert2ioeventbits_iopoll(uint32_t events)
Converts Linux specific epoll_event->events into ioevent_e.
static void convert2subnode_trienodeoffsets(trie_nodeoffsets_t *offsets)
Switch header flags from header_CHILD to header_SUBNODE.
static int convertchild2sub_trienode(trie_node_t *node)
TODO: describe TODO: remove shrinknode
int copy_bigint(bigint_t *restrict *big,
const bigint_t * restrict copyfrom)
Copies the value from copyfrom to big.
int copy_decimal(decimal_t *restrict *dec,
const decimal_t * restrict copyfrom)
Copies the value from copyfrom to dec.
int copy_ipaddr(ipaddr_t *dest,
const ipaddr_t *source)
Copies the ip number, protocol and port from source to dest.
void current_eglcontext(/*out*/eglcontext_t *eglcont,
/*out*/struct opengl_display_t **egldisp,
/*out*/struct opengl_surface_t **drawsurf,
/*out*/struct opengl_surface_t **readsurf)
Gibt den aktuellen OpenGL Kontext in eglcont zurück.
void current_gcontext(/*out*/struct opengl_context_t **cont,
/*out*/struct opengl_display_t **disp,
/*out*/struct opengl_surface_t **drawsurf,
/*out*/struct opengl_surface_t **readsurf)
Returns the current native OpenGL context and associated native resources.
const char * current_locale(void)
Returns the name of the current active locale.
sysuser_id_t current_sysuser(sysuser_t *sysusr)
Returns the current active system user.
thread_tls_t current_threadtls(void *local_var)
Returns thread_tls_t of the current thread.
const char * currentmsg_locale(void)
Returns the name of the current active locale for system messages.
extern const char * currentpos_convertwchar(convert_wchar_t *conv)
Returns next character position of multibyte string where conversion starts.
Close