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
S
 same_resourceusage, resourceusage_t
 save_file
 scannedtoken_utf8scanner, utf8scanner_t
 screen_x11window, x11window_t
 seek_mmfile, mmfile_t
 self_maincontext, maincontext_t
 self_thread, thread_t
 send_signalrt, signalrt_t
 send2_signalrt, signalrt_t
 sendclose_window, window_t
 sendclose_x11window, x11window_t
 sendredraw_window, window_t
 sendredraw_x11window, x11window_t
 set_signalhandler, signalhandler_t
 set_x11videomode, x11videomode_t
 setaddr_ipaddr, ipaddr_t
 setbigfirst_bigint, bigint_t
 setchild_arraysfmwaybranch, arraysf_mwaybranch_t
 setchild_arraystfmwaybranch, arraystf_mwaybranch_t
 setchild_triesubnode, trie_subnode_t
 setcontinue_thread, thread_t
 setcontinuelabel_syncthread, syncthread_t
 setcurrent_eglcontext, eglcontext_t
 setcurrent_gcontext, gcontext_t
 setdefault_locale
 setdefault_locale implementation
 setfromchar_decimal, decimal_t
 setfromdouble_bigint, bigint_t
 setfromfloat_decimal, decimal_t
 setfromint32_bigint, bigint_t
 setfromint32_decimal, decimal_t
 setfromint64_decimal, decimal_t
 setfromuint32_bigint, bigint_t
 setfromuint64_bigint, bigint_t
 setignore_signalhandler, signalhandler_t
 setioerror_filereader, filereader_t
 setlittlefirst_bigint, bigint_t
 setmm_threadcontext, threadcontext_t
 setnegative_bigint, bigint_t
 setnegative_decimal, decimal_t
 setnrofparts_splitstring
 SETONERROR_testerrortimer, test_errortimer_t
 setopacity_x11window, x11window_t
 setport_ipaddr, ipaddr_t
 setpos_window, window_t
 setpos_x11window, x11window_t
 setpositive_bigint
 setpositive_decimal
 setprotocol_ipaddr, ipaddr_t
 setqueuesize_ipsocket, ipsocket_t
 setreturncode_thread, thread_t
 setsegv_signalhandler, signalhandler_t
 setsize_splitstring
 setstate_logwriter, logwriter_t
 setstate_syncthread, syncthread_t
 setstateabort_syncrun, syncrun_t
 setstateexit_syncrun, syncrun_t
 setstatewait_syncrun, syncrun_t
 setstatewaitlist_syncrun, syncrun_t
 setstring_splitstring
 settask_thread, thread_t
 settitle_x11window, x11window_t
 setusers_sysuser, sysuser_t
 shiftleft_bigint, bigint_t
 shiftright_bigint, bigint_t
 show_window, window_t
 show_x11window, x11window_t
 shrink_cstring_wbuffer
 shrink_memblock_wbuffer
 shrink_static_wbuffer
 shrink_vmpage, vmpage_t
 shrink_wbuffer, wbuffer_t
 shrinkleft_memblock, memblock_t
 shrinkleft_string, string_t
 shrinkprefix_trienodeoffsets, trie_nodeoffsets_t
 shrinkprefixkeephead_trienode, trie_node_t
 shrinkprefixkeeptail_trienode, trie_node_t
 shrinkright_memblock, memblock_t
 shrinkright_string, string_t
 shrinksize_trienode, trie_node_t
 sign_bigint, bigint_t
 sign_decimal, decimal_t
 sign_int, int_t
 signal_fpuexcept
 signal_semaphore, semaphore_t
 signalall_syncrun, syncrun_t
 signalevent_syncrun, syncrun_t
 signalfirst_syncrun, syncrun_t
 signalstack_threadtls, thread_tls_t
 size_bigint, bigint_t
 size_binarystack
 size_cstring, cstring_t
 size_cstring_wbuffer
 size_decimal, decimal_t
 size_eglpbuffer, eglpbuffer_t
 size_file, file_t
 size_header, header_t
 size_memblock, memblock_t
 size_memblock_wbuffer
 size_memstream, memstream_t
 size_mmfile, mmfile_t
 size_pixelbuffer, pixelbuffer_t
 size_splitstring
 size_static_wbuffer
 size_string, string_t
 size_stringstream, stringstream_t
 size_threadtls, thread_tls_t
 size_vmmappedregions, vm_mappedregions_t
 size_wbuffer, wbuffer_t
 size_window, window_t
 size_x11window, x11window_t
 sizeallocated
 sizeallocated_mm, mm_t
 sizeallocated_mmimpl, mm_impl_t
 sizeallocated_pagecache, pagecache_t
 sizeallocated_pagecacheimpl, pagecache_impl_t
 sizeallocated_testmm, testmm_t
 sizeavailableram_vm
 sizebase64decode_string, string_t
 sizebase64encode_string, string_t
 sizebuffer_filereader
 sizechar_utf8
 sizedataprefetch_hwcache, hwcache_t
 sizeentry_initqueueentry, initqueue_entry_t
 sizefirst_queue, queue_t
 sizeformat_string, string_t
 sizefree_logbuffer, logbuffer_t
 sizefree_trienodeoffsets, trie_nodeoffsets_t
 sizefromfirstbyte_utf8
 sizegrowprefix_trienodeoffsets, trie_nodeoffsets_t
 sizelast_queue, queue_t
 sizemax_decimal, decimal_t
 sizenode_header, trie_node_t
 sizephysram_vm
 sizeprefix_utf8validator, utf8validator_t
 sizereserved_wbuffer, wbuffer_t
 sizesignalstack_threadtls
 sizestack_threadtls
 sizestatic, pagecache_it
 sizestatic_maincontext, maincontext_t
 sizestatic_pagecache, pagecache_t
 sizestatic_pagecacheimpl, pagecache_impl_t
 sizeunread_utf8scanner
 sizeurldecode_string, string_t
 sizeurlencode_string, string_t
 sizeusable_malloc
 sizevars_threadtls
 skip_convertwchar, convert_wchar_t
 skip_spaceandcomment, textresource_reader_t
 skipascii_utf8reader, utf8reader_t
 skipbyte_string, string_t
 skipbyte_stringstream, stringstream_t
 skipbytes_stringstream, stringstream_t
 skipbytes_utf8reader, utf8reader_t
 skipbytes_utf8scanner
 skipchar_utf8
 skipchar_utf8reader, utf8reader_t
 skipempty_csvfilereaderparsestate, csvfilereader_parsestate_t
 skipillegalutf8_strstream, stringstream_t
 skipline_utf8reader, utf8reader_t
 skipuntilafter_utf8scanner, utf8scanner_t
 skiputf8_stringstream, stringstream_t
 sleep_sysclock, sysclock_t
 sleepms_sysclock, sysclock_t
 sleepms_thread, thread_t
 slock_mutex, mutex_t
 slock_thrmutex, thrmutex_t
 slockreader_rwlock, rwlock_t
 slockwriter_rwlock, rwlock_t
 splaykey_splaytree
 splaynode_splaytree
 splitkey_trienode, trie_node_t
 splitnode_suffixtree
 sqroot_int
 sqroot_int32
 sqroot_int64
 start_systimer, systimer_t
 startinterval_systimer, systimer_t
 startthread_syncrun, syncrun_t
 startthread2_syncrun, syncrun_t
 state_process, process_t
 state_syncthread, syncthread_t
 state_x11window, x11window_t
 stop_systimer, systimer_t
 str_cstring, cstring_t
 str_errorcontext, errorcontext_t
 stringcast_arraystfnode, arraystf_node_t
 STRPARAM_filepathstatic, filepath_static_t
 sub_bigint, bigint_t
 sub_biginthelper
 sub_decimal, decimal_t
 sub_decimalhelper
 submul_biginthelper
 submul_decimalhelper
 subnode_trienodeoffsets, trie_nodeoffsets_t
 substr_string, string_t
 success_ipsocketasync, ipsocket_async_t
 sunlock_mutex, mutex_t
 sunlock_thrmutex, thrmutex_t
 sunlockreader_rwlock, rwlock_t
 sunlockwriter_rwlock, rwlock_t
 suspend_thread, thread_t
 swapbuffer_eglwindow, eglwindow_t
 swapbuffer_window, window_t
 swapbuffer_x11window, x11window_t
 switchoff_testmm, testmm_t
 switchon_testmm, testmm_t
 switchtoprivilege_sysuser, sysuser_t
 switchtoreal_sysuser, sysuser_t
 syncrun_maincontext, maincontext_t
 sys_context_threadtls, thread_tls_t
 sys_context2_threadtls, thread_tls_t
 sys_pagesize_vm
 sys_size_threadtls, thread_tls_t
 sys_thread_threadtls, thread_tls_t
 sysuser_maincontext, maincontext_t
