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