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
T
 tableindex_decimalpowbase
 tableindexfromdecsize_decimalpowbase
 tablesize_csvfilereader
 tcontext_maincontext, maincontext_t
 test_call
 test_example1
 test_fromutf8
 test_generic
 test_initfree
 test_run
 test_run2
 textpos_utf8reader, utf8reader_t
 thread_syncwait, syncwait_t
 thread_threadtls, thread_tls_t
 threadid_maincontext, maincontext_t
 threadstack_threadtls, thread_tls_t
 threadstack_threadtls(const thread_tls_t*tls)
 time_sysclock, sysclock_t
 timespec_MAXSECONDS
 timespec2timevalue_sysclock
 timespec2timevalue_systimer
 title_x11window, x11window_t
 tocstring_decimal, decimal_t
 todouble_bigint, bigint_t
 top_binarystack, binarystack_t
 transfer_dlist, dlist_t
 transferall_syncwlist, syncwlist_t
 transferfirst_syncwlist, syncwlist_t
 trimmemory_malloc
 truncate_cstring, cstring_t
 truncate_file, file_t
 tryexpand_vmpage, vmpage_t
 tryextendprefix_trienode, trie_node_t
 tryfindobject_x11display, x11display_t
 tryinsert_arraysf, arraysf_t
 tryinsert_arraystf, arraystf_t
 tryinsert_trie, trie_t
 trypath_directory, directory_t
 tryremove_arraysf, arraysf_t
 tryremove_arraystf, arraystf_t
 tryremove_trie, trie_t
 tryskipbytes_stringstream, stringstream_t
 trysuspend_thread, thread_t
 trywait_signalrt, signalrt_t
 trywakeup_waitlist, waitlist_t
 type_maincontext, maincontext_t
 typeadapt_DECLARE, typeadapt_t
 typeadapt_EMBED, typeadapt_t