int same_resourceusage(const resourceusage_t *usage)
Returns 0 if the numbers of resources equals the numbers stored in usage.
int save_file(const char *filepath,
size_t file_size,
const void *file_content/*[filer_size]*/,
struct directory_t *relative_to)
Creates file and writes file_content into it.
const splitstring_t * scannedtoken_utf8scanner(utf8scanner_t *scan)
Returns the address to an internally stored splitstring_t.
uint32_t screen_x11window(const x11window_t *x11win)
Returns the screen number the window is located on.
int seek_mmfile(mmfile_t *mfile,
sys_iochannel_t fd,
off_t file_offset,
accessmode_e mode)
Use it to change offset of the underlying file mapped into memory.
maincontext_t * self_maincontext(void)
Returns maincontext_t of the current process.
thread_t * self_thread(void)
Returns a pointer to own thread_t.
int send_signalrt(signalrt_t nr,
uintptr_t value)
Sends realtime signal to any thread in the process.
int send2_signalrt(signalrt_t nr,
uintptr_t value,
const struct thread_t *thread)
Sends realtime signal to a specific thread.
int sendclose_window(window_t *win)
Sends a close request to win.
int sendclose_x11window(x11window_t *x11win)
Sends a close request to a window.
int sendredraw_window(window_t *win)
Sends a redraw event to win.
int sendredraw_x11window(x11window_t *x11win)
Sends a redraw event to a window.
static int set_signalhandler(unsigned signr,
signalhandler_f sighandler)
Overwrites a previously set signal handler with sighandler.
int set_x11videomode(const x11videomode_t *xvidmode,
struct x11screen_t *x11screen)
Sets a new videomode of x11screen_t.
int setaddr_ipaddr(ipaddr_t *addr,
ipprotocol_e protocol,
uint16_t sock_addr_len,
const sys_socketaddr_t *sock_addr)
Sets the ip number, protocol and port.
int setbigfirst_bigint(bigint_t * restrict *big,
int sign,
uint16_t size,
const uint32_t numbers[size],
uint16_t exponent)
Sets the value of big integer from an array of integers.
void setchild_arraysfmwaybranch(arraysf_mwaybranch_t *branch,
unsigned childindex,
arraysf_node_t *childnode)
Changes entries in arry arraysf_mwaybranch_t.child.
void setchild_arraystfmwaybranch(arraystf_mwaybranch_t *branch,
unsigned childindex,
arraystf_node_t *childnode)
Changes entries in arry arraystf_mwaybranch_t.child.
static inline void setchild_triesubnode(trie_subnode_t *subnode,
uint8_t digit,
trie_nodedata_t *child)
Sets child as pointer to child node for digit.
int setcontinue_thread(bool *is_abort)
Stores the current execution context and returns 0 on success.
void setcontinuelabel_syncthread(syncthread_t *sthread,
IDNAME labelname)
Calls setstate_syncthread with address of a label.
int setcurrent_eglcontext(const eglcontext_t eglcont,
struct opengl_display_t *egldisp,
struct opengl_surface_t *drawsurf,
struct opengl_surface_t *readsurf)
Setzt den aktuellen OpenGL Kontext für diesen Thread auf eglcont.
int setcurrent_gcontext(const gcontext_t cont,
struct display_t *disp,
struct surface_t *drawsurf,
struct surface_t *readsurf)
Setzt den aktuellen OpenGL Kontext für diesen Thread auf cont.
int setdefault_locale(void)
Sets the default locale defined by the program environment.
Calls C99 conforming function »setlocale«.
int setfromchar_decimal(decimal_t *restrict *dec,
const size_t nrchars,
const char decimalstr[nrchars])
Sets decimal dec to the value represented in decimal/scientific notation.
int setfromdouble_bigint(bigint_t *big,
double value)
Sets the value of big to the integer value of the provided parameter.
int setfromfloat_decimal(decimal_t *restrict *dec,
float value)
Sets decimal to floating point value.
void setfromint32_bigint(bigint_t *big,
int32_t value)
Sets the value of big to the value of the provided parameter.
int setfromint32_decimal(decimal_t *restrict *dec,
int32_t value,
int32_t decimal_exponent)
Sets decimal to value mutliplied by pow(10,*decimal_exponent*).
int setfromint64_decimal(decimal_t *restrict *dec,
int64_t value,
int32_t decimal_exponent)
Sets decimal to value mutliplied by pow(10,*decimal_exponent*).
void setfromuint32_bigint(bigint_t *big,
uint32_t value)
Sets the value of big to the positive value of the provided parameter .
void setfromuint64_bigint(bigint_t *big,
uint64_t value)
Sets the value of big to the positive value of the provided parameter .
static int setignore_signalhandler(unsigned signr)
Sets signal handler which consumes and ignores signal signr.
void setioerror_filereader(filereader_t *frd,
int ioerr)
Sets ioerror of frd.
int setlittlefirst_bigint(bigint_t * restrict *big,
int sign,
uint16_t size,
const uint32_t numbers[size],
uint16_t exponent)
Sets the value of big integer from an array of integers.
void setmm_threadcontext(threadcontext_t *tcontext,
const struct mm_t *new_mm)
Overwrites old mm_t of threadcontext_t with new_mm.
void setnegative_bigint(bigint_t *big)
Changes the sign to be negative.
void setnegative_decimal(decimal_t *dec)
Changes the sign to be negative.
Implements splitstring_t.setnrofparts_splitstring.
void setnrofparts_splitstring(splitstring_t *spstr,
uint8_t number_of_parts)
Sets the nr of parts the string is composed of.
void SETONERROR_testerrortimer(test_errortimer_t *errtimer,
/*err*/int *err)
No op if KONFIG_UNITTEST is not defined.
int setopacity_x11window(x11window_t *x11win,
double opacity)
Sets the opacity of the window and its window manager frame.
int setport_ipaddr(ipaddr_t *addr,
ipport_t port)
Changes ip address’ port value.
int setpos_window(window_t *win,
int32_t screen_x,
int32_t screen_y)
Changes the position of the window on the screen.
int setpos_x11window(x11window_t *x11win,
int32_t screen_x,
int32_t screen_y)
Changes the position of the window on the screen.
#define setpositive_bigint(big) do
Implements bigint_t.setpositive_bigint.
void setpositive_bigint(bigint_t *big)
Changes the sign to be positive.
#define setpositive_decimal(dec) do
Implements decimal_t.setpositive_decimal.
void setpositive_decimal(decimal_t *dec)
Changes the sign to be positive.
int setprotocol_ipaddr(ipaddr_t *addr,
ipprotocol_e protocol)
Changes ip address’ protocol value.
int setqueuesize_ipsocket(ipsocket_t *ipsock,  
size_t queuesize_read/*0 = > no change*/,
size_t queuesize_write/*0 = > no change*/)
Changes the size of the read and write queue.
void setreturncode_thread(thread_t *thread,
int retcode)
Changes value returned by returncode_thread.
int setsegv_signalhandler(signalhandler_segv_f segfault_handler)
Change segmentation fault signal handler.
Implements splitstring_t.setfirstsize_splitstring.
void setsize_splitstring(splitstring_t *spstr,
uint8_t stridx,
size_t stringsize)
Changes the size of the a part of the string at index stridx.
void setstate_logwriter(logwriter_t *lgwrt,
uint8_t channel,
uint8_t logstate)
Change log_state_e of log_channel_e channel to logstate.
void setstate_syncthread(syncthread_t *sthread,
void *state)
Sets the state of the thread.
void setstateabort_syncrun(syncrun_t *srun)
Changes state of running thread to syncrun_state_ABORT.
void setstateexit_syncrun(syncrun_t *srun)
Changes state of running thread to syncrun_state_EXIT.
void setstatewait_syncrun(syncrun_t *srun,
struct syncevent_t *event,
void *continuelabel)
Changes state of running thread to syncrun_state_WAIT.
void setstatewaitlist_syncrun(syncrun_t *srun,
struct syncwlist_t *wlist,
void *continuelabel)
Same as setstatewait_syncrun except supports multiple waiting threads.
Implements splitstring_t.setstring_splitstring.
void setstring_splitstring(splitstring_t *spstr,
uint8_t stridx,
size_t stringsize,
const uint8_t stringaddr[stringsize])
Sets the stringaddr and stringsize of a part of the string at index stridx.
void settask_thread(thread_t *thread,
thread_f main,
void *main_arg)
Changes values returned by maintask_thread and mainarg_thread.
int settitle_x11window(const x11window_t *x11win,
const char *title)
Sets the text of the window titile bar.
int setusers_sysuser(sysuser_t *sysusr,
sysuser_id_t realuser,
sysuser_id_t privilegeduser)
Changes realuser and privileged user.
int shiftleft_bigint(bigint_t **result,
uint32_t shift_count)
Multiplies the number by pow(2, shift_count).
int shiftright_bigint(bigint_t **result,
uint32_t shift_count)
Divides the number by pow(2, shift_count).
int show_window(window_t *win)
Makes window visible to the user.
int show_x11window(x11window_t *x11win)
Makes window visible to the user.
static int shrink_cstring_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Sets memstr to whole allocated buffer of impl (cstring_t) except for the first new_size bytes.
static int shrink_memblock_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Sets memstr to whole allocated buffer of impl (memblock_t) except for the first new_size bytes.
static int shrink_static_wbuffer(void *impl,
size_t new_size,
/*inout*/memstream_t *memstr)
Sets wbuf->next to start+new_size of static buffer.
int shrink_vmpage(vmpage_t *vmpage,
size_t size_in_bytes)
Shrinks the size of an already mapped virtual memory block.
int shrink_wbuffer(wbuffer_t *wbuf,
size_t newsize)
Removes the last size_wbuffer(wbuf)-newsize bytes from wbuf.
int shrinkleft_memblock(memblock_t *mblock,
size_t addr_increment)
Shrinks the memory block by incr its addr and decr its size.
int shrinkleft_string(string_t *str,
size_t nr_bytes_removed_from_string_start)
Shrinks size of string by skipping bytes from the start.
static void shrinkprefix_trienodeoffsets(trie_nodeoffsets_t *offsets,
uint8_t newprefixlen)
Adapts offsets to newprefixlen.
static void shrinkprefixkeephead_trienode(trie_node_t *node,
uint8_t newprefixlen)
Keeps first newprefixlen bytes of the key prefix.
static void shrinkprefixkeeptail_trienode(trie_node_t *node,
uint8_t newprefixlen)
Keeps last newprefixlen bytes of the key prefix.
int shrinkright_memblock(memblock_t *mblock,
size_t size_decrement)
Shrinks the memory block by decrementing only its size.
int shrinkright_string(string_t *str,
size_t nr_bytes_removed_from_string_end)
Shrinks size of string by decrementing its size.
static int shrinksize_trienode(trie_node_t *node)
Resize node to a smaller size.
int sign_bigint(const bigint_t *big)
Returns -1, 0 or +1 if big is negative, zero or positive.
int sign_decimal(const decimal_t *dec)
Returns -1, 0 or +1 if dec is negative, zero or positive.
int sign_int(int i)
Return the sign of an integer (signum function).
int signal_fpuexcept(fpu_except_e exception_flags)
Signals an exceptional condition.
int signal_semaphore(semaphore_t *semaobj,
uint32_t signal_count)
Wakes up signal_count waiters.
int signalall_syncrun(syncrun_t *srun,
struct syncwlist_t *syncwlist)
Transfers all nodes of syncwlist to an internal wakup_list.
int signalevent_syncrun(syncrun_t *srun,
struct syncevent_t *syncevent)
Stores the referenced waiting syncthread_t in a wakeup queue.
int signalfirst_syncrun(syncrun_t *srun,
struct syncwlist_t *syncwlist)
Transfers the first entry of syncwlist to an internal wakup_list.
void signalstack_threadtls(const thread_tls_t *tls,
/*out*/struct memblock_t *stackmem)
Returns in stackmem the signalstack from tls.
uint32_t size_bigint(const bigint_t *big)
Returns the sum of exponent_bigint and nrdigits_bigint.
size_t size_binarystack(binarystack_t *stack)
This function walks through all allocated blocks and counts the allocated size.
size_t size_binarystack(binarystack_t *stack)
Returns the size of all pushed objects.
size_t size_cstring(const cstring_t *cstr)
Returns the size of the string in bytes.
static size_t size_cstring_wbuffer(void *impl,
const memstream_t *memstr)
Returns size in use of impl (cstring_t).
uint8_t size_decimal(decimal_t *dec)
Returns number of integers needed to store all decimal digits.
int size_eglpbuffer(const eglpbuffer_t eglpbuf,
struct opengl_display_t *egldisp,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Returns the width and height of eglpbuf in width and height.
int size_file(const file_t fileobj,
/*out*/off_t *file_size)
Returns the size in bytes of the file.
static uint_fast16_t size_header(unsigned headersize)
Returns the size in bytes of the header size field.
size_t size_memblock(const memblock_t *mblock)
Returns size of memory block.
static size_t size_memblock_wbuffer(void *impl,
const memstream_t *memstr)
Returns number of appended bytes of impl (memblock_t).
size_t size_memstream(const memstream_t *memstr)
Returns the nuber of unread bytes.
size_t size_mmfile(const mmfile_t *mfile)
Returns the size of the mapped memory.
int size_pixelbuffer(const pixelbuffer_t *pbuf,
struct display_t *disp,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Returns the width and height of pbuf.
Implements splitstring_t.size_splitstring.
size_t size_splitstring(const splitstring_t *spstr,
uint8_t stridx)
Returns size of a part of the string at index stridx.
static size_t size_static_wbuffer(void *impl,
const memstream_t *memstr)
Returns number of appended bytes.
size_t size_string(const string_t *str)
Returns size in bytes of string.
size_t size_stringstream(const stringstream_t *strstream)
Returns the number of unread bytes.
size_t size_threadtls(void)
Returns the size of the allocated memory block.
size_t size_vmmappedregions(const vm_mappedregions_t *mappedregions)
Returns the total number of contained vm_region_t.
size_t size_wbuffer(const wbuffer_t *wbuf)
Returns the number of appended bytes.
int size_window(const window_t *win,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Returns the width and height of win in pixels.
int size_x11window(const x11window_t *x11win,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Returns the width and height of the window in pixels.
size_t (*sizeallocated) (struct mm_t * mman)
See mm_impl_t.sizeallocated_mmimpl for an implementation.
size_t (*sizeallocated) (const pagecache_t * pgcache)
Returns the sum of the size of all allocated pages.
size_t sizeallocated_mm(mm_t mm)
Calls mm->iimpl->sizeallocated with mm->object as first parameter.
size_t sizeallocated_mmimpl(mm_impl_t *mman)
Returns the size in bytes of all allocated memory blocks.
size_t sizeallocated_pagecache(const pagecache_t pgcache)
Calls pgcache->iimpl->sizeallocated with pgcache->object as first parameter.
size_t sizeallocated_pagecacheimpl(const pagecache_impl_t *pgcache)
Returns the sum of the size of all allocated pages.
size_t sizeallocated_testmm(testmm_t *mman)
Returns the size in bytes of all allocated memory blocks.
ramsize_t sizeavailableram_vm(void)
Returns size of available physical memory in bytes
size_t sizebase64decode_string(const struct string_t *str)
Returns the size of the decoded string.
size_t sizebase64encode_string(const struct string_t *str)
Returns the size of the encoded string.
size_t sizebuffer_filereader(void)
TODO: 1.
size_t sizebuffer_filereader(void)
Returns the buffer size in bytes.
Implements utf8.sizechar_utf8.
uint8_t sizechar_utf8(char32_t uchar)
Returns the size in bytes of uchar as encoded mb-sequence.
uint32_t sizedataprefetch_hwcache(void)
Size of aligned memory block transfered to and from data cache.
static inline uint16_t sizeentry_initqueueentry(uint8_t initargsize)
The size in bytes of initqueue_entry_t depending on initargsize.
size_t sizefirst_queue(const queue_t *queue)
Returns the number of bytes allocated on the first memory page.
int sizeformat_string(/*out*/struct string_t *str,
int dummy)
Returns in string_t.size the size of the formatted output fields.
uint32_t sizefree_logbuffer(const logbuffer_t *logbuf)
Returns free size usable by the next written entry.
static uint8_t sizefree_trienodeoffsets(const trie_nodeoffsets_t *offsets)
Calculates unused bytes in node which corresponds to offset.
Implements utf8.sizefromfirstbyte_utf8.
uint8_t sizefromfirstbyte_utf8(const uint8_t firstbyte)
Returns the size in bytes of a correct encoded mb-sequence by means of the value of its first byte.
static uint8_t sizegrowprefix_trienodeoffsets(
   const trie_nodeoffsets_t *offsets
)
Calculates size the prefix could grow without growing the node size.
size_t sizelast_queue(const queue_t *queue)
Returns the number of bytes allocated on the last memory page.
uint8_t sizemax_decimal(void)
Returns the maximum number of integers which can be allocated.
static inline uint16_t sizenode_header(const header_t header)
Return size in bytes of node.
ramsize_t sizephysram_vm(void)
Returns size of all physical memory in bytes.
uint8_t sizeprefix_utf8validator(const utf8validator_t *utf8validator)
Returns a value != 0 if the last multibyte sequence was not fully contained in the last validated buffer.
size_t sizereserved_wbuffer(const wbuffer_t *wbuf)
Returns the number of allocated bytes which are not in use.
static inline size_t sizesignalstack_threadtls(const size_t pagesize)
Returns the minimum size of the signal stack.
static inline size_t sizestack_threadtls(const size_t pagesize)
Returns the default size of the thread stack.
size_t (*sizestatic) (const pagecache_t * pgcache)
Size of memory allocated with allocstatic.
uint16_t sizestatic_maincontext(void)
Returns size in bytes of allocated static memory.
size_t sizestatic_pagecache(const pagecache_t pgcache)
Calls pgcache->iimpl->sizestatic with pgcache->object as first parameter.
size_t sizestatic_pagecacheimpl(const pagecache_impl_t *pgcache)
Returns wize of memory allocated with allocstatic.
Implements utf8scanner_t.sizeunread_utf8scanner.
size_t sizeunread_utf8scanner(const utf8scanner_t *scan)
The number of bytes which are not read from the current buffer.
size_t sizeurldecode_string(const struct string_t *str)
Determines url decoded length of parameter str.
size_t sizeurlencode_string(const struct string_t *str,
uint8_t except_char)
Determines url encoded length of parameter str.
size_t sizeusable_malloc(void *addr)
Returns number of usable bytes in the allocated memory block addr.
static inline size_t sizevars_threadtls(const size_t pagesize)
Returns the size of all local thread variables on the stack.
extern int skip_convertwchar(convert_wchar_t *conv,
size_t char_count)
Skips the next char_count characters.
static int skip_spaceandcomment(textresource_reader_t *reader)
Skips comments until next non space character.
void skipascii_utf8reader(utf8reader_t *utfread)
Skips next ascii character.
void skipbyte_string(string_t *str)
Increments the start address of the string by one and decrements its size.
void skipbyte_stringstream(stringstream_t *strstream)
Skips the next unread byte in the input stream.
void skipbytes_stringstream(stringstream_t *strstream,
size_t size)
Skips the next size unread bytes in the input stream.
void skipbytes_utf8reader(utf8reader_t *utfread,
size_t nrbytes,
size_t nrchars)
Skips next nrbytes bytes.
Implements utf8scanner_t.skipbytes_utf8scanner.
void skipbytes_utf8scanner(utf8scanner_t *scan,
size_t nrbytes)
Increments the read pointer by nrbytes without reading the bytes.
Implements utf8.skipchar_utf8.
uint8_t skipchar_utf8(const uint8_t strstart[/*maxsize_utf8() or big enough*/])
Skips the next utf-8 encoded character.
int skipchar_utf8reader(utf8reader_t *utfread)
Skips next character.
static void skipempty_csvfilereaderparsestate(csvfilereader_parsestate_t *state)
Increments offset until next non empty data line is found.
void skipillegalutf8_strstream(struct stringstream_t *strstream)
Skips bytes until end of stream or the begin of a valid utf-8 encoding is found.
int skipline_utf8reader(utf8reader_t *utfread)
Skips characters until beginning of next line.
int skipuntilafter_utf8scanner(utf8scanner_t *scan,
struct filereader_t *frd,
char32_t uchar)
Skips characters until the last skipped character equals uchar.
int skiputf8_stringstream(struct stringstream_t *strstream)
Skips next utf-8 encoded character from strstream.
int sleep_sysclock(sysclock_e clock_type,
const struct timevalue_t *relative_time)
Sleeps relative_time seconds (+nanoseconds).
int sleepms_sysclock(sysclock_e clock_type,
uint32_t millisec)
Sleeps millisec milliseconds.
void sleepms_thread(uint32_t msec)
Makes calling thread to sleep msec milli-seconds.
void slock_mutex(mutex_t *mutex)
Same as lock_mutex.
void slock_thrmutex(thrmutex_t *mutex)
Calls lock_thrmutex and asserts success.
void slockreader_rwlock(rwlock_t *rwlock)
Asserts that lockreader_rwlock has no error.
void slockwriter_rwlock(rwlock_t *rwlock)
Asserts that lockwriter_rwlock has no error.
static int splaykey_splaytree(splaytree_t *tree,
const void *key,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Searches for a node X with key ‘key’ and makes it the new root of the tree.
static int splaynode_splaytree(splaytree_t *tree,
const splaytree_node_t *keynode,
/*out*/int *rootcmp,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Same as splaykey_splaytree except node is used as key.
static int splitnode_suffixtree(suffixtree_t *tree,
suffixtree_pos_t *pos)
The node in pos (see suffixtree_pos_t.node) is splitted into two nodes.
Implements int_t.sqroot_int.
unsigned sqroot_int(unsigned number)
Returns the square root of an unsigned integer number.
uint16_t sqroot_int32(uint32_t number)
Implements the High School Square Root Algorithm for 32 bit unsigned integer.
uint16_t sqroot_int32(uint32_t number)
Returns the square root from an unsigned 32 bit integer.
uint32_t sqroot_int64(uint64_t number)
Implements the High School Square Root Algorithm for 64 bit unsigned integer.
uint32_t sqroot_int64(uint64_t number)
Returns the square root from an unsigned 64 bit integer.
int start_systimer(systimer_t timer,
struct timevalue_t *relative_time)
This function starts (arms) a one shot timer.
int startinterval_systimer(systimer_t timer,
struct timevalue_t *interval_time)
This function starts (arms) a periodic timer.
int startthread_syncrun(syncrun_t *srun,
syncrun_f mainfct,
void *initarg)
Starts a new syncthread_t and stores it in srun’s initqueue.
int startthread2_syncrun(syncrun_t *srun,
syncrun_f mainfct,
uint8_t initargsize,
/*out*/void **initarg)
Starts a new syncthread_t and stores it in srun’s initqueue.
int state_process(process_t *process,
/*out*/process_state_e *current_state)
Returns current state of process.
void * state_syncthread(syncthread_t *sthread)
Returns syncthread_t.state from sthread.
x11window_state_e state_x11window(const x11window_t *x11win)
Returns the state of the window as seen by the user.
int stop_systimer(systimer_t timer)
Stops a timer.
char * str_cstring(cstring_t *cstr)
Returns ‘\0’ terminated string.
const uint8_t * str_errorcontext(const errorcontext_t errcontext,
int errnum)
Returns the error description of errnum as a null terminated C string.
arraystf_node_t * stringcast_arraystfnode(struct string_t *str)
Cast string_t into arraystf_node_t.
void STRPARAM_filepathstatic(const filepath_static_t *fpath)
This macro returns two string parameter describing path of working directory and filename.
int sub_bigint(bigint_t *restrict *result,
const bigint_t *lbig,
const bigint_t *rbig)
Subtracts the third from the 2nd parameter and returns the difference in the first.
static int sub_biginthelper(bigint_t *restrict *result,
const bigint_t *lbig,
const bigint_t *rbig)
Subtracts two integers.
int sub_decimal(decimal_t *restrict *result,
const decimal_t *ldec,
const decimal_t *rdec)
Subracts the third from the second parameter and returns the difference in the first.
static int sub_decimalhelper(decimal_t *restrict *result,
const decimal_t *ldec,
const decimal_t *rdec)
Implements subtraction of two decimal numbers.
static void submul_biginthelper(bigint_divstate_t *state)
Computes ldigits[*]-=nextdigit*rdigits[*] and corrects nextdigits with -1 if necessary.
static void submul_decimalhelper(decimal_divstate_t *state)
Computes »ldigits[*]-=nextdigit*rdigits[*]« and corrects nextdigit with -1 if necessary.
static inline trie_subnode_t ** subnode_trienodeoffsets(
   const trie_nodeoffsets_t *offsets,
   trie_nodedata_t *data
)
Returns address of subnode member.
int substr_string(string_t *str,
size_t start_offset,
size_t size)
The string is made a substring of itself.
int success_ipsocketasync(ipsocket_async_t *ipsockasync)
Returns 0 if async connect completed.
void sunlock_mutex(mutex_t *mutex)
Same as unlock_mutex.
void sunlock_thrmutex(thrmutex_t *mutex)
Calls sunlock_thrmutex and asserts success.
void sunlockreader_rwlock(rwlock_t *rwlock)
Asserts that unlockreader_rwlock has no error.
void sunlockwriter_rwlock(rwlock_t *rwlock)
Asserts that unlockwriter_rwlock has no error.
void suspend_thread(void)
The calling thread will sleep until resume_thread is called.
int swapbuffer_eglwindow(eglwindow_t eglwin,
struct opengl_display_t *egldisp)
Swaps the content of the back and from buffer.
int swapbuffer_window(window_t *win,
struct display_t *disp)
Swaps the content of the fron buffer with the back buffer.
int swapbuffer_x11window(x11window_t *x11win)
Changes the content of the double buffer with the window.
int switchoff_testmm(void)
Restores memory manager of threadcontext_t.
int switchon_testmm(void)
Stores current memory manager of threadcontext_t and installs testmm_t.
int switchtoprivilege_sysuser(sysuser_t *sysusr)
Switches current user to privileged_sysuser.
int switchtoreal_sysuser(sysuser_t *sysusr)
Switches current user to real_sysuser.
struct syncrun_t * syncrun_maincontext(void)
Returns syncrun_t of current maincontext_t.
struct threadcontext_t * sys_context_threadtls(void)
Returns threadcontext_t of the current thread.
struct threadcontext_t * sys_context2_threadtls(void *local_var)
Returns threadcontext_t of the current thread.
uint32_t sys_pagesize_vm(void)
Returns the virtual memory page size supported by the underlying system.
size_t sys_size_threadtls(void)
Returns the size in bytes of the thread local storage.
struct thread_t * sys_thread_threadtls(void)
Returns current thread_t object.
Returns sysusercontext_t of current maincontext_t.
Close