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
I
 incrcolumn_textpos, textpos_t
 incrline_textpos, textpos_t
 init_arraysfmwaybranch, arraysf_mwaybranch_t
 init_arraystfkeyval, arraystf_keyval_t
 init_arraystfmwaybranch, arraystf_mwaybranch_t
 init_binarystack, binarystack_t
 init_blockarray, blockarray_t
 init_convertwchar, convert_wchar_t
 init_crc32
 init_cstring, cstring_t
 init_csvfilereader, csvfilereader_t
 init_dlist, dlist_t
 init_eglconfig, eglconfig_t
 init_eglcontext, eglcontext_t
 init_eglpbuffer, eglpbuffer_t
 init_errorcontext, errorcontext_t
 init_exthash, exthash_t
 init_file, file_t
 init_filepathstatic, filepath_static_t
 init_filereader, filereader_t
 init_gconfig, gconfig_t
 init_gcontext, gcontext_t
 init_initqueueentry, initqueue_entry_t
 init_iobj, iobj_t
 init_iopoll
 init_ipsocket, ipsocket_t
 init_logbuffer, logbuffer_t
 init_logwriter, logwriter_t
 init_maincontext, maincontext_t
 init_mmfile, mmfile_t
 init_mmimpl, mm_impl_t
 init_module, module_t
 init_mutex, mutex_t
 init_objectcacheimpl, objectcache_impl_t
 init_pagecacheblockmap, pagecache_blockmap_t
 init_pagecacheimpl, pagecache_impl_t
 init_patriciatrie, patriciatrie_t
 init_pixelbuffer, pixelbuffer_t
 init_platform, platform_t
 init_process, process_t
 init_processcontext, processcontext_t
 init_processstdio2
 init_queue, queue_t
 init_redblacktree, redblacktree_t
 init_resourceusage, resourceusage_t
 init_run2queueentry, run2queue_entry_t
 init_runqueueentry, runqueue_entry_t
 init_rwlock, rwlock_t
 init_semaphore, semaphore_t
 init_sha1hash, sha1_hash_t
 init_slist, slist_t
 init_splaytree, splaytree_t
 init_staticpage, staticpage_t
 init_string
 init_stringstream, stringstream_t
 init_syncqueue, syncqueue_t
 init_syncrun, syncrun_t
 init_syncthread, syncthread_t
 init_syncwait, syncwait_t
 init_syncwlist
 init_systimer, systimer_t
 init_sysuser, sysuser_t
 init_testerrortimer, test_errortimer_t
 init_testmm, testmm_t
 init_textpos, textpos_t
 init_textresource, textresource_t
 init_textresourcereader, textresource_reader_t
 init_threadcontext, threadcontext_t
 init_threadtls, thread_tls_t
 init_thrmutex, thrmutex_t
 init_trie, trie_t
 init_trienodeoffsets, trie_nodeoffsets_t
 init_typeadaptimpl, typeadapt_impl_t
 init_typeadaptnodeoffset, typeadapt_nodeoffset_t
 init_utf8reader, utf8reader_t
 init_utf8scanner, utf8scanner_t
 init_utf8validator, utf8validator_t
 init_valuecache, valuecache_t
 init_vmmappedregions, vm_mappedregions_t
 init_vmpage, vmpage_t
 init_wait2queueentry, wait2queue_entry_t
 init_waitlist, waitlist_t
 init_waitqueueentry, waitqueue_entry_t
 init_window, window_t
 init_x11dblbuffer, x11dblbuffer_t
 init_x11display, x11display_t
 init_x11screen, x11screen_t
 init_x11videomodeiterator, x11videomode_iterator_t
 init_x11window, x11window_t
 init2_initqueueentry, initqueue_entry_t
 init2_vmpage, vmpage_t
 init2_x11display, x11display_t
 initaccept_ipsocket, ipsocket_t
 initaligned_vmpage, vmpage_t
 initany_ipaddrstorage, ipaddr_storage_t
 initappend_file, file_t
 initasmm_testmm, testmm_t
 initconnect_ipsocket, ipsocket_t
 initconnect_ipsocketasync, ipsocket_async_t
 initcopy_convertwchar, convert_wchar_t
 initcopy_iobj, iobj_t
 initcopy_iochannel, iochannel_t
 initcopy_string
 initcreate_file, file_t
 initcurrent_x11videomode, x11videomode_t
 initdecode_trienodeoffsets, trie_nodeoffsets_t
 initdefault_display, display_t
 initdefault_egldisplay, egldisplay_t
 initdiff_arraystfkeyval, arraystf_keyval_t
 initdouble_stringfield, string_field_t
 initexec_process, process_t
 initfile_filereader
 initfiltered_eglconfig, eglconfig_t
 initfiltered_gconfig, gconfig_t
 initfirst_arraysfiterator, arraysf_iterator_t
 initfirst_arraystfiterator, arraystf_iterator_t
 initfirst_dlistiterator, dlist_iterator_t
 initfirst_exthashiterator, exthash_iterator_t
 initfirst_patriciatrieiterator, patriciatrie_iterator_t
 initfirst_patriciatrieprefixiter, patriciatrie_prefixiter_t
 initfirst_queueiterator, queue_iterator_t
 initfirst_redblacktreeiterator, redblacktree_iterator_t
 initfirst_slistiterator, slist_iterator_t
 initfirst_splaytreeiterator, splaytree_iterator_t
 initfirst_syncwlistiterator, syncwlist_iterator_t
 initfl_string, string_t
 initfloat_stringfield, string_field_t
 initfromconfigid_eglconfig, eglconfig_t
 initfromconfigid_gconfig, gconfig_t
 initfromio_mmfile, mmfile_t
 initfromstring_cstring, cstring_t
 initfromstring_string, stringstream_t
 initfromstringstream_string, string_t
 initfromvalues_x11videomode, x11videomode_t
 initgeneric_process, process_t
 initlast_dlistiterator, dlist_iterator_t
 initlast_patriciatrieiterator, patriciatrie_iterator_t
 initlast_redblacktreeiterator, redblacktree_iterator_t
 initlast_splaytreeiterator, splaytree_iterator_t
 initlisten_ipsocket, ipsocket_t
 initmain_thread, thread_t
 initmain_threadtls, thread_tls_t
 initmove_cstring, cstring_t
 initmove_file
 initmove_mmfile, mmfile_t
 initmove_queue, queue_t
 initmove_run2queueentry, run2queue_entry_t
 initmove_runqueueentry, runqueue_entry_t
 initmove_syncevent, syncevent_t
 initmove_syncwait, syncwait_t
 initmove_syncwlist, syncwlist_t
 initmove_wait2queueentry, wait2queue_entry_t
 initmove_waitqueueentry, waitqueue_entry_t
 initmove_wlistentry, wlistentry_t
 initmove_x11display, x11display_t
 initmove_x11window, x11window_t
 initmovesafe_syncevent, syncevent_t
 initnamed_ipport, ipport_t
 initonce_errorcontext, errorcontext_t
 initonce_locale
 initonce_signalhandler, signalhandler_t
 initonce_X11, X11_t
 initpageblock_pagecacheblock
 initprogname_maincontext
 initrealtime_signalwait, signalwait_t
 initse_string, string_t
 initshared_egldisplay
 initsingle_filereader, filereader_t
 initsingle_slist, slist_t
 initsingleton_unittest, unittest_t
 initsplit_mmfile, mmfile_t
 initstart_maincontext, maincontext_t
 initstring_stringfield, string_field_t
 initsubstr_string, string_t
 initthread_pagecacheimpl, pagecache_impl_t
 initvid_x11window
 initx11_egldisplay, egldisplay_t
 initx11_eglwindow, eglwindow_t
 insert_arraysf, arraysf_t
 insert_arraystf, arraystf_t
 insert_exthash, exthash_t
 insert_patriciatrie, patriciatrie_t
 insert_redblacktree, redblacktree_t
 insert_splaytree, splaytree_t
 insert_syncqueue, syncqueue_t
 insert_syncwlist, syncwlist_t
 insert_trie, trie_t
 insert2_syncqueue, syncqueue_t
 insert2_trie, trie_t
 insertafter_dlist, dlist_t
 insertafter_slist, slist_t
 insertandwait_rwlock
 insertbefore_dlist, dlist_t
 insertchild_trienode, trie_node_t
 insertfirst_dlist, dlist_t
 insertfirst_queue, queue_t
 insertfirst_slist, slist_t
 insertlast_dlist, dlist_t
 insertlast_queue, queue_t
 insertlast_slist, slist_t
 insertobject_x11display, x11display_t
 installnew_testmm
 installold_testmm
 interface_logwriter, logwriter_t
 interface_mmimpl, mm_impl_t
 interface_objectcacheimpl, objectcache_impl_t
 invariant_exthash, exthash_t
 invariant_redblacktree, redblacktree_t
 invariant_splaytree
 io_directory, directory_t
 io_file, file_t
 io_ipsocket, ipsocket_t
 io_logbuffer, logbuffer_t
 io_signalwait, signalwait_t
 io_x11display, x11display_t
 iobj_DECLARE, iobj_t
 ioerror_filereader, filereader_t
 isadmin_sysuserid, sysuser_id_t
 isaligned_ptr, ptr_t
 isbranchtype_arraysfunode, arraysf_mwaybranch_t
 isbranchtype_arraystfunode, arraystf_mwaybranch_t
 iscalldelete_typeadapt, typeadapt_t
 ischild_header, trie_node_t
 ischildorsubnode_header, trie_node_t
 isconnected_ipsocket, ipsocket_t
 isempty_binarystack, binarystack_t
 isempty_dlist, dlist_t
 isempty_exthash, exthash_t
 isempty_patriciatrie, patriciatrie_t
 isempty_queue, queue_t
 isempty_redblacktree, redblacktree_t
 isempty_slist, slist_t
 isempty_splaytree, splaytree_t
 isempty_string, string_t
 isempty_syncwlist, syncwlist_t
 isempty_waitlist, waitlist_t
 isenabled_testerrortimer, test_errortimer_t
 iseof_filereader, filereader_t
 isequal_sysuser, sysuser_t
 isequal_sysuserid, sysuser_id_t
 isequal_typeadapt, typeadapt_t
 isequal_typeadaptgethash, typeadapt_gethash_it
 isequal_typeadaptmember, typeadapt_member_t
 isequal_typeadaptnodeoffset, typeadapt_nodeoffset_t
 isequal_x11screen, x11screen_t
 isequalasciicase_string, string_t
 isexpandable_trienodeoffsets, trie_nodeoffsets_t
 isextxrandr_x11display, x11display_t
 isfirstbyte_utf8
 isfree_blockarray, blockarray_t
 isfree_file
 isfree_filereader, filereader_t
 isfree_iochannel
 isfree_memblock, memblock_t
 isfree_mmfile, mmfile_t
 isfree_pagecacheimpl, pagecache_impl_t
 isfree_splitstring, splitstring_t
 isfree_string, string_t
 isfree_surface, surface_t
 isfree_syncevent, syncevent_t
 isfree_syncqueue, syncqueue_t
 isfree_syncrun, syncrun_t
 isfree_syncthread, syncthread_t
 isfree_syncwlist, syncwlist_t
 isfree_thrmutex, thrmutex_t
 isfree_utf8scanner, utf8scanner_t
 isfree_vmpage, vmpage_t
 isfree_x11display, x11display_t
 isfree_x11window, x11window_t
 isfreechild_trienode, trie_node_t
 isinit_iocallback, iocallback_t
 isinlist_dlist, dlist_t
 isinlist_slist, slist_t
 isinstalled_testmm, testmm_t
 islisten_ipsocket, ipsocket_t
 islocked_thrmutex, thrmutex_t
 ismain_thread, thread_t
 ismapped_vm
 ismapped_vmmappedregions, vm_mappedregions_t
 isnegative_bigint, bigint_t
 isnegative_decimal, decimal_t
 isnext_filereader, filereader_t
 isnext_stringstream, stringstream_t
 isnext_utf8reader, utf8reader_t
 isnext_utf8scanner
 isobject_pagecache, pagecache_t
 ispowerof2_int, int_t
 isstatic_processcontext, processcontext_t
 isstatic_threadcontext, threadcontext_t
 isstring_suffixtree, suffixtree_t
 issubnode_header, trie_node_t
 isunmapped_vm
 isunmapped_vmmappedregions, vm_mappedregions_t
 isuservalue_header, trie_node_t
 isvalid_file
 isvalid_iochannel, iochannel_t
 isvalid_ipaddr, ipaddr_t
 isvalid_memblock, memblock_t
 isvalid_timevalue, timevalue_t
 isvalidfirstbyte_utf8
 isvisible_window, window_t
 iswaiting_syncevent, syncevent_t
 iswaiting_thrmutex, thrmutex_t
 iswriter_rwlock, rwlock_t
 iszero_bigint, bigint_t
 iszero_decimal, decimal_t
