An integer type big enough to hold a pointer to a function.
typedef uintptr_t uintptrf_t
Exports ioevent_id_t.
typedef union ioevent_id_t ioevent_id_t
Test allocation and free works.
int unittest_cache_objectcacheimpl( void )
Test allocation and free works.
int unittest_cache_valuecache( void )
Test errorcontext_t functionality.
int unittest_context_errorcontext( void )
Test assignment of errornr_e.
int unittest_context_errornr( void )
Test iobj_t functionality.
int unittest_context_iobj( void )
Test initialization process succeeds and global variables are set correctly.
int unittest_context_maincontext( void )
Test module_t functionality.
int unittest_context_module( void )
Test initialization context of whole process succeeds.
int unittest_context_processcontext( void )
Test interface of threadcontext_t.
int unittest_context_threadcontext( void )
Unittest for arraysf_t.
int unittest_ds_inmem_arraysf( void )
Unittest for arraystf_t.
int unittest_ds_inmem_arraystf( void )
Test binarystack_t functionality.
int unittest_ds_inmem_binarystack( void )
Test blockarray_t functionality.
int unittest_ds_inmem_blockarray( void )
Test dlist_t functionality.
int unittest_ds_inmem_dlist( void )
Test exthash_t functionality.
int unittest_ds_inmem_exthash( void )
Tests implementation of patriciatrie_t.
int unittest_ds_inmem_patriciatrie( void )
Test queue_t functionality.
int unittest_ds_inmem_queue( void )
Test implementation of redblacktree_t.
int unittest_ds_inmem_redblacktree( void )
Test slist_t functionality.
int unittest_ds_inmem_slist( void )
Tests all functions of splaytree_t.
int unittest_ds_inmem_splaytree( void )
Test suffix tree with content if a C-source file.
int unittest_ds_inmem_suffixtree( void )
Test trie_t functionality.
int unittest_ds_inmem_trie( void )
Test typeadapt_t functionality.
int unittest_ds_typeadapt( void )
Test typeadapt_comparator_it functionality.
int unittest_ds_typeadapt_comparator( void )
Test typeadapt_gethash_it functionality.
int unittest_ds_typeadapt_gethash( void )
Test typeadapt_getkey_it functionality.
int unittest_ds_typeadapt_getkey( void )
Test typeadapt_lifetime_it functionality.
int unittest_ds_typeadapt_lifetime( void )
Test typeadapt_nodeoffset_t functionality.
int unittest_ds_typeadapt_nodeoffset( void )
Test typeadapt_impl_t functionality.
int unittest_ds_typeadapt_typeadaptimpl( void )
Test display_t functionality.
int unittest_graphic_display( void )
Test gconfig_t functionality.
int unittest_graphic_gconfig( void )
Test gcontext_t functionality.
int unittest_graphic_gcontext( void )
Test pixelbuffer_t functionality.
int unittest_graphic_pixelbuffer( void )
Test surface_t functionality.
int unittest_graphic_surface( void )
Test window_t functionality.
int unittest_graphic_window( void )
Test windowconfig_t functionality.
int unittest_graphic_windowconfig( void )
Test reading and writing content from and to directories.
int unittest_io_directory( void )
Unittest for file interface.
int unittest_io_file( void )
Test filepath_static_t functionality.
int unittest_io_filepath( void )
Test additional functionality implemented for file_t.
int unittest_io_fileutil( void )
Tests implementation of iocallback_t .
int unittest_io_iocallback( void )
Test iochannel_t functionality.
int unittest_io_iochannel( void )
Test iopoll_t functionality.
int unittest_io_iopoll( void )
Unittest for resolving dns names into ip addresses.
int unittest_io_ipaddr( void )
Unittest client/server tcp/udp communications.
int unittest_io_ipsocket( void )
Test mapping of file into memory.
int unittest_io_mmfile( void )
Test csvfilereader_t functionality.
int unittest_io_reader_csvfilereader( void )
Test filereader_t functionality.
int unittest_io_reader_filereader( void )
Test utf8reader_t.
int unittest_io_reader_utf8reader( void )
Test utf8scanner_t functionality.
int unittest_io_reader_utf8scanner( void )
Unittest for parsing URLs from strings.
int unittest_io_url( void )
Test logbuffer_t functionality.
int unittest_io_writer_log_logbuffer( void )
Tests static log service g_logmain_interface.
int unittest_io_writer_log_logmain( void )
Tests initthread_logwriter and functionality of logwriter_t.
int unittest_io_writer_log_logwriter( void )
Test interface of decimal_t.
int unittest_math_float_decimal( void )
Tests configuration interface of floating point unit.
int unittest_math_fpu( void )
Test crc32_t functionality.
int unittest_math_hash_crc32( void )
Test sha1_hash_t.
int unittest_math_hash_sha1( void )
Tests int_t.abs_int32 and int_t.abs_int64.
int unittest_math_int_abs( void )
Test functionality of atomic operations.
int unittest_math_int_atomic( void )
Tests interface of bigint_t.
int unittest_math_int_biginteger( void )
Test function int_t.reversebits_int.
int unittest_math_int_bitorder( void )
Test int_t functionality.
int unittest_math_int_byteorder( void )
Tests implementation of log10_int.
int unittest_math_int_log10( void )
Tests log2_int.
int unittest_math_int_log2( void )
Tests ispowerof2_int and makepowerof2_int.
int unittest_math_int_power2( void )
Tests implementation of sign_int.
int unittest_math_int_sign( void )
Tests implementation of sqroot_int.
int unittest_math_int_sqroot( void )
Test hwcache_t functionality.
int unittest_memory_hwcache( void )
Test memstream_t functionality.
int unittest_memory_memstream( void )
Test mm_it functionality.
int unittest_memory_mm_mm( void )
Test default memory manager mm_impl_t.
int unittest_memory_mm_mmimpl( void )
Test functionality of pagecache_t and pagecache_it.
int unittest_memory_pagecache( void )
Test pagecache_t functionality.
int unittest_memory_pagecache_macros( void )
Test pagecache_impl_t functionality.
int unittest_memory_pagecacheimpl( void )
Test ptr_t and ptrf_t functionality.
int unittest_memory_ptr( void )
Test object wbuffer_t.
int unittest_memory_wbuffer( void )
Test init_platform functionality.
int unittest_platform_init( void )
Tests all locale functions.
int unittest_platform_locale( void )
Unittest for query usage of malloc resources.
int unittest_platform_malloc( void )
Test egl_t functionality.
int unittest_platform_opengl_egl_egl( void )
Test eglconfig_t functionality.
int unittest_platform_opengl_egl_eglconfig( void )
Test eglcontext_t functionality.
int unittest_platform_opengl_egl_eglcontext( void )
Test egldisplay_t functionality.
int unittest_platform_opengl_egl_egldisplay( void )
Test eglpbuffer_t functionality.
int unittest_platform_opengl_egl_eglpbuffer( void )
Test eglwindow_t functionality.
int unittest_platform_opengl_egl_eglwindow( void )
Tests system thread functionality.
int unittest_platform_sync_mutex( void )
Test rwlock_t functionality.
int unittest_platform_sync_rwlock( void )
Tests system semaphore functionality.
int unittest_platform_sync_semaphore( void )
Tests posix signals functionality.
int unittest_platform_sync_signal( void )
Test thrmutex_t functionality.
int unittest_platform_sync_thrmutex( void )
Tests waitlist functionality.
int unittest_platform_sync_waitlist( void )
Test sysuser_t functionality.
int unittest_platform_sysuser( void )
Unittest for pagecache module.
int unittest_platform_task_process( void )
Tests thread_t interface.
int unittest_platform_task_thread( void )
Test thread_tls_t functionality.
int unittest_platform_task_thread_tls( void )
Unittest for virtual memory module.
int unittest_platform_vm( void )
Test initialization process succeeds.
int unittest_platform_X11( void )
Test x11dblbuffer_t functionality.
int unittest_platform_X11_x11dblbuffer( void )
Tests connection to local X11 display.
int unittest_platform_X11_x11display( void )
Test x11drawable_t functionality.
int unittest_platform_X11_x11drawable( void )
Test x11screen_t functionality.
int unittest_platform_X11_x11screen( void )
Test x11videomode_t functionality.
int unittest_platform_X11_x11videomode( void )
Test x11window_t functionality.
int unittest_platform_X11_x11window( void )
Test escapechar_string.
int unittest_string( void )
Test encoding/decoding of strings.
int unittest_string_base64encode( void )
Tests convert_wchar_t.
extern int unittest_string_convertwchar( void )
Tests cstring_t.
int unittest_string_cstring( void )
Tests formatted output to string_t.
int unittest_string_format( void )
Test splitstring_t functionality.
int unittest_string_splitstring( void )
Test stringstream_t functionality.
int unittest_string_stringstream( void )
Test textpos_t functionality.
int unittest_string_textpos( void )
Test url encoding/decoding of strings.
int unittest_string_urlencode( void )
Test escape_char.
int unittest_string_utf8( void )
struct unittest_t
Test syncqueue_t functionality.
int unittest_task_syncqueue( void )
Test syncrun_t functionality.
int unittest_task_syncrun( void )
Test syncthread_t functionality.
int unittest_task_syncthread( void )
Test syncwait_t functionality.
int unittest_task_syncwait( void )
Test syncwlist_t functionality.
int unittest_task_syncwlist( void )
Unittest for test_errortimer_t.
int unittest_test_errortimer( void )
Test test_t functionality.
int unittest_test_mm_mm_test( void )
int unittest_test_mm_testmm( void )
Unittest for query usage & releasing all resources.
int unittest_test_resourceusage( void )
Unittest for TEST macro and log functions.
int unittest_test_unittest( void )
Unittest for clock functions.
int unittest_time_sysclock( void )
Unittest for systimer_t.
int unittest_time_systimer( void )
See objectcache_impl_t.unlockiobuffer_objectcacheimpl for an implementation.
void ( * unlock_iobuffer ) (struct objectcache_t * cache, struct memblock_t ** iobuffer)
Implement mutex_t.unlock_mutex as a no op if !defined(KONFIG_SUBSYS_THREAD)
#define unlock_mutex( mutex ) (0)
Unlocks a previously locked mutex.
int unlock_mutex( mutex_t * mutex )
Unlocks the mutex.
int unlock_thrmutex( thrmutex_t * mutex )
Clear rwlock->lockflag.
static inline void unlockflag_rwlock( rwlock_t * rwlock )
Implements thread_t.unlockflag_thread.
#define unlockflag_thread( thread ) (atomicclear_int(&(thread)->lockflag))
Clear thread->lockflag (lockflag).
void unlockflag_thread( thread_t * thread )
clears mutex->lockflag.
static inline void unlockflag_thrmutex( thrmutex_t * mutex )
Clear wlist->lockflag.
static inline void unlockflag_waitlist( waitlist_t * wlist )
Unlocks the locked io buffer and sets the pointer to NULL.
#define UNLOCKIOBUFFER_OBJECTCACHE( iobuffer ) (objectcache_maincontext().iimpl->unlock_iobuffer(objectcache_maincontext().object, (iobuffer)))
Unlocks the locked io buffer and sets the pointer to NULL.
void unlockiobuffer_objectcacheimpl( objectcache_impl_t * objectcache, struct memblock_t ** iobuffer )
Acquire exitlock, decrement nrofreader and return.
int unlockreader_rwlock( rwlock_t * rwlock )
Sets writer to 0 and unlocks entrylock.
int unlockwriter_rwlock( rwlock_t * rwlock )
The last buffer returned by readnext_filereader is marked as unread.
void unread_filereader( filereader_t * frd )
Implements utf8reader_t.unread_utf8reader.
#define unread_utf8reader( utfread ) ((utfread)->next)
Returns a pointer to the buffer beginning with the next unread character.
const uint8_t * unread_utf8reader( const utf8reader_t * utfread )
Decrements the reading position until the last nrofchars characters are unread.
int unread_utf8scanner( utf8scanner_t * scan, struct filereader_t * frd, uint8_t nrofchars )
The size of buffered data for which readnext_filereader is not called.
size_t unreadsize
Implements utf8reader_t.unreadsize_utf8reader.
#define unreadsize_utf8reader( utfread ) ((size_t)((utfread)->end - (utfread)->next))
Returns the size of the buffer containing all unread characters.
size_t unreadsize_utf8reader( utf8reader_t * utfread )
Unregisters sys_iochannel_t fd.
int unregisterfd_iopoll( iopoll_t * iopoll, sys_iochannel_t fd )
Makes a shared bucket unshared.
static int unsharebucket_exthash( exthash_t * htable, size_t tabidx )
Udates the CRC-32 checksum with the next chunk of data.
void update_crc32( crc32_t * crc, size_t blocksize, const void * datablock/*[blocksize]*/ )
Implements calculating hash of 1 512 bit block.
static void update_sha1hash( sha1_hash_t * sha1, const uint8_t block[64] )
Implements syncwait_t.update_syncwait.
#define update_syncwait( syncwait, _event, _continuelabel ) do { typeof(syncwait) _sw = (syncwait) ; _sw->event = (_event) ; _sw->continuelabel = (_continuelabel) ; _sw->event->waiting = _sw ; } while(0)
Changes event and continuelabel in syncwait_t.
void update_syncwait( syncwait_t * syncwait, syncevent_t * event, void * continuelabel )
Internally used function from update_crc32 and calculate_crc32.
uint32_t update2_crc32( uint32_t crcvalue, size_t blocksize, const void * datablock/*[blocksize]*/ )
Updates event mask/value of sys_iochannel_t registered at Linux epoll object.
int updatefd_iopoll( iopoll_t * iopoll, sys_iochannel_t fd, const struct ioevent_t * updated_event )
Changes ioevent_t for an already registered file descriptor.
int updatefd_iopoll( iopoll_t * iopoll, sys_iochannel_t fd, const struct ioevent_t * updated_event )
Static initializer.
#define url_parts_FREE { string_FREE, string_FREE, string_FREE, string_FREE, string_FREE, string_FREE, string_FREE }
Describes URL which has the common Internet scheme syntax.
struct url_t
Decodes a URL encoded string.
int urldecode_string( const struct string_t * str, uint8_t changefrom_char, uint8_t changeinto_char, /*ret*/struct wbuffer_t * result )
Encodes string str to url encoding.
int urlencode_string( const struct string_t * str, uint8_t except_char, uint8_t changeto_char, /*ret*/struct wbuffer_t * result )
The number of entries in child which are not 0.
uint8_t used
The number of entries in child which are not 0.
uint8_t used
Counts the number of allocated pages in use.
uint16_t usedpagecount
The size of pushed objects stored in this block.
uint32_t usedsize
Returns the number bytes used by pushed objects.
static inline uint32_t usedsize_blockheader( blockheader_t * header )
Implements url_t.user_url.
#define user_url( url ) getpart_url(url, url_part_USER)
Returns username or NULL if undefined.
const char * user_url( const url_t * url )
Start of ptr-aligned data.
void * uservalue
Returns address of uservalue member.
static inline void ** uservalue_trienodeoffsets( const trie_nodeoffsets_t * offsets, trie_nodedata_t * data )
Static initializer.
#define utf8reader_FREE { 0, 0, textpos_FREE, mmfile_FREE }
Extends mmfile_t with text reading capapbilities.
struct utf8reader_t
Static initializer.
#define utf8scanner_FREE { 0, 0, splitstring_FREE }
Handles the data buffers returned from filereader_t and initializes a token of type splitstring_t.
struct utf8scanner_t
Static initializer.
#define utf8validator_INIT { 0, { 0, 0, 0, 0} }
Allows to validate a blocked stream of bytes.
struct utf8validator_t