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
R
 read_file
 read_iochannel, iochannel_t
 read_ipsocket, ipsocket_t
 readbuffer_utf8scanner, utf8scanner_t
 readfrom_ipsocket, ipsocket_t
 readmaxsize_windowconfig, windowconfig_t
 readminsize_windowconfig, windowconfig_t
 readnext_filereader, filereader_t
 readoob_ipsocket, ipsocket_t
 readpos_windowconfig, windowconfig_t
 readsize_windowconfig, windowconfig_t
 readtitle_windowconfig, windowconfig_t
 readtransparency_windowconfig, windowconfig_t
 readtype_windowconfig, windowconfig_t
 real_sysuser, sysuser_t
 recursivesplay_splaytree
 redirecterr_processstdio, process_stdio_t
 redirectin_processstdio, process_stdio_t
 redirectout_processstdio, process_stdio_t
 redirectstdfd_processstdio2
 redirectstdio_processstdio2
 registerfd_iopoll
 release_filereader, filereader_t
 releasecurrent_eglcontext, eglcontext_t
 releasecurrent_gcontext, gcontext_t
 releasepage, pagecache_it
 releasepage_pagecache, pagecache_t
 releasepage_pagecacheimpl, pagecache_impl_t
 remainingtime_systimer, systimer_t
 remoteaddr_ipsocket, ipsocket_t
 remove_arraysf, arraysf_t
 remove_arraystf, arraystf_t
 remove_dlist, dlist_t
 remove_exthash, exthash_t
 remove_file
 remove_patriciatrie, patriciatrie_t
 remove_redblacktree, redblacktree_t
 remove_splaytree, splaytree_t
 remove_syncqueue, syncqueue_t
 remove_syncwlist, syncwlist_t
 remove_trie, trie_t
 remove2_trie, trie_t
 removeafter_slist, slist_t
 removeall_dlist, dlist_t
 removeall_slist, slist_t
 removedirectory_directory, directory_t
 removeempty_syncwlist, syncwlist_t
 removefile_directory, directory_t
 removefirst_dlist, dlist_t
 removefirst_queue, queue_t
 removefirst_slist, slist_t
 removefirst_syncqueue, syncqueue_t
 removelast_dlist, dlist_t
 removelast_queue, queue_t
 removelast_syncqueue, syncqueue_t
 removenodes_exthash, exthash_t
 removenodes_patriciatrie, patriciatrie_t
 removenodes_redblacktree, redblacktree_t
 removenodes_splaytree, splaytree_t
 removeobject_x11display, x11display_t
 removetrailingzero_bigint, bigint_t
 replacechild_suffixtree
 replacenode_dlist, dlist_t
 replaceobject_x11display, x11display_t
 reset_locale
 reset_locale implementation
 resetmsg_locale
 resetthreadid_threadcontext, threadcontext_t
 resize_cstring, cstring_t
 resize_window, window_t
 resize_x11window, x11window_t
 resizelast_queue, queue_t
 resolution_sysclock, sysclock_t
 resume_thread, thread_t
 retcode_syncrun, syncrun_t
 returncode_thread, thread_t
 reversebits_int, int_t
 run_linuxsplice_speedtest
 run_madvise_speedtest
 run_unittest, unittest_t
 runall_syncrun, syncrun_t