void incrcolumn_textpos(textpos_t *txtpos)
Increments the column number.
void incrline_textpos(textpos_t *txtpos)
Increments the line number.
void init_arraysfmwaybranch(/*out*/arraysf_mwaybranch_t *branch,
unsigned shift,
size_t pos1,
arraysf_unode_t *childnode1,
size_t pos2,
arraysf_unode_t *childnode2)
Initializes a new branch node.
static void init_arraystfkeyval(/*out*/arraystf_keyval_t *keyval,
size_t offset,
arraystf_node_t *node)
Loads next key data byte at offset from node into keyval.
void init_arraystfmwaybranch(/*out*/arraystf_mwaybranch_t *branch,
size_t offset,
unsigned shift,
size_t data1,
arraystf_unode_t *childnode1,
size_t data2,
arraystf_unode_t *childnode2)
Initializes a new branch node.
int init_binarystack(/*out*/binarystack_t *stack,
uint32_t preallocate_size)
Initializes stack object and reserves at least preallocate_size bytes.
int init_blockarray(/*out*/blockarray_t *barray,
uint8_t pagesize,
uint16_t elementsize)
Initializes barray to use blocks of memory of size pagesize (see pagesize_e).
extern int init_convertwchar(/*out*/convert_wchar_t *conv,
size_t input_len,
const char *input_string)
Inits convert_wchar_t with a pointer to a mbs string.
Implements crc32_t.init_crc32.
void init_crc32(/*out*/crc32_t *crc)
Initializes object of type crc32_t.
int init_cstring(/*out*/cstring_t *cstr,
size_t preallocate_size)
Inits cstring_t and preallocates memory.
int init_csvfilereader(/*out*/csvfilereader_t *csvfile,
const char *filepath)
Opens file and reads all contained values.
void init_dlist(/*out*/dlist_t *list)
Initializes a dlist_t object.
int init_eglconfig(/*out*/eglconfig_t *eglconf,
struct opengl_display_t *egldisp,
const int32_t config_attributes[])
Returns a configuration which matches the given attributes.
int init_eglcontext(/*out*/eglcontext_t *eglcont,
struct opengl_display_t *egldisp,
struct opengl_config_t *eglconf,
uint8_t api)
Initializes eglcont with a graphic context.
int init_eglpbuffer(/*out*/eglpbuffer_t *eglpbuf,
struct opengl_display_t *egldisp,
struct opengl_config_t *eglconf,
uint32_t width,
uint32_t height)
Allocates a pixel buffer with size (width, height) in pixels and returns it in eglpbuf.
int init_errorcontext(/*out*/errorcontext_t *errcontext)
Initializes errcontext with static system error string table.
int init_exthash(/*out*/exthash_t *htable,
size_t initial_size,
size_t max_size,
const typeadapt_member_t *nodeadp)
Allocates a hash table of at least size 1.
int init_file(/*out*/file_t *fileobj,  
const char *filepath,  
accessmode_e iomode,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Opens a file identified by its path and name.
void init_filepathstatic(/*out*/filepath_static_t *fpath,
const struct directory_t *workdir,
const char *filename)
Initializes fpath with the path of working directory workdir and filename.
int init_filereader(/*out*/filereader_t *frd,  
const char *filepath,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Opens file for reading into a double buffer.
int init_gconfig(/*out*/gconfig_t *gconf,
struct display_t *display,
const int32_t config_attributes[])
Returns an OpenGL surface configuration for display.
int init_gcontext(/*out*/gcontext_t *cont,
struct display_t *disp,
struct gconfig_t *gconf,
uint8_t api)
Creates a new native OpenGL graphic context.
static inline void init_initqueueentry(initqueue_entry_t *initentry,
syncrun_f mainfct,
void *initarg)
Initialize initentry with mainfct and initarg.
void init_iobj(/*out*/iobj_t *iobj,
void *object,
void *iimpl)
Generic initialization.
int init_iopoll(/*out*/iopoll_t *iopoll)
Creates epoll event notification facility.
int init_iopoll(/*out*/iopoll_t *iopoll)
Creates system specific event queue to query for io events (ioevent_t).
int init_ipsocket(/*out*/ipsocket_t *ipsock,
const struct ipaddr_t *localaddr)
Creates a new unconnected UDP network communication endpoint.
int init_logbuffer(/*out*/logbuffer_t *logbuf,
uint32_t buffer_size,
uint8_t buffer_addr[buffer_size],
sys_iochannel_t io)
Initializes object.
int init_logwriter(/*out*/logwriter_t *lgwrt)
Allocates memory for the structure and initializes all variables to default values.
int init_maincontext(const maincontext_e context_type,
int argc,
const char **argv)
Initializes global program context.
int init_mmfile(
   /*out*/mmfile_t *mfile,  
   const char *file_path,  
   off_t file_offset,  
   size_t size,  
   accessmode_e mode,  
   const struct directory_t * relative_to /*0 = >current_working_directory*/
)
Opens a new file and maps it to memory.
int init_mmimpl(/*out*/mm_impl_t *mman)
Initializes a new memory manager.
int init_module(/*out*/module_t *mod,
const char *modulename)
Maps a file as binary executable into memory whose filename is modulename.
int init_mutex(/*out*/mutex_t *mutex)
Initializer for a mutex with error checking.
int init_objectcacheimpl(/*out*/objectcache_impl_t *objectcache)
Inits objectcache_impl_t and all contained objects.
int init_pagecacheblockmap(/*out*/pagecache_blockmap_t *blockmap)
Allocates a shared hash table of size pagecache_blockmap_FREE.
int init_pagecacheimpl(/*out*/pagecache_impl_t *pgcache)
Preallocates at least 1MB of memory and initializes pgcache.
void init_patriciatrie(/*out*/patriciatrie_t *tree,
const typeadapt_member_t *nodeadp)
Inits an empty tree object.
int init_pixelbuffer(/*out*/pixelbuffer_t *pbuf,
struct display_t *disp,
struct gconfig_t *gconf,
uint32_t width,
uint32_t height)
Creates a new native OpenGL off-screen pixel buffer.
int init_platform(mainthread_f main_thread,
void *user)
Initialize system context and calls main_thread.
int init_process(/*out*/process_t *process,
process_task_f child_main,
void *start_arg,
process_stdio_t *stdfd)
Creates child process which executes a function.
int init_processcontext(/*out*/processcontext_t *pcontext)
Initializes the current process context.
static int init_processstdio2(/*out*/process_stdfd2_t *stdfd2,
process_stdio_t *stdfd)
Initializes process_stdfd2_t with process_stdio_t and opens devnull.
int init_queue(/*out*/queue_t *queue)
Sets al fields to 0.
int init_redblacktree(/*out*/redblacktree_t *tree,
const typeadapt_member_t *nodeadp)
Inits an empty tree object.
int init_resourceusage(/*out*/resourceusage_t *usage)
Stores the number of resources currently in use.
static inline void init_run2queueentry(/*out*/run2queue_entry_t *runentry,
syncthread_t *thread,
syncevent_t *exitevent)
Initializes runentry with thread and exitevent.
static inline void init_runqueueentry(/*out*/runqueue_entry_t *runentry,
const syncthread_t *thread)
Initializes runentry with thread.
void init_rwlock(/*out*/rwlock_t *rwlock)
Initializes data members.
int init_semaphore(/*out*/semaphore_t *semaobj,
uint16_t init_signal_count)
Initializes a semaphore.
void init_sha1hash(/*out*/sha1_hash_t *sha1)
Inits internal fields to start values.
void init_slist(/*out*/slist_t *list)
Initializes a single linked list object.
void init_splaytree(/*out*/splaytree_t *tree)
Inits an empty tree object.
static inline void init_staticpage(staticpage_t **staticpage,
memblock_t *page)
Initializes a staticpage_t as head of page and returns a pointer to it.
static inline void init_string(/*out*/string_t *str,
size_t size,
const uint8_t string[size])
Implements string_t.init_string.
static inline void init_string(/*out*/string_t *str,
size_t size,
const uint8_t string[size])
Assigns constant string buffer to str.
int init_stringstream(/*out*/stringstream_t *strstream,
const uint8_t *startaddr,
const uint8_t *endaddr)
Initializes stringstream with start and end address.
void init_syncqueue(/*out*/syncqueue_t *syncqueue)
Initializes syncqueue.
int init_syncrun(/*out*/syncrun_t *srun)
Initializes a set of queues.
void init_syncthread(/*out*/syncthread_t *sthread,
syncthread_f mainfct,
void *state)
Initializes sthread with { mainfct, state } .
void init_syncwait(/*out*/syncwait_t *syncwait,
const syncthread_t *thread,
syncevent_t *event,
void *continuelabel)
Initializes syncwait and registers itself at event.
void init_syncwlist(/*out*/syncwlist_t *wlist)
The double linked list dlist_t will not be stored.
void init_syncwlist(/*out*/syncwlist_t *wlist)
Initializes wlist to an empty list.
int init_systimer(/*out*/systimer_t *timer,
sysclock_e clock_type)
Allocates a new system timer.
int init_sysuser(/*out*/sysuser_t *sysusr)
Initializes system user of process at process start.
void init_testerrortimer(/*out*/test_errortimer_t *errtimer,
uint32_t timercount,
int errcode)
Inits errtimer with timercount and errcode.
int init_testmm(/*out*/testmm_t *mman)
Initializes a new test memory manager.
void init_textpos(/*out*/textpos_t *txtpos,
size_t colnr,
size_t linenr)
Sets column and line numbers to arbitrary values.
static int init_textresource(/*out*/textresource_t *textres,
const char *read_from_filename)
Initializes textresource_t object.
static int init_textresourcereader(/*out*/textresource_reader_t *reader,
const char *filename)
Opens file and reads header for the version information.
int init_threadcontext(/*out*/threadcontext_t *tcontext,
struct processcontext_t *pcontext,
uint8_t context_type)
Creates all top level services which are bound to a single thread.
int init_threadtls(/*out*/thread_tls_t *tls)
Allocates a memory block big enoug to hold all thread local storage data.
void init_thrmutex(/*out*/thrmutex_t *mutex)
Sets mutex to thrmutex_INIT.
int init_trie(/*out*/trie_t *trie)
Initializes trie with 0 pointer.
static void init_trienodeoffsets(/*out*/trie_nodeoffsets_t *offsets,
uint16_t prefixlen,
bool isuservalue,
const uint16_t nrchild)
Initializes offsets from prefixlen, optional uservalue, and number of child pointers nrchild.
int init_typeadaptimpl(/*out*/typeadapt_impl_t *typeadp,
size_t objectsize)
Initializes implementation to support objectes of size objectsize.
void init_typeadaptnodeoffset(/*out*/typeadapt_nodeoffset_t *nodeoff,
uint16_t nodeoffset)
Inits typeadapt_nodeoffset_t structure with offset to struct member.
int init_utf8reader(/*out*/utf8reader_t *utfread,  
const char *filepath,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Opens file at filepath for reading as UTF-8 encoded text.
int init_utf8scanner(/*out*/utf8scanner_t *scan)
Sets all data members to 0.
void init_utf8validator(/*out*/utf8validator_t *utf8validator)
Same as assigning utf8validator_INIT.
int init_valuecache(/*out*/valuecache_t *valuecache)
Sets values of valuecache.
int init_vmmappedregions(/*out*/vm_mappedregions_t *mappedregions)
Returns in mappedregions the descriptions of all current virtual memory mappings.
int init_vmpage(/*out*/vmpage_t *vmpage,
size_t size_in_bytes)
Map memory into the virtual address space of the calling process.
static inline void init_wait2queueentry(/*out*/wait2queue_entry_t *waitentry,
syncrun_t *srun,
syncthread_t *thread,
syncevent_t *exitevent)
Initializes waitentry with thread and exitevent and uses srun->waitinfo to read the event and the continuelabel.
int init_waitlist(/*out*/waitlist_t *wlist)
Inits a waiting list.
static inline void init_waitqueueentry(/*out*/waitqueue_entry_t *waitentry,
syncrun_t *srun,
syncthread_t *thread)
Initializes waitentry with thread and uses srun->waitinfo to read the event and the continuelabel.
int init_window(/*out*/window_t *win,
struct display_t *disp,
uint32_t screennr,
const struct window_evh_t *eventhandler,
struct gconfig_t *gconf,
struct windowconfig_t *winattr)
Creates a new native window and its OpenGL extension/wrapper type.
int init_x11dblbuffer(/*out*/x11dblbuffer_t *dblbuf,
struct x11window_t *x11win)
Tries to allocate a double buffer associated with window.
int init_x11display(/*out*/x11display_t *x11disp,
const char *display_server_name)
Connects to a X11 display server and returns the newly created connection.
int init_x11screen(/*out*/x11screen_t *x11screen,
struct x11display_t *display,
uint32_t nrscreen)
Initializes x11screen_t with reference to x11display_t and screen number.
int init_x11videomodeiterator(/*out*/x11videomode_iterator_t *xvidit,
struct x11screen_t *x11screen)
Returns an iterator to a list of all video modes supported by x11screen_t.
int init_x11window(/*out*/x11window_t *x11win,
struct x11display_t *x11disp,
uint32_t screennr,
const struct x11window_evh_t *eventhandler,
const int32_t *gconf_attrib,
const struct windowconfig_t *winconf_attrib)
Create a native X11 window on x11screen and assign it to x11win.
static inline void init2_initqueueentry(initqueue_entry_t *initentry,
syncrun_f mainfct,
uint8_t initargsize)
Initialize initentry with mainfct and initarg and initargsize.
int init2_vmpage(/*out*/vmpage_t *vmpage,
size_t size_in_bytes,
const accessmode_e access_mode)
Map memory into the virtual address space of the calling process.
int init2_x11display(/*out*/x11display_t *x11disp,
const char *display_server_name,
bool isInitExtension)
Same as init_x11display but allows to not initialize any X11 extension.
int initaccept_ipsocket(/*out*/ipsocket_t *ipsock,  
ipsocket_t *listensock,  
struct ipaddr_t *remoteaddr/*0 = > ignored*/)
Waits for an incoming connection request from a peer (client).
int initaligned_vmpage(/*out*/vmpage_t *vmpage,
size_t powerof2_size_in_bytes)
Map new memory into the virtual address space of the calling process.
ipaddr_t * initany_ipaddrstorage(ipaddr_storage_t *addr,
ipprotocol_e protocol,
ipport_t port,
ipversion_e version)
Inits ipaddr_storage_t as an ip addr of type ipaddr_t with given ipversion_e.
int initappend_file(/*out*/file_t *fileobj,  
const char *filepath,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Opens or creates a file to append only.
int initasmm_testmm(/*out*/struct mm_t *testmm)
Calls init_testmm and wraps object into interface object mm_t.
int initconnect_ipsocket(/*out*/ipsocket_t *ipsock,  
const struct ipaddr_t *remoteaddr,  
const struct ipaddr_t *localaddr/*0 = newany_ipaddr*/)
Creates a connected network communication endpoint.
int initconnect_ipsocketasync(/*out*/ipsocket_async_t *ipsockasync,
const struct ipaddr_t *remoteaddr,
const struct ipaddr_t *localaddr)
Same as initconnect_ipsocket except for async operation.
extern int initcopy_convertwchar(/*out*/convert_wchar_t * restrict dest,
const convert_wchar_t * restrict source)
Copies state from source to dest.
void initcopy_iobj(/*out*/iobj_t *destiobj,
const iobj_t *srciobj)
Generic initialization.
int initcopy_iochannel(/*out*/iochannel_t *ioc,
iochannel_t from_ioc)
Makes ioc a duplicate of from_ioc.
static inline void initcopy_string(/*out*/string_t *str,
const string_t * restrict srcstr)
Implements string_t.initcopy_string.
static inline void initcopy_string(/*out*/string_t *str,
const string_t * restrict srcstr)
Copies content of srcstr to str.
int initcreate_file(/*out*/file_t *fileobj,  
const char *filepath,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Creates a file identified by its path and name.
int initcurrent_x11videomode(/*out*/x11videomode_t *current_xvidmode,
struct x11screen_t *x11screen)
Returns the current active video mode of the default screen.
static int initdecode_trienodeoffsets(/*out*/trie_nodeoffsets_t *offsets,
const trie_nodedata_t *data)
Init offsets from decoded information stored in header.
int initdefault_display(/*out*/display_t *disp)
Initializes disp with a connection to the default display.
int initdefault_egldisplay(/*out*/egldisplay_t *egldisp)
Initializes egldisp with the default display connection.
static int initdiff_arraystfkeyval(/*out*/arraystf_keyval_t *keyval,
arraystf_node_t *node,
arraystf_node_t *key)
Searches the first position where the two keys differ.
int initdouble_stringfield(/*out*/string_field_t *strfield,
double dval)
Inits string_field_t describing a double value.
int initexec_process(/*out*/process_t *process,  
const char *filename,  
const char * const *arguments,  
process_stdio_t * stdfd /*0 = > /dev/null*/)
Executes another program with same environment.
static int initfile_filereader(
   /*out*/file_t *fd,  
   /*out*/off_t *filesize,  
   const char *filepath,  
   const struct directory_t *relative_to/*0 = > current working dir*/
)
Opens file for reading.
int initfiltered_eglconfig(/*out*/eglconfig_t *eglconf,
struct opengl_display_t *egldisp,
const int32_t config_attributes[],
eglconfig_filter_f filter,
void *user)
Same as init_eglconfig except that more than one possible configuration is considered.
int initfiltered_gconfig(/*out*/gconfig_t *gconf,
struct display_t *display,
const int32_t config_attributes[],
gconfig_filter_t *filter)
Same as init_gconfig except that more than one possible configuration is considered.
int initfirst_arraysfiterator(/*out*/arraysf_iterator_t *iter,
arraysf_t *array)
Initializes an iterator for arraysf_t.
int initfirst_arraystfiterator(/*out*/arraystf_iterator_t *iter,
arraystf_t *array)
Initializes an iterator for an arraystf_t.
int initfirst_dlistiterator(/*out*/dlist_iterator_t *iter,
dlist_t *list)
Initializes an iterator for dlist_t.
int initfirst_exthashiterator(/*out*/exthash_iterator_t *iter,
exthash_t *htable)
Initializes an iterator for exthash_t.
int initfirst_patriciatrieiterator(/*out*/patriciatrie_iterator_t *iter,
patriciatrie_t *tree)
Initializes an iterator for patriciatrie_t.
int initfirst_patriciatrieprefixiter(/*out*/patriciatrie_prefixiter_t *iter,
patriciatrie_t *tree,
size_t keylength,
const uint8_t prefixkey[keylength])
Initializes an iterator for patriciatrie_t for nodes with prefix prefixkey.
int initfirst_queueiterator(/*out*/queue_iterator_t *iter,
queue_t *queue,
uint16_t nodesize)
Initializes an iterator for queue_t.
int initfirst_redblacktreeiterator(/*out*/redblacktree_iterator_t *iter,
redblacktree_t *tree)
Initializes an iterator for redblacktree_t.
int initfirst_slistiterator(/*out*/slist_iterator_t *iter,
slist_t *list)
Initializes an iterator for slist_t.
int initfirst_splaytreeiterator(/*out*/splaytree_iterator_t *iter,
splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Initializes an iterator for splaytree_t.
int initfirst_syncwlistiterator(/*out*/syncwlist_iterator_t *iter,
syncwlist_t *wlist)
Initializes an iterator for syncwlist_t.
int initfl_string(/*out*/string_t *str,
const uint8_t *first,
const uint8_t *last)
Assigns static string buffer to str.
int initfloat_stringfield(/*out*/string_field_t *strfield,
float fval)
Inits string_field_t describing a float value.
int initfromconfigid_eglconfig(/*out*/eglconfig_t *eglconf,
struct opengl_display_t *egldisp,
const uint32_t id)
Returns a configuration with ID id.
int initfromconfigid_gconfig(/*out*/gconfig_t *gconf,
struct display_t *display,
const uint32_t configid)
Returns an OpenGL surface configuration whose ID matches configid.
int initfromio_mmfile(/*out*/mmfile_t *mfile,
sys_iochannel_t fd,
off_t file_offset,
size_t size,
accessmode_e mode)
Maps a file referenced by sys_iochannel_t into memory.
int initfromstring_cstring(/*out*/cstring_t *cstr,
const struct string_t *copiedfrom)
Inits cstring_t and copies data from string_t.
int initfromstring_string(/*out*/stringstream_t *strstream,
const struct string_t *str)
Initializes stringstream from string_t.
void initfromstringstream_string(/*out*/string_t *str,
const struct stringstream_t *strstream)
Initializes str with content of stringstream_t.
void initfromvalues_x11videomode(/*out*/x11videomode_t *xvidmode,
uint32_t width_in_pixel,
uint32_t height_in_pixel,
uint16_t modeid)
Initializes xvidmode with the parameter values.
int initgeneric_process(/*out*/process_t *process,
process_task_f child_main,
void *start_arg,
process_stdio_t *stdfd)
Same as init_process except that it accepts functions with generic argument type.
int initlast_dlistiterator(/*out*/dlist_iterator_t *iter,
dlist_t *list)
Initializes an iterator for dlist_t.
int initlast_patriciatrieiterator(/*out*/patriciatrie_iterator_t *iter,
patriciatrie_t *tree)
Initializes an iterator of patriciatrie_t.
int initlast_redblacktreeiterator(/*out*/redblacktree_iterator_t *iter,
redblacktree_t *tree)
Initializes an iterator of redblacktree_t.
int initlast_splaytreeiterator(/*out*/splaytree_iterator_t *iter,
splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Initializes an iterator of splaytree_t.
int initlisten_ipsocket(/*out*/ipsocket_t *ipsock,
const struct ipaddr_t *localaddr,
uint16_t max_outstanding_connections)
Creates a TCP server socket for accepting connections from peers (clients).
int initmain_thread(/*out*/thread_t *thread)
Initializes main thread.
int initmain_threadtls(/*out*/thread_tls_t *tls,
/*out*/struct memblock_t *threadstack,
/*out*/struct memblock_t *signalstack)
Same as init_threadtls but calls no other functions of C-kern system.
void initmove_cstring(/*out*/cstring_t * restrict dest,
cstring_t * restrict source)
Inits dest with content of source and sets source to cstring_FREE.
static inline void initmove_file(file_t * restrict destfile,
file_t * restrict sourcefile)
Implements file_t.initmove_file.
static inline void initmove_file(/*out*/file_t * restrict destfile,
file_t * restrict sourcefile)
Moves content of sourcefile to destfile.
void initmove_mmfile(/*out*/mmfile_t * restrict destmfile,
mmfile_t * restrict sourcemfile)
Moves content of sourcemfile to destmfile.
void initmove_queue(/*out*/queue_t *dest,
queue_t *src)
Moves the object to another memory address.
static inline void initmove_run2queueentry(/*out*/run2queue_entry_t *dest,
run2queue_entry_t *src)
Initializes dest with src.
static inline void initmove_runqueueentry(/*out*/runqueue_entry_t *dest,
runqueue_entry_t *src)
Initializes dest with src.
void initmove_syncevent(/*out*/syncevent_t *destsyncevent,
const syncevent_t *srcsyncevent)
Moves initialized srcsyncevent to destsyncevent.
void initmove_syncwait(/*out*/syncwait_t *destsyncwait,
const syncwait_t *srcsyncwait)
Moves initialized (!)
void initmove_syncwlist(/*out*/syncwlist_t *destwlist,
syncwlist_t *srcwlist)
Initializes destwlist with content of scrwlist and clears srcwlist.
static inline void initmove_wait2queueentry(/*out*/wait2queue_entry_t *dest,
wait2queue_entry_t *src)
Moves content of initialized src to dest.
static inline void initmove_waitqueueentry(/*out*/waitqueue_entry_t *dest,
waitqueue_entry_t *src)
Moves content of initialized src to dest.
void initmove_wlistentry(/*out*/wlistentry_t *dest,
wlistentry_t *src)
Moves src to dest.
int initmove_x11display(/*out*/x11display_t *destination,
x11display_t *source)
Must be called if address of x11display_t changes.
int initmove_x11window(/*out*/x11window_t *dest_x11win,
x11window_t *src_x11win)
Must be called if address of x11window_t changes.
void initmovesafe_syncevent(/*out*/syncevent_t *destsyncevent,
const syncevent_t *srcsyncevent)
Moves initialized or free srcsyncevent to destsyncevent.
int initnamed_ipport(/*out*/ipport_t *port,
const char *servicename,
ipprotocol_e protocol)
Returns the tcp and udp port numbers of a named IP service.
int initonce_errorcontext(/*out*/errorcontext_t *error)
Called from maincontext_t.init_maincontext.
int initonce_locale(void)
Called from maincontext_t.init_maincontext.
int initonce_signalhandler(void)
Sets up a process wide signal handler and signal masks at process initialization.
int initonce_X11(void)
Init Xlib such that calling into it is thread safe.
static inline int initpageblock_pagecacheblock(vmpage_t *pageblock,
size_t blocksize)
Allocates resources of pagecache_block_t stored in pagecache_block_t.pageblock.
static void initprogname_maincontext(const char **progname,
const char *argv0)
Sets *progname to (strrchr(argv0, “/”)+1).
int initrealtime_signalwait(/*out*/signalwait_t *signalwait,
signalrt_t minrt,
signalrt_t maxrt)
Initializes a set of realtime signals which can be waited upon.
int initse_string(/*out*/string_t *str,
const uint8_t *start,
const uint8_t *end)
Assigns static string buffer to str.
static inline int initshared_egldisplay(egldisplay_t *egldisp,
EGLDisplay display)
Inits egldisp with display.
int initsingle_filereader(/*out*/filereader_t *frd,  
const char *filepath,  
const struct directory_t *relative_to/*0 = > current working dir*/)
Opens file for reading into a single buffer.
void initsingle_slist(/*out*/slist_t *list,
slist_node_t *node)
Initializes a single linked list object containing a single node.
int initsingleton_unittest(const char *log_files_directory)
Prepares the single instance of unittest_t to execute tests.
int initsplit_mmfile(/*out*/mmfile_t *destheadmfile,
/*out*/mmfile_t *desttailmfile,
size_t headsize,
mmfile_t *sourcemfile)
Split a memory mapping into two.
int initstart_maincontext(const maincontext_startparam_t *startparam)
Calls platform_t.init_platform, maincontext_t.init_maincontext and runs main_thread.
int initstring_stringfield(/*out*/string_field_t *strfield,
struct string_t *strval)
Inits string_field_t describing a string value.
int initsubstr_string(/*out*/string_t *str,
const string_t * restrict fromstr,
size_t start_offset,
size_t size)
Initializes str with substring of fromstr.
int initthread_pagecacheimpl(/*out*/struct pagecache_t *pagecache)
Calls init_pagecacheimpl and adds interface pagecache_it to object.
int initvid_x11window(
   out struct x11display_t *x11disp,
   uint32_t screennr,
   const struct x11window_evh_t *eventhandler,
   (X11) VisualID const struct windowconfig_t *winconf_attrib
)
Called from x11window_t.init_x11window.
int initvid_x11window(/*out*/x11window_t *x11win,
struct x11display_t *x11disp,
uint32_t screennr,
const struct x11window_evh_t *eventhandler,
/*(X11) VisualID*/uint32_t config_visualid,
const struct windowconfig_t *winconf_attrib)
Create a native X11 window on x11screen and assign it to x11win.
int initx11_egldisplay(/*out*/egldisplay_t *egldisp,
struct x11display_t *x11disp)
Initializes egldisp with x11disp.
int initx11_eglwindow(/*out*/eglwindow_t *eglwin,
struct opengl_display_t *egldisp,
struct opengl_config_t *eglconf,
struct x11window_t *x11win)
Initializes eglwin with x11win.
int insert_arraysf(
   arraysf_t *array,  
   struct arraysf_node_t *node,  
   /*out*/struct arraysf_node_t **inserted_node/*0 = >not returned*/,
   struct typeadapt_member_t *nodeadp/*0 = >no copy is made*/
)
Inserts new node at position pos into array.
int insert_arraystf(
   arraystf_t *array,  
   struct arraystf_node_t *node,  
   /*out*/struct arraystf_node_t **inserted_node/*0 = >copy not returned*/,
   struct typeadapt_member_t *nodeadp/*0 = >no copy is made*/
)
Inserts new node with string key into array.
int insert_exthash(exthash_t *htable,
exthash_node_t *new_node)
Inserts a new node into the hash table if it is unique.
int insert_patriciatrie(patriciatrie_t *tree,
patriciatrie_node_t *newnode)
Inserts a new node into the tree only if it is unique.
int insert_redblacktree(redblacktree_t *tree,
redblacktree_node_t *new_node)
Inserts a new node into the tree only if it is unique.
int insert_splaytree(splaytree_t *tree,
splaytree_node_t *new_node,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Inserts a new node into the tree only if it is unique.
int insert_syncqueue(syncqueue_t *syncqueue,
IDNAME **newelem)
Add new element of type IDNAME to end of queue (last).
int insert_syncwlist(syncwlist_t *wlist,
struct syncqueue_t *queue,
/*out*/struct syncevent_t **newevent)
Allocates new wlist node and inserts it into wlist.
int insert_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
void *uservalue)
TODO: describe
int insert2_syncqueue(syncqueue_t *syncqueue,
uint8_t elemsize,
IDNAME **newelem)
Add new element to end of queue (last).
int insert2_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
void *uservalue,
bool islog)
TODO: describe
void insertafter_dlist(dlist_t *list,
struct dlist_node_t *prev_node,
struct dlist_node_t *new_node)
Inserts new_node after prev_node into the list.
void insertafter_slist(slist_t *list,
struct slist_node_t *prev_node,
struct slist_node_t *new_node)
Adds new_node after prev_node into list.
static inline void insertandwait_rwlock(rwlock_t *rwlock,
slist_t *waitlist,
thread_t *self)
Adds thread to list of waiting threads in rwlock.
void insertbefore_dlist(struct dlist_node_t *next_node,
struct dlist_node_t *new_node)
Inserts new_node before next_node into the list.
static int insertchild_trienode(trie_node_t *node,
uint8_t digit,
trie_nodedata_t *child,
uint8_t childindex)
Inserts child into node.
void insertfirst_dlist(dlist_t *list,
struct dlist_node_t *new_node)
Makes new_node the new first element of list.
int insertfirst_queue(queue_t *queue,
/*out*/void **nodeaddr,
uint16_t nodesize)
Allocates nodesize bytes on the first memory page.
void insertfirst_slist(slist_t *list,
struct slist_node_t *new_node)
Makes new_node the new first element of list.
void insertlast_dlist(dlist_t *list,
struct dlist_node_t *new_node)
Makes new_node the new last element of list.
int insertlast_queue(queue_t *queue,
/*out*/void **nodeaddr,
uint16_t nodesize)
Allocates nodesize bytes on the last memory page.
void insertlast_slist(slist_t *list,
struct slist_node_t *new_node)
Makes new_node the new last element of list.
int insertobject_x11display(x11display_t *x11disp,
struct x11window_t *object,
uint32_t objectid)
Registers an object under an objectid.
static int installnew_testmm(const mm_t *testmm)
Installs mm_t which must be of type testmm_t.
static int installold_testmm(/*out*/mm_t *testmm)
Installs the previous mm_t if the current mm is of type testmm_t.
struct log_it * interface_logwriter(void)
This function is called from init_threadcontext.
struct mm_it * interface_mmimpl(void)
This function is called from init_threadcontext.
struct objectcache_it * interface_objectcacheimpl(void)
This function is called from init_threadcontext.
int invariant_exthash(const exthash_t *htable)
Checks that every bucket points to a correct red black tree.
int invariant_redblacktree(redblacktree_t *tree)
Checks that this tree meets 5 conditions of red-black trees.
int invariant_splaytree(splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Checks that nodes of left subtree are smaller and nodes in right subtree are higher than root node.
int invariant_splaytree(splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Checks that all nodes are stored in correct search order.
sys_iochannel_t io_directory(const directory_t *dir)
Returns iochannel_t (file descriptor) of the opened directory.
sys_iochannel_t io_file(const file_t fileobj)
Returns iochannel_t for a file.
sys_iochannel_t io_ipsocket(const ipsocket_t *ipsock)
Returns the file descriptor sys_iochannel_t of the socket.
sys_iochannel_t io_logbuffer(const logbuffer_t *logbuf)
Returns the iochannel_t the content of the buffer is written to.
sys_iochannel_t io_signalwait(const signalwait_t signalwait)
Returns the iochannel_t of signalwait.
sys_iochannel_t io_x11display(const x11display_t *x11disp)
Returns file descriptor of network connection.
void iobj_DECLARE(TYPENAME declared_t,
IDNAME typenameprefix)
Declares an interfaceable object of type declared_t.
int ioerror_filereader(const filereader_t *frd)
Returns the I/0 error (>0) or 0 if no error occurred.
bool isadmin_sysuserid(sysuser_id_t uid)
Returns true if this user is administrator (== root).
int isaligned_ptr(const ptr_t ptr,
unsigned nrbits)
Returns true if all nrbits least significant bits of ptr are zero.
int isbranchtype_arraysfunode(const arraysf_unode_t *node)
Returns true in case node is pointer to arraysf_mwaybranch_t.
int isbranchtype_arraystfunode(const arraystf_unode_t *node)
Returns true in case node is pointer to arraystf_mwaybranch_t.
bool iscalldelete_typeadapt(const typeadapt_t *typeadp)
Returns true if typeadapt_lifetime_it.delete_object is not NULL.
static inline int ischild_header(const header_t header)
Return true in case child and digit array are encoded in trie_node_t.
static inline int ischildorsubnode_header(const header_t header)
Return true in case ischild_header or issubnode_header returns true.
bool isconnected_ipsocket(const ipsocket_t *ipsock)
Returns if the socket is connected to a peer.
int isempty_binarystack(const binarystack_t *stack)
Returns true if stack contains no more data.
int isempty_dlist(const dlist_t *list)
Returns true if list contains no elements else false.
bool isempty_exthash(const exthash_t *htable)
Returns true if the table contains no element.
bool isempty_patriciatrie(const patriciatrie_t *tree)
Returns true if tree contains no elements.
bool isempty_queue(const queue_t *queue)
Returns true if queue contains no elements.
bool isempty_redblacktree(const redblacktree_t *tree)
Returns true if tree contains no elements.
int isempty_slist(const slist_t *list)
Returns true if list contains no nodes.
bool isempty_splaytree(const splaytree_t *tree)
Returns true if tree contains no elements.
bool isempty_string(const string_t *str)
Returns true if string has size 0.
bool isempty_syncwlist(const syncwlist_t *wlist)
Returns true if wlist contains no elements.
bool isempty_waitlist(waitlist_t *wlist)
Returns true if no thread is waiting else false.
bool isenabled_testerrortimer(const test_errortimer_t *errtimer)
Returns true if timer has not fired.
bool iseof_filereader(const filereader_t *frd)
Returns true if end of file is reached.
bool isequal_sysuser(const sysuser_t *lsysusr,
const sysuser_t *rsysusr)
Returns true if lsysusr equals rsysusr.
bool isequal_sysuserid(sysuser_id_t luid,
sysuser_id_t ruid)
Compares two sysuser_id_t for equality.
bool isequal_typeadapt(const typeadapt_t *ltypeadp,
const typeadapt_t *rtypeadp)
Returns true if both typeadapt_t are equal.
bool isequal_typeadaptgethash(const typeadapt_gethash_it *lgethash,
const typeadapt_gethash_it *rgethash)
Returns true if two typeadapt_gethash_it objects are equal.
bool isequal_typeadaptmember(const typeadapt_member_t *ltypeadp,
const typeadapt_member_t *rtypeadp)
Returns true if both typeadapt_member_ts are equal.
bool isequal_typeadaptnodeoffset(const typeadapt_nodeoffset_t lnodeoff,
const typeadapt_nodeoffset_t rnodeoff)
Returns true if both typeadapt_nodeoffset_ts are equal.
bool isequal_x11screen(const x11screen_t *lx11screen,
const x11screen_t *rx11screen)
Returns true if the two objects refer to the same screen.
bool isequalasciicase_string(const string_t *str,
const string_t *str2)
Returns true if two strings compare equal in a case insensitive way.
static inline int isexpandable_trienodeoffsets(
   const trie_nodeoffsets_t *offsets
)
Returns true if the nodesize is lower than maximum size.
bool isextxrandr_x11display(const x11display_t *x11disp)
Returns true if xrandr extension is supported.
Implements utf8.isfirstbyte_utf8.
bool isfirstbyte_utf8(const uint8_t firstbyte)
Returns true if this byte is a possible first (start) byte of an utf-8 encoded multibyte sequence.
bool isfree_blockarray(const blockarray_t *barray)
Returns true if barray equals blockarray_FREE.
static inline bool isfree_file(file_t fileobj)
Implements file_t.isfree_file.
static inline bool isfree_file(const file_t fileobj)
Returns true if the file was opened with init_file.
bool isfree_filereader(const filereader_t *frd)
Returns true in case frd == filereader_FREE.
static inline bool isfree_iochannel(iochannel_t ioc)
Implements iochannel_t.isfree_iochannel.
static inline bool isfree_iochannel(const iochannel_t ioc)
Returns true if ioc equals iochannel_FREE.
bool isfree_memblock(const memblock_t *mblock)
Returns true if mblock equals memblock_FREE.
bool isfree_mmfile(const mmfile_t *mfile)
Returns true if mfile == mmfile_FREE.
bool isfree_pagecacheimpl(const pagecache_impl_t *pgcache)
Returns true if pgcache equals pagecache_impl_FREE.
bool isfree_splitstring(const splitstring_t *spstr)
Returns true if spstr equals splitstring_FREE.
bool isfree_string(const string_t *str)
Returns true if string has address and size of 0.
bool isfree_surface(const surface_t *surf)
Returns true if surf->glsurface is set to 0.
bool isfree_syncevent(const syncevent_t *syncevent)
Returns true if syncevent equals to syncevent_FREE.
bool isfree_syncqueue(const syncqueue_t *syncqueue)
Returns true if syncqueue is equal to syncqueue_FREE.
bool isfree_syncrun(const syncrun_t *srun)
Returns true if *srun equals to syncrun_FREE.
bool isfree_syncthread(const syncthread_t *sthread)
Returns true if sthread is intialized with syncthread_FREE.
bool isfree_syncwlist(const syncwlist_t *wlist)
Returns true if wlist equals syncwlist_FREE.
bool isfree_thrmutex(thrmutex_t *mutex)
Returns true if mutex equals thrmutex_FREE.
bool isfree_utf8scanner(const utf8scanner_t *scan)
Returns true if scan is initialized with utf8scanner_FREE.
bool isfree_vmpage(vmpage_t *vmpage)
Returns true if vmpage equals vmpage_FREE.
static inline bool isfree_x11display(const x11display_t *x11disp)
Returns true if x11disp is set to x11display_FREE.
static inline bool isfree_x11window(const x11window_t *x11win)
Returns true if x11win is set to x11window_FREE.
static inline bool isfreechild_trienode(trie_node_t *node)
Uses node to check if last child entry is empty.
bool isinit_iocallback(const iocallback_t *iocb)
Returns true if iocallback_t.iimpl is not 0.
bool isinlist_dlist(const struct dlist_node_t *node)
Returns true if node is stored in a list else false.
bool isinlist_slist(struct slist_node_t *node)
Returns true if node is stored in a list else false.
bool isinstalled_testmm(void)
Returns true if test memory manager is installed.
bool islisten_ipsocket(const ipsocket_t *ipsock)
Returns true if the socket listens for incoming connections.
bool islocked_thrmutex(thrmutex_t *mutex)
Returns true if a thread locked the mutex.
bool ismain_thread(const thread_t *thread)
Returns true if the calling thread is the main thread.
bool ismapped_vm(const vmpage_t *vmpage,
accessmode_e protection)
Returns true is vmpage is mapped whose accessmode equals protection.
bool ismapped_vmmappedregions(vm_mappedregions_t *mappedregions,
const vmpage_t *mblock,
accessmode_e protection)
Returns true if mappedregions contains a memory region with correct protection.
bool isnegative_bigint(const bigint_t *big)
Returns true if big is negative else false.
bool isnegative_decimal(const decimal_t *dec)
Returns true if dec is negative else false.
bool isnext_filereader(const filereader_t *frd)
Returns true if there is a free buffer available.
bool isnext_stringstream(const stringstream_t *strstream)
Returns true if there are is at least one more unread bytes.
bool isnext_utf8reader(const utf8reader_t *utfread)
Returns true if there is at least one byte to read.
Implements utf8scanner_t.isnext_utf8scanner.
bool isnext_utf8scanner(const utf8scanner_t *scan)
Returns true if the buffer contains at least one more byte.
bool isobject_pagecache(const pagecache_t *pgcache)
Returns true if member pagecache_t.object of pgcache is not null.
int ispowerof2_int(unsigned i)
Determines if argument is of power of 2 or 0.
bool isstatic_processcontext(const processcontext_t *pcontext)
Returns true if pcontext equals processcontext_INIT_STATIC.
bool isstatic_threadcontext(const threadcontext_t *tcontext)
Returns true if tcontext == threadcontext_INIT_STATIC.
bool isstring_suffixtree(suffixtree_t *tree,
size_t length,
const uint8_t searchstr[length])
Returns true if at least one suffix begins with searchstr.
static inline int issubnode_header(const header_t header)
Return true in case child array points to trie_subnode_t.
bool isunmapped_vm(const vmpage_t *vmpage)
Returns true if memory at vmpage is not mapped.
bool isunmapped_vmmappedregions(vm_mappedregions_t *mappedregions,
const vmpage_t *mblock)
Returns true if mappedregions contains no memory region which overlaps with mblock.
static inline int isuservalue_header(const header_t header)
Return true in case node contains member uservalue.
bool isvalid_file(file_t fileobj)
Uses fcntl to query file descriptor flags (FD_CLOEXEC).
bool isvalid_file(const file_t fileobj)
Returns true if fileobj is valid.
bool isvalid_iochannel(const iochannel_t ioc)
Returns true if ioc is initialized and valid.
bool isvalid_ipaddr(const ipaddr_t *addr)
Checks that internal fields are ok.
bool isvalid_memblock(const memblock_t *mblock)
Returns true if mblock->addr != 0 and block->size != 0.
bool isvalid_timevalue(timevalue_t *tv)
Returns true if tv contains a valid value.
Implements utf8.isvalidfirstbyte_utf8.
bool isvalidfirstbyte_utf8(const uint8_t firstbyte)
Returns true if the byte is a legal first byte of an utf8 encoded multibyte sequence.
bool isvisible_window(const window_t *win)
Returns true if window is visible on the screen.
bool iswaiting_syncevent(const syncevent_t *syncevent)
Returns true if there is already a waiting thread.
bool iswaiting_thrmutex(thrmutex_t *mutex)
Returns true if mutex is locked and wait list is not empty.
bool iswriter_rwlock(rwlock_t *rwlock)
Returns true if there is a single writer holding the lock.
bool iszero_bigint(const bigint_t *big)
Returns true in case big has value 0 else false.
bool iszero_decimal(const decimal_t *dec)
Returns true if dec has value 0 else false.
Close