static inline unsigned tableindex_decimalpowbase(uint32_t bigintsize)
Returns index into table s_decimal_powbase.
static inline unsigned tableindexfromdecsize_decimalpowbase(uint32_t decsize)
Returns index into table s_decimal_powbase.
static inline size_t tablesize_csvfilereader(csvfilereader_t *csvfile)
Returns size in bytes of csvfilereader_t.tablevalues.
threadcontext_t * tcontext_maincontext(void)
Returns threadcontext_t of the current thread.
static int test_call(void)
Test call functions of mm_t.
static int test_example1(void)
Evaluate f(a = 77617, b = 33096)
static int test_fromutf8(void)
static int test_generic(void)
Tests generic functions of iobj_t.
static int test_initfree(void)
Tests lifetime functions of iobj_t.
static int test_run(void)
Test runall_syncrun with all possible state transitions.
static int test_run2(void)
Test correct variable values of a single thread in every posible state.
const textpos_t * textpos_utf8reader(const utf8reader_t *utfread)
Returns the current textposition from utfread.
syncthread_t * thread_syncwait(syncwait_t *syncwait)
Returns pointer to syncwait->thread (see syncwait_t.thread).
struct thread_t * thread_threadtls(const thread_tls_t *tls)
Returns pointer to thread_t stored in thread local storage.
size_t threadid_maincontext(void)
Returns the thread id of the calling thread.
void threadstack_threadtls(const thread_tls_t *tls,
/*out*/struct memblock_t *stackmem)
Returns in stackmem the thread stack from tls.
void threadstack_threadtls(const thread_tls_t *tls,
/*out*/struct memblock_t *stackmem)
Returns the thread stack from tls.
int time_sysclock(sysclock_e clock_type,
/*out*/struct timevalue_t *clock_time)
Returns the absolute time value of the underlying clock.
static inline uint64_t timespec_MAXSECONDS(void)
Returns the maximum value timespec->tv_sec can hold.
static inline void timespec2timevalue_sysclock(/*out*/timevalue_t *tval,
const struct timespec *tspec)
Converts struct timespec into timevalue_t.
static inline void timespec2timevalue_systimer(/*out*/timevalue_t *tval,
const struct timespec *tspec)
Converts struct timespec into timevalue_t.
int title_x11window(const x11window_t *x11win,
/*ret*/struct cstring_t *title)
Returns the window title string in title encoded in UTF-8.
int tocstring_decimal(const decimal_t *dec,
struct cstring_t *cstr)
Converts dec to cstring_t.
double todouble_bigint(const bigint_t *big)
Converts a big integer value into a double.
void * top_binarystack(binarystack_t *stack)
Returns the start address in memory of the last pushed object.
void transfer_dlist(dlist_t *tolist,
dlist_t *fromlist)
Transfer ownership of all nodes from fromlist to tolist.
int transferall_syncwlist(syncwlist_t *towlist,
syncwlist_t *fromwlist)
Transfers all nodes from fromwlist to towlist.
int transferfirst_syncwlist(syncwlist_t *towlist,
syncwlist_t *fromwlist)
Transfers the first node from fromwlist to towlist.
int trimmemory_malloc(void)
Frees preallocated memory which is not in use.
int truncate_cstring(cstring_t *cstr,
size_t new_size)
Adapts size of cstr to a smaller value.
int truncate_file(file_t fileobj,
off_t file_size)
Truncates file to file_size bytes.
int tryexpand_vmpage(vmpage_t *vmpage,
size_t size_in_bytes)
Tries to grow the upper bound of an already mapped address range.
static int tryextendprefix_trienode(trie_node_t *node,
uint8_t len,
uint8_t prefix1[len-1],
uint8_t prefix2/*single digit*/)
Extends prefix with new head prefix1[len-1] + prefix2.
int tryfindobject_x11display(
   x11display_t *x11disp,
   /*out*/struct x11window_t ** object/*could be NULL*/,
   uint32_t objectid
)
Maps an objectid to its associated object pointer.
int tryinsert_arraysf(arraysf_t *array,  
struct arraysf_node_t *node,  
 /*out;  
err*/struct arraysf_node_t **inserted_or_existing_node,  
struct typeadapt_member_t *nodeadp/*0 = >no copy is made*/)
Same as insert_arraysf but no error log in case of EEXIST.
int tryinsert_arraystf(
   arraystf_t *array,  
   struct arraystf_node_t *node,  
    /*out;  
   err*/struct arraystf_node_t **inserted_or_existing_node,  
   struct typeadapt_member_t *nodeadp/*0 = >no copy is made*/
)
Same as insert_arraystf but no error log in case of EEXIST.
int tryinsert_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
void *uservalue)
TODO: describe
int trypath_directory(const directory_t *dir/*0 = > current working directory*/,
const char * const file_path  )
Checks that file_path refers to an existing file or directory.
int tryremove_arraysf(arraysf_t *array,
size_t pos,
/*out*/struct arraysf_node_t **removed_node)
Same as remove_arraysf but no error log in case of ESRCH.
int tryremove_arraystf(arraystf_t *array,
size_t size,
const uint8_t keydata[size],
/*out*/struct arraystf_node_t **removed_node)
Same as remove_arraystf but no error log in case of ESRCH.
int tryremove_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
/*out*/void **uservalue)
TODO: describe
int tryskipbytes_stringstream(stringstream_t *strstream,
size_t size)
Same as skipbytes_stringstream but checks the number of unread bytes before.
int trysuspend_thread(void)
The function returns 0 if the calling thread has been resumed.
int trywait_signalrt(signalrt_t nr,
/*out*/uintptr_t *value)
Polls the queue for a single realtime signal.
int trywakeup_waitlist(waitlist_t *wlist,
int (*main_task)(void * main_arg),
void *main_arg)
Tries to wake up the first waiting thread.
maincontext_e type_maincontext(void)
Returns type context_e of current maincontext_t.
void typeadapt_DECLARE(TYPENAME typeadapter_t,
TYPENAME object_t,
TYPENAME key_t)
Declares a derived interface from generic typeadapt_t.
void typeadapt_EMBED(TYPENAME typeadapter_t,
TYPENAME object_t,
TYPENAME key_t)
Embeds the public interface part from generic typeadapt_t.
Close