Implements file_t.read_file.
int read_file(file_t fileobj,
size_t size,
/*out*/void *buffer/*[size]*/,
size_t *bytes_read)
Reads size bytes from file referenced by fileobj into buffer.
int read_iochannel(iochannel_t ioc,
size_t size,
/*out*/void *buffer/*[size]*/,
/*out*/size_t *bytes_read)
Reads size bytes from the data stream referenced by ioc into buffer.
int read_ipsocket(ipsocket_t *ipsock,
size_t maxdata_len,
/*out*/uint8_t data[maxdata_len],
/*out*/size_t *bytes_read)
Reads bytes from read queue at max maxdata_len bytes.
int readbuffer_utf8scanner(utf8scanner_t *scan,
struct filereader_t *frd)
Acquires the next buffer from filereader_t if isnext_utf8scanner returns false.
int readfrom_ipsocket(ipsocket_t *ipsock,
struct ipaddr_t *remoteaddr,
size_t maxdata_len,
/*out*/uint8_t data[maxdata_len],
/*out*/size_t *bytes_read)
Same as read_ipsocket but for unconnected (UDP) sockets.
void readmaxsize_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Reads a maxsize attribute value at attrindex in array winconf.
void readminsize_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Reads a minsize attribute value at attrindex in array winconf.
int readnext_filereader(filereader_t *frd,
/*out*/struct stringstream_t *buffer)
Returns buffer containing the next block of input data.
int readoob_ipsocket(ipsocket_t *ipsock,
size_t maxdata_len,
/*out*/uint8_t data[maxdata_len],
/*out*/size_t *bytes_read,
/*out*/size_t *oob_offset)
Same as read_ipsocket excepts returns additional OOB index.
void readpos_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex,
/*out*/int32_t *x,
/*out*/int32_t *y)
Reads a position attribute value at attrindex in array winconf.
void readsize_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
Reads a size attribute value at attrindex in array winconf.
const char * readtitle_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex)
Reads a title attribute value at attrindex in array winconf.
uint8_t readtransparency_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex)
Reads an alpha value at attrindex in array winconf.
windowconfig_e readtype_windowconfig(const windowconfig_t *winconf,
uint_fast8_t *attrindex)
Reads the attribute type windowconfig_e at attrindex in array winconf.
sysuser_id_t real_sysuser(sysuser_t *sysusr)
Returns sysuser_id_t of the user which started the process.
static splaytree_node_t * recursivesplay_splaytree(splaytree_t *tree,
splaytree_node_t *root,
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.
void redirecterr_processstdio(process_stdio_t *stdfd,
sys_iochannel_t error_file)
Redirects standard error output to given file.
void redirectin_processstdio(process_stdio_t *stdfd,
sys_iochannel_t input_file)
Redirects standard input to given file.
void redirectout_processstdio(process_stdio_t *stdfd,
sys_iochannel_t output_file)
Redirects standard output to given file.
static int redirectstdfd_processstdio2(const process_stdfd2_t *stdfd2,
int stdfd,
int redirectto_file)
Redirects one standard channel to read/write from/to a file.
static int redirectstdio_processstdio2(const process_stdfd2_t *stdfd2)
Redirects all 3 standard io channels to read/write from/to a file.
int registerfd_iopoll(iopoll_t *iopoll,
sys_iochannel_t fd,
const struct ioevent_t *for_event)
Adds file descriptor to Linux epoll object.
int registerfd_iopoll(iopoll_t *iopoll,
sys_iochannel_t fd,
const struct ioevent_t *for_event)
Registers sys_iochannel_t fd and monitors it for ioevent_t.ioevents.
void release_filereader(filereader_t *frd)
Releases the oldest read buffer.
int releasecurrent_eglcontext(struct opengl_display_t *egldisp)
Der Verbindung des Threads mit dem aktuellen Kontextes wird aufgehoben.
int releasecurrent_gcontext(struct display_t *disp)
Der Verbindung des Threads mit dem aktuellen Kontextes wird aufgehoben.
int (*releasepage) (pagecache_t * pgcache, struct memblock_t * page)
Releases a single memory page.
int releasepage_pagecache(const pagecache_t pgcache,
struct memblock_t *page)
Calls pgcache->iimpl->releasepage with pgcache->object as first parameter.
int releasepage_pagecacheimpl(pagecache_impl_t *pgcache,
struct memblock_t *page)
Releases a single memory page.
int remainingtime_systimer(systimer_t timer,
struct timevalue_t *remaining_time)
Returns the remaining time until the timer expires the next time.
int remoteaddr_ipsocket(const ipsocket_t *ipsock,
struct ipaddr_t *remoteaddr)
Returns remote ip address of peer in remoteaddr.
int remove_arraysf(arraysf_t *array,
size_t pos,
/*out*/struct arraysf_node_t **removed_node)
Removes node at position pos.
int remove_arraystf(arraystf_t *array,
size_t size,
const uint8_t keydata[size],
/*out*/struct arraystf_node_t **removed_node)
Removes node with key keydata.
int remove_dlist(dlist_t *list,
struct dlist_node_t *node)
Removes the node from the list.
int remove_exthash(exthash_t *htable,
exthash_node_t *node)
Removes a node from the hash table.
int remove_file(const char *filepath,
struct directory_t *relative_to)
Removes created file from filesystem.
int remove_patriciatrie(patriciatrie_t *tree,
size_t keylength,
const uint8_t searchkey[keylength],
patriciatrie_node_t **removed_node)
Removes a node if its key equals searchkey.
int remove_redblacktree(redblacktree_t *tree,
redblacktree_node_t *node)
Removes a node from the tree.
int remove_splaytree(splaytree_t *tree,
splaytree_node_t *node,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Removes a node from the tree.
int remove_syncqueue(syncqueue_t *syncqueue,
IDNAME *elem,
void (*initmove_elem)(IDNAME * dest, IDNAME * src))
Removes elem of type IDNAME from the queue by overwriting it with the last.
int remove_syncwlist(syncwlist_t *wlist,
struct syncqueue_t *queue,
/*out*/struct syncevent_t *removedevent)
Removes the first node in wlist.
int remove_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
/*out*/void **uservalue)
TODO: describe
int remove2_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
/*out*/void **uservalue,
bool islog)
TODO: describe
int removeafter_slist(slist_t *list,
struct slist_node_t *prev_node,
struct slist_node_t **removed_node)
Removes the next node coming after prev_node from the list.
int removeall_dlist(dlist_t *list,  
uint16_t nodeoffset,  
struct typeadapt_t *typeadp/*0 = >no free called*/)
Removes all nodes from the list.
int removeall_slist(slist_t *list,  
uint16_t nodeoffset,  
struct typeadapt_t *typeadp/*0 = >no free called*/)
Removes all nodes from the list.
int removedirectory_directory(directory_t *dir/*0 = > current working directory*/,
const char *directory_path  )
Removes the empty directory with directory_path relative to dir.
int removeempty_syncwlist(syncwlist_t *wlist,
struct syncqueue_t *queue)
Removes the last node if its syncevent_t has not waiting thread.
int removefile_directory(directory_t *dir/*0 = > current working directory*/,
const char *file_path  )
Removes the file with file_path relative to dir.
int removefirst_dlist(dlist_t *list,
struct dlist_node_t **removed_node)
Removes the first node from the list.
int removefirst_queue(queue_t *queue,
uint16_t nodesize)
Removes nodesize bytes from the first memory page.
int removefirst_slist(slist_t *list,
struct slist_node_t **removed_node)
Removes the first element from list.
int removefirst_syncqueue(syncqueue_t *syncqueue,
uint16_t elemsize)
Removes an element from the queue by freeing syncqueue memory.
int removelast_dlist(dlist_t *list,
struct dlist_node_t **removed_node)
Removes the last node from the list.
int removelast_queue(queue_t *queue,
uint16_t nodesize)
Removes nodesize bytes from the last memory page.
int removelast_syncqueue(syncqueue_t *syncqueue,
uint16_t elemsize)
Removes an element from the queue by freeing syncqueue memory.
int removenodes_exthash(exthash_t *htable)
Removes all nodes from the hash table.
int removenodes_patriciatrie(patriciatrie_t *tree)
Removes all nodes from the tree.
int removenodes_redblacktree(redblacktree_t *tree)
Removes all nodes from the tree.
int removenodes_splaytree(splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Removes all nodes from the tree.
int removeobject_x11display(x11display_t *x11disp,
uint32_t objectid)
Removes objectid and its associated pointer from the registration.
void removetrailingzero_bigint(bigint_t *big)
Removes all trailing digits which are 0.
static int replacechild_suffixtree(suffixtree_t *tree,
suffixtree_node_t *parent,
suffixtree_node_t * const old_child,
suffixtree_node_t * const new_child)
Replaces old_child of parent with new_child.
void replacenode_dlist(dlist_t *list,
struct dlist_node_t *newnode,
struct dlist_node_t *oldnode)
Removes oldnode from list and replaces it with newnode.
int replaceobject_x11display(x11display_t *x11disp,
struct x11window_t *object,
uint32_t objectid)
Replaces the object for an already registered objectid.
int reset_locale(void)
Sets the locale of all subsystems to default.
Calls C99 conforming function »setlocale«.
int resetmsg_locale(void)
Sets the locale of system messages subsystem to default.
void resetthreadid_threadcontext(void)
Resets the the thread id.
int resize_cstring(cstring_t *cstr,
size_t new_size)
Allocates memory and sets size to new_size.
int resize_window(window_t *win,
uint32_t width,
uint32_t height)
Changes the size of the window.
int resize_x11window(x11window_t *x11win,
uint32_t width,
uint32_t height)
Changes the size of the window.
int resizelast_queue(queue_t *queue,
/*out*/void **nodeaddr,
uint16_t oldsize,
uint16_t newsize)
Removes oldsize bytes from the last memory page and add newsize bytes.
int resolution_sysclock(sysclock_e clock_type,
/*out*/struct timevalue_t *resolution)
Returns the timer resolution of the underlying clock.
void resume_thread(thread_t *threadobj)
The thread which is refered by threadobj is woken up.
int retcode_syncrun(const syncrun_t *srun)
Returns return code of an exited syncthread_t.
int returncode_thread(const thread_t *threadobj)
Returns the returncode of the joined thread.
unsigned reversebits_int(unsigned i)
Reverses the bits of an integer.
int run_linuxsplice_speedtest(int argc,
const char **argv)
Compares runtime of simple threaded TCP server write/client read versus server splice/client splice.
int run_madvise_speedtest(int argc,
const char **argv)
Compares speed between reading with mmap and reading with mmap + madvise.
int run_unittest(void *argv)
Calls every registered unittest of the C-kern(el) system.
int runall_syncrun(syncrun_t *srun)
Runs all syncthread_t stored in internal queues.
Close