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