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
F
 file
 File
 File Linux
 File-Util
 File-Util impl
 file_e
 file_FREE, file_t
 file_STDERR
 file_STDIN
 file_STDOUT
 file_t
 file_usage, resourceusage_t
 fileoffset, filereader_t
 filepath_static_t
 FileReader
 FileReader impl
 filereader_FREE, filereader_t
 filereader_mmfile_t
 filereader_SYS_BUFFER_SIZE, filereader_t
 filereader_t
 Files
api/cache/objectcache.hapi/cache/objectcache_impl.hapi/cache/objectcache_macros.hapi/cache/valuecache.hapi/context/errorcontext.hapi/context/errornr.hapi/context/iobj.hapi/context/module.hapi/context/processcontext.hapi/context/stdmacros.hapi/context/stdtypes.hapi/context/threadcontext.hapi/ds/foreach.hapi/ds/inmem/arraysf.hapi/ds/inmem/arraystf.hapi/ds/inmem/binarystack.hapi/ds/inmem/blockarray.hapi/ds/inmem/dlist.hapi/ds/inmem/exthash.hapi/ds/inmem/node/arraysf_node.hapi/ds/inmem/node/arraystf_node.hapi/ds/inmem/node/dlist_node.hapi/ds/inmem/node/lrptree_node.hapi/ds/inmem/node/lrtree_node.hapi/ds/inmem/node/patriciatrie_node.hapi/ds/inmem/node/slist_node.hapi/ds/inmem/patriciatrie.hapi/ds/inmem/queue.hapi/ds/inmem/redblacktree.hapi/ds/inmem/slist.hapi/ds/inmem/splaytree.hapi/ds/inmem/suffixtree.hapi/ds/inmem/trie.hapi/ds/typeadapt.hapi/ds/typeadapt/comparator.hapi/ds/typeadapt/gethash.hapi/ds/typeadapt/getkey.hapi/ds/typeadapt/lifetime.hapi/ds/typeadapt/nodeoffset.hapi/ds/typeadapt/typeadapt_impl.hapi/err.hapi/graphic/display.hapi/graphic/gconfig.hapi/graphic/gcontext.hapi/graphic/glapi.hapi/graphic/gles2api.hapi/graphic/pixelbuffer.hapi/graphic/surface.hapi/graphic/window.hapi/graphic/windowconfig.hapi/io/accessmode.hapi/io/filesystem/directory.hapi/io/filesystem/file.hapi/io/filesystem/filepath.hapi/io/filesystem/fileutil.hapi/io/filesystem/mmfile.hapi/io/iocallback.hapi/io/iochannel.hapi/io/ioevent.hapi/io/iopoll.hapi/io/ip/ipaddr.hapi/io/ip/ipsocket.hapi/io/reader/csvfilereader.hapi/io/reader/filereader.hapi/io/reader/utf8reader.hapi/io/reader/utf8scanner.hapi/io/url.hapi/io/writer/log/errlog_macros.hapi/io/writer/log/log.hapi/io/writer/log/log_macros.hapi/io/writer/log/logbuffer.hapi/io/writer/log/logmain.hapi/io/writer/log/logwriter.hapi/maincontext.hapi/math/float/decimal.hapi/math/fpu.hapi/math/hash/crc32.hapi/math/hash/sha1.hapi/math/int/abs.hapi/math/int/atomic.hapi/math/int/bigint.hapi/math/int/bitorder.hapi/math/int/byteorder.hapi/math/int/log10.hapi/math/int/log2.hapi/math/int/power2.hapi/math/int/sign.hapi/math/int/sqroot.hapi/memory/hwcache.hapi/memory/memblock.hapi/memory/memstream.hapi/memory/mm/mm.hapi/memory/mm/mm_impl.hapi/memory/mm/mm_macros.hapi/memory/pagecache.hapi/memory/pagecache_impl.hapi/memory/pagecache_macros.hapi/memory/ptr.hapi/memory/vm.hapi/memory/wbuffer.hapi/platform/init.hapi/platform/Linux/graphic/sysegl.hapi/platform/Linux/graphic/sysgl.hapi/platform/Linux/graphic/sysgles2.hapi/platform/Linux/graphic/sysx11.hapi/platform/Linux/syscontext.hapi/platform/Linux/syskonfig.hapi/platform/Linux/sysoptimize.hapi/platform/Linux/systypes.hapi/platform/locale.hapi/platform/malloc.hapi/platform/OpenGL/EGL/egl.hapi/platform/OpenGL/EGL/eglconfig.hapi/platform/OpenGL/EGL/eglcontext.hapi/platform/OpenGL/EGL/egldisplay.hapi/platform/OpenGL/EGL/eglpbuffer.hapi/platform/OpenGL/EGL/eglwindow.hapi/platform/sync/mutex.hapi/platform/sync/rwlock.hapi/platform/sync/semaphore.hapi/platform/sync/signal.hapi/platform/sync/thrmutex.hapi/platform/sync/waitlist.hapi/platform/sysuser.hapi/platform/task/process.hapi/platform/task/thread.hapi/platform/task/thread_tls.hapi/platform/X11/x11.hapi/platform/X11/x11dblbuffer.hapi/platform/X11/x11display.hapi/platform/X11/x11drawable.hapi/platform/X11/x11screen.hapi/platform/X11/x11videomode.hapi/platform/X11/x11window.hapi/string/base64encode_string.hapi/string/convertwchar.hapi/string/cstring.hapi/string/format_string.hapi/string/splitstring.hapi/string/string.hapi/string/stringstream.hapi/string/textpos.hapi/string/urlencode_string.hapi/string/utf8.hapi/task/syncqueue.hapi/task/syncrun.hapi/task/syncthread.hapi/task/syncwait.hapi/task/syncwlist.hapi/test/assert.hapi/test/compiletime.hapi/test/errortimer.hapi/test/mm/err_macros.hapi/test/mm/testmm.hapi/test/resourceusage.hapi/test/run/run_unittest.hapi/test/run/speedtest.hapi/test/unittest.hapi/test/validate.hapi/time/sysclock.hapi/time/systimer.hapi/time/timevalue.hcache/objectcache_impl.ccache/valuecache.ccontext/errorcontext.ccontext/errornr.ccontext/iobj.ccontext/maincontext.ccontext/module.ccontext/processcontext.ccontext/threadcontext.cds/inmem/arraysf.cds/inmem/arraystf.cds/inmem/binarystack.cds/inmem/blockarray.cds/inmem/dlist.cds/inmem/exthash.cds/inmem/patriciatrie.cds/inmem/queue.cds/inmem/redblacktree.cds/inmem/slist.cds/inmem/splaytree.cds/inmem/suffixtree.cds/inmem/trie.cds/typeadapt.cds/typeadapt/comparator.cds/typeadapt/gethash.cds/typeadapt/getkey.cds/typeadapt/lifetime.cds/typeadapt/typeadapt_impl.cgraphic/display.cgraphic/gconfig.cgraphic/gcontext.cgraphic/pixelbuffer.cgraphic/surface.cgraphic/window.cgraphic/windowconfig.cio/filesystem/fileutil.cio/reader/csvfilereader.cio/reader/filereader.cio/reader/utf8reader.cio/reader/utf8scanner.cio/url.cio/writer/errlog.cio/writer/log/logbuffer.cio/writer/log/logmain.cio/writer/log/logwriter.ckonfig.hmain/test/helper/testmodule_helper1.cmain/test/helper/testmodule_helper1.hmain/test/speedtest_main.cmain/test/testchildprocess_main.cmain/test/testmodule_main.cmain/test/unittest_main.cmain/tools/generrtab.cmain/tools/genfile.cmain/tools/genmake.cmain/tools/textdb.cmain/tools/textresource_compiler.cmath/float/decimal.cmath/fpu.cmath/hash/crc32.cmath/int/atomic.cmath/int/bigint.cmath/int/byteorder.cmath/int/log10.cmath/int/sign.cmath/int/sqroot.cmemory/memstream.cmemory/mm/mm_impl.cmemory/pagecache.cmemory/pagecache_impl.cmemory/pagecache_macros.cmemory/ptr.cmemory/wbuffer.cplatform/Linux/init.cplatform/Linux/io/directory.cplatform/Linux/io/file.cplatform/Linux/io/filepath.cplatform/Linux/io/iochannel.cplatform/Linux/io/iopoll.cplatform/Linux/io/ipaddr.cplatform/Linux/io/ipsocket.cplatform/Linux/io/mmfile.cplatform/Linux/locale.cplatform/Linux/malloc.cplatform/Linux/sync/mutex.cplatform/Linux/sync/rwlock.cplatform/Linux/sync/semaphore.cplatform/Linux/sync/signal.cplatform/Linux/sync/thrmutex.cplatform/Linux/sync/waitlist.cplatform/Linux/sysuser.cplatform/Linux/task/process.cplatform/Linux/task/thread.cplatform/Linux/task/thread_tls.cplatform/Linux/time/sysclock.cplatform/Linux/time/systimer.cplatform/Linux/vm.cplatform/OpenGL/EGL/egl.cplatform/OpenGL/EGL/eglconfig.cplatform/OpenGL/EGL/eglcontext.cplatform/OpenGL/EGL/egldisplay.cplatform/OpenGL/EGL/eglpbuffer.cplatform/OpenGL/EGL/eglwindow.cplatform/X11/x11.cplatform/X11/x11dblbuffer.cplatform/X11/x11display.cplatform/X11/x11drawable.cplatform/X11/x11screen.cplatform/X11/x11videomode.cplatform/X11/x11window.cstring/base64encode_string.cstring/format_string.cstring/splitstring.cstring/string.cstring/stringstream.cstring/urlencode_string.cstring/utf8.ctask/syncqueue.ctask/syncrun.ctask/syncthread.ctask/syncwait.ctask/syncwlist.ctest/compiletime/konfig_value.htest/compiletime/stdtypes.htest/compiletime/system.htest/mm/err_macros.ctest/mm/testmm.ctest/run/run_unittest.ctest/unittest.c
 filesize, filereader_t
 Filesize-64bit Test
 filesize_directory, directory_t
 Filesystem-Path
 Filesystem-Path impl
 filetype_e
 fill, memblock_t
 find-utf8
 find_exthash, exthash_t
 find_patriciatrie, patriciatrie_t
 find_redblacktree, redblacktree_t
 find_splaytree, splaytree_t
 findbyte_string
 findbyte_stringstream
 findfreeblock_pagecacheimpl
 findnode_trie, trie_node_t
 findstring_suffixtree
 findutf8_stringstream, stringstream_t
 first, ipaddr_list_t
 first_array, vm_mappedregions_t
 first_different_bit
 first_dlist
 first_queue
 first_slist
 first18digits_decimal, decimal_t
 first9digits_decimal, decimal_t
 firstdigit_bigint
 flags, x11window_t
 flags_x11window
 FloatingPointUnit
 FloatingPointUnit impl
 flush_logwriterchan, logwriter_chan_t
 flushbuffer, log_it
 FLUSHBUFFER_LOG
 flushbuffer_logwriter, logwriter_t
 foreach
 Foreach-Iterator
 foreach-support
 foreachReverse
 fork_process
 format
 Format
 format_floatdouble_stringfield
 format_i32_stringfield
 format_i64_stringfield
 format_string, string_t
 format_string_stringfield
 FormatString
 FormatString impl
 fpu_except_e
 fpuexcept
 fragment_url
 frame_x11window, x11window_t
 free objects
 free_arraysfiterator, arraysf_iterator_t
 free_arraystfiterator, arraystf_iterator_t
 free_binarystack, binarystack_t
 free_blockarray, blockarray_t
 free_convertwchar
 free_cstring, cstring_t
 free_csvfilereader, csvfilereader_t
 free_display, display_t
 free_dlist, dlist_t
 free_dlistiterator
 free_eglconfig
 free_eglcontext, eglcontext_t
 free_egldisplay, egldisplay_t
 free_eglpbuffer, eglpbuffer_t
 free_eglwindow, eglwindow_t
 FREE_ERR_MM
 free_errorcontext, errorcontext_t
 free_exthash, exthash_t
 free_exthashiterator
 free_file, file_t
 free_filereader, filereader_t
 free_gconfig
 free_gcontext, gcontext_t
 FREE_GLWINDOW
 free_iobj
 free_iochannel, iochannel_t
 free_iopoll
 free_ipsocket, ipsocket_t
 free_ipsocketasync, ipsocket_async_t
 free_logbuffer, logbuffer_t
 free_logwriter, logwriter_t
 free_maincontext, maincontext_t
 FREE_MM
 free_mmfile, mmfile_t
 free_mmimpl, mm_impl_t
 free_module, module_t
 free_mutex
 free_objectcacheimpl, objectcache_impl_t
 FREE_OPENGL
 FREE_OSDISPLAY
 FREE_OSWINDOW
 free_pagecacheblock
 free_pagecacheblockmap, pagecache_blockmap_t
 free_pagecacheimpl, pagecache_impl_t
 free_patriciatrie, patriciatrie_t
 free_patriciatrieiterator
 free_patriciatrieprefixiter
 free_pixelbuffer, pixelbuffer_t
 free_process, process_t
 free_processcontext, processcontext_t
 free_processstdio2
 free_queue, queue_t
 free_queueiterator
 free_redblacktree, redblacktree_t
 free_redblacktreeiterator
 free_resourceusage, resourceusage_t
 free_rwlock, rwlock_t
 free_semaphore, semaphore_t
 free_signalwait
 free_slist, slist_t
 free_slistiterator
 free_splaytree, splaytree_t
 free_splaytreeiterator
 free_splitstring
 free_string
 free_stringstream
 free_suffixtree, suffixtree_t
 free_syncqueue, syncqueue_t
 free_syncrun, syncrun_t
 free_syncthread
 free_syncwlist, syncwlist_t
 free_syncwlistiterator
 free_systimer, systimer_t
 free_sysuser
 free_testerrortimer
 free_testmm, testmm_t
 free_textpos
 free_textresourcereader, textresource_reader_t
 free_threadcontext, threadcontext_t
 free_threadtls, thread_tls_t
 free_thrmutex, thrmutex_t
 free_trie, trie_t
 free_typeadaptimpl, typeadapt_impl_t
 free_utf8reader
 free_utf8scanner, utf8scanner_t
 free_utf8validator
 free_valuecache, valuecache_t
 free_vmmappedregions, vm_mappedregions_t
 free_vmpage, vmpage_t
 free_waitlist, waitlist_t
 free_window, window_t
 free_x11dblbuffer, x11dblbuffer_t
 free_x11display, x11display_t
 free_x11videomodeiterator, x11videomode_iterator_t
 free_x11window, x11window_t
 freeasmm_testmm, testmm_t
 freeblock_pagecacheimpl
 freeblocksize, binarystack_t
 freebuffer_logwriter
 freehelperX_processcontext
 freehelperX_threadcontext
 FREEIOBJ
 freelist, pagecache_impl_t
 freelistidx, pagecache_block_t
 freemain_threadtls, thread_tls_t
 freenode_suffixtreeiteratoradapter, suffixtreeiterator_adapter_it
 FREEOBJECT
 freeonce_errorcontext
 freeonce_locale
 freeonce_signalhandler
 freeonce_X11
 freepage_t
 freepageblock_pagecacheblock
 freepagelist, pagecache_block_t
 freesingleton_unittest, unittest_t
 freesize_blockheader, blockheader_t
 freestatic, pagecache_it
 freestatic_maincontext, maincontext_t
 freestatic_pagecache
 FREESTATIC_PAGECACHE
 freestatic_pagecacheimpl, pagecache_impl_t
 freethread_pagecacheimpl, pagecache_impl_t
 FROMTYPEcast_TYPE
 ftBlockDevice
 ftCharacterDevice
 ftDirectory
 ftNamedPipe
 ftRegularFile
 ftSocket
 ftSymbolicLink
 ftUnknown
 Function
 Function initializing an object
 function-declaration
 functions
 Functions
Global
api/cache/objectcache_impl.hapi/cache/objectcache_macros.hapi/cache/valuecache.hapi/context/errorcontext.hapi/context/errornr.hapi/context/iobj.hapi/context/module.hapi/context/processcontext.hapi/context/threadcontext.hapi/ds/foreach.hapi/ds/inmem/arraysf.hapi/ds/inmem/arraystf.hapi/ds/inmem/binarystack.hapi/ds/inmem/blockarray.hapi/ds/inmem/dlist.hapi/ds/inmem/exthash.hapi/ds/inmem/patriciatrie.hapi/ds/inmem/queue.hapi/ds/inmem/redblacktree.hapi/ds/inmem/slist.hapi/ds/inmem/splaytree.hapi/ds/inmem/suffixtree.hapi/ds/inmem/trie.hapi/ds/typeadapt.hapi/ds/typeadapt/comparator.hapi/ds/typeadapt/gethash.hapi/ds/typeadapt/getkey.hapi/ds/typeadapt/lifetime.hapi/ds/typeadapt/nodeoffset.hapi/ds/typeadapt/typeadapt_impl.hapi/graphic/display.hapi/graphic/gconfig.hapi/graphic/gcontext.hapi/graphic/pixelbuffer.hapi/graphic/surface.hapi/graphic/window.hapi/graphic/windowconfig.hapi/io/filesystem/directory.hapi/io/filesystem/file.hapi/io/filesystem/filepath.hapi/io/filesystem/fileutil.hapi/io/filesystem/mmfile.hapi/io/iocallback.hapi/io/iochannel.hapi/io/iopoll.hapi/io/ip/ipaddr.hapi/io/ip/ipsocket.hapi/io/reader/csvfilereader.hapi/io/reader/filereader.hapi/io/reader/utf8reader.hapi/io/reader/utf8scanner.hapi/io/url.hapi/io/writer/log/errlog_macros.hapi/io/writer/log/log_macros.hapi/io/writer/log/logbuffer.hapi/io/writer/log/logmain.hapi/io/writer/log/logwriter.hapi/maincontext.hapi/math/float/decimal.hapi/math/fpu.hapi/math/hash/crc32.hapi/math/hash/sha1.hapi/math/int/abs.hapi/math/int/atomic.hapi/math/int/bigint.hapi/math/int/bitorder.hapi/math/int/byteorder.hapi/math/int/log10.hapi/math/int/log2.hapi/math/int/power2.hapi/math/int/sign.hapi/math/int/sqroot.hapi/memory/hwcache.hapi/memory/memblock.hapi/memory/memstream.hapi/memory/mm/mm.hapi/memory/mm/mm_impl.hapi/memory/mm/mm_macros.hapi/memory/pagecache.hapi/memory/pagecache_impl.hapi/memory/pagecache_macros.hapi/memory/ptr.hapi/memory/vm.hapi/memory/wbuffer.hapi/platform/init.hapi/platform/locale.hapi/platform/malloc.hapi/platform/OpenGL/EGL/egl.hapi/platform/OpenGL/EGL/eglconfig.hapi/platform/OpenGL/EGL/eglcontext.hapi/platform/OpenGL/EGL/egldisplay.hapi/platform/OpenGL/EGL/eglpbuffer.hapi/platform/OpenGL/EGL/eglwindow.hapi/platform/sync/mutex.hapi/platform/sync/rwlock.hapi/platform/sync/semaphore.hapi/platform/sync/signal.hapi/platform/sync/thrmutex.hapi/platform/sync/waitlist.hapi/platform/sysuser.hapi/platform/task/process.hapi/platform/task/thread.hapi/platform/task/thread_tls.hapi/platform/X11/x11.hapi/platform/X11/x11dblbuffer.hapi/platform/X11/x11display.hapi/platform/X11/x11drawable.hapi/platform/X11/x11screen.hapi/platform/X11/x11videomode.hapi/platform/X11/x11window.hapi/string/base64encode_string.hapi/string/convertwchar.hapi/string/cstring.hapi/string/format_string.hapi/string/splitstring.hapi/string/string.hapi/string/stringstream.hapi/string/textpos.hapi/string/urlencode_string.hapi/string/utf8.hapi/task/syncqueue.hapi/task/syncrun.hapi/task/syncthread.hapi/task/syncwait.hapi/task/syncwlist.hapi/test/assert.hapi/test/errortimer.hapi/test/mm/err_macros.hapi/test/mm/testmm.hapi/test/resourceusage.hapi/test/run/speedtest.hapi/test/unittest.hapi/time/sysclock.hapi/time/systimer.hds/inmem/patriciatrie.cds/inmem/redblacktree.cds/inmem/trie.cgraphic/display.cgraphic/gconfig.cgraphic/gcontext.cgraphic/pixelbuffer.cgraphic/surface.cgraphic/window.cgraphic/windowconfig.cio/filesystem/fileutil.cmain/test/helper/testmodule_helper1.cmemory/ptr.cplatform/Linux/init.cplatform/Linux/io/ipaddr.cplatform/Linux/vm.cplatform/OpenGL/EGL/eglcontext.cplatform/OpenGL/EGL/egldisplay.cplatform/OpenGL/EGL/eglpbuffer.cplatform/OpenGL/EGL/eglwindow.cplatform/X11/x11.cplatform/X11/x11window.ctest/mm/err_macros.c
arraystf_keyval_tcsvfilereader_parsestate_tsuffixtreeiterator_adapter_ittestmm_block_tthread_tls_twlistentry_t
 Functions\n\n\
mmfile_t file
The read file content mapped to memory.
sys_iochannel_t file
The file from which is read.
Offers an interface to handle system files.
Implements File on Linux.
Defines additional functions like load_file and save_file.
Implements File-Util.
Standard files which are usually open at process start by convention.
#define file_FREE sys_iochannel_FREE
Static initializer.
The file descriptor value of the standard error (output) channel.
The file descriptor value of the standard input channel.
The file descriptor value of the standard output channel.
typedef sys_iochannel_t file_t
Export file_t, alias for sys_iochannel_t.
size_t file_usage
Number of open files.
off_t fileoffset
Offset into file where the next read operation begins.
struct filepath_static_t
Allocates static memory for a working directory and filename combination.
Offers a simple interface for reading and buffering the content of a file.
Implements FileReader.
#define filereader_FREE { 0, 0, 0, 0, 0, 0, sys_iochannel_FREE, { {0, 0}, {0, 0} } }
Static initializer.
typedef typeof(((filereader_t*)0)->mmfile[0]) filereader_mmfile_t
Names type filereader_t.mmfile.
#define filereader_SYS_BUFFER_SIZE (4*4096)
The sum of the size the two allocated buffers.
struct filereader_t
Reads file data into internal memory buffers.
off_t filesize
The size of the io-stream file refers to.
Test (in os specific manner) system supports 64 bit file size.
int filesize_directory(const directory_t *dir/*0 = > current working directory*/,
const char *file_path,  
/*out*/off_t *file_size  )
Returns the filesize of a file with path »file_path«.
Offers helper objects to print the file system path of a file or directory object.
Implements Filesystem-Path.
Encodes the type of the file the filename refers to.
int find_exthash(exthash_t *htable,
const void *key,
/*out*/exthash_node_t **found_node)
Searches for a node with equal key.
int find_patriciatrie(patriciatrie_t *tree,
size_t keylength,
const uint8_t searchkey[keylength],
/*out*/patriciatrie_node_t **found_node)
Searches for a node with equal key.
int find_redblacktree(redblacktree_t *tree,
const void *key,
/*out*/redblacktree_node_t **found_node)
Searches for a node with equal key.
int find_splaytree(splaytree_t *tree,
const void *key,
/*out*/splaytree_node_t **found_node,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Searches for a node with equal key.
Implements string_t.findbyte_string.
const uint8_t * findbyte_string(const string_t *str,
uint8_t byte)
Finds byte in string.
#define findbyte_stringstream(
   strstream,
   byte
) ( __extension__({ typeof(strstream) _strstream = (strstream) ; memchr(next_stringstream(_strstream), (uint8_t)(byte), size_stringstream(_strstream)) ; }))
Implements stringstream_t.findbyte_stringstream.
const uint8_t * findbyte_stringstream(const struct string_t *strstream,
uint8_t byte)
Finds byte in string stream.
static inline int findfreeblock_pagecacheimpl(pagecache_impl_t *pgcache,
pagesize_e pgsize,
pagecache_block_t **freeblock)
Find empty pageblock_block_t on freelist and return it in freeblock.
static int findnode_trie(trie_t *trie,
uint16_t keylen,
const uint8_t key[keylen],
/*out*/trie_findresult_t *result)
Finds node in trie who matches the given key fully or partially.
Searches the node matching searchstring beginning from root.
const uint8_t * findutf8_stringstream(const struct stringstream_t *strstream,
char32_t uchar)
Searches for unicode character in utf8 encoded stringstream.
struct addrinfo * first
Points to start of list.
vm_regionsarray_t * first_array
Points to first array of vm_region_t.
Determines the first bit which differs in key1 and key2.
#define first_dlist(
   list
) ((list)->last ? (list)->last->next : (struct dlist_node_t*)0)
Implements dlist_t.first_dlist.
struct dlist_node_t * first_dlist(dlist_t *list)
Returns the first element in the list.
#define first_queue(
   queue,
   nodesize
) ( __extension__ ({ typeof(queue) _qu = (queue) ; uint16_t _ns = (nodesize) ; void * _node = 0 ; queue_page_t * _first ; if (_qu->last) { _first = (queue_page_t*) ((queue_page_t*)_qu->last)->next ; if ((_first->end_offset - _first->start_offset) >= _ns) { _node = (uint8_t*)_first + _first->start_offset ; } } _node ; }))
Implements queue_t.first_queue.
void * first_queue(const queue_t *queue,
uint16_t nodesize)
Returns the first element or 0.
#define first_slist(list) ((list)->last ? next_slist((list)->last) : 0)
Implements slist_t.first_slist.
struct slist_node_t * first_slist(const slist_t *list)
Returns the first element in the list.
int64_t first18digits_decimal(decimal_t *dec,
int32_t *decimal_exponent)
Returns the 18 most significant decimal digits with correct sign.
int32_t first9digits_decimal(decimal_t *dec,
int32_t *decimal_exponent)
Returns the 9 most significant decimal digits with correct sign.
#define firstdigit_bigint(
   big
) ((big)->sign_and_used_digits ? big->digits[nrdigits_bigint(big)-1] : 0)
Implements bigint_t.firstdigit_bigint.
uint32_t firstdigit_bigint(const bigint_t *big)
Returns most significant digit of the number.
uint8_t flags
Additional flags inidicating ownership of system objects.
#define flags_x11window(x11win) ((x11window_flags_e)(x11win)->flags)
Implements x11window_t.flags_x11window.
x11window_flags_e flags_x11window(const x11window_t *x11win)
Returns flags which indicate ownership state of system resources.
Allows to control the global floating point unit configuration (fp environment).
Implements FloatingPointUnit in a gcc specific way.
static void flush_logwriterchan(logwriter_chan_t *chan)
Flushes logbuffer_t in chan.
void (*flushbuffer) (void * log, uint8_t channel)
Writes content of buffer to configured file descriptor and clears log buffer.
#define FLUSHBUFFER_ERRLOG() FLUSHBUFFER_LOG(log_channel_ERR)
See FLUSHBUFFER_LOG.
void flushbuffer_logwriter(logwriter_t *lgwrt,
uint8_t channel)
Writes content of buffer to STDERR or configured file descriptor and clears log buffer.
#define foreach(
   _fsuffix,
   varname,
   ...
) for (iteratedtype##_fsuffix varname;;) for (iteratortype##_fsuffix iter_##varname ; 0 == initfirst##_fsuffix##iterator(& iter_##varname, __VA_ARGS__); (__extension__({ (void)free##_fsuffix##iterator(&iter_##varname); break/*breaks outermost loop*/; }))) while (next##_fsuffix##iterator(&iter_##varname, &varname))
Iterates over all elements from first to last stored in a container.
Allows to iterate over content of container with simple foreach macro.
#define foreachReverse(
   _fsuffix,
   varname,
   ...
) for (iteratedtype##_fsuffix varname;;) for (iteratortype##_fsuffix iter_##varname ; 0 == initlast##_fsuffix##iterator(& iter_##varname, __VA_ARGS__) ; (__extension__({ (void)free##_fsuffix##iterator(&iter_##varname) ; break/*breaks outermost loop*/; }))) while (prev##_fsuffix##iterator(&iter_##varname, &varname))
Iterates over all elements from last to first stored in a container.
static int fork_process(/*out*/pid_t *pid)
This function call returns twice.
See “C-kern/resource/errlog.text” for a description of the format.
static int format_floatdouble_stringfield(const string_field_t *field,
string_t *str)
Writes formatted float or double field.
static int format_i32_stringfield(const string_field_t *field,
string_t *str)
Writes formatted 32 bit integer field.
static int format_i64_stringfield(const string_field_t *field,
string_t *str)
Writes formatted 64 bit integer field.
int format_string(struct string_t *str,
/*out*/size_t *nr_of_fully_written_fields,
int dummy)
Writes formatted output to string_t.
static int format_string_stringfield(const string_field_t *field,
string_t *str)
Writes formatted string field.
Offers formatted output to string_t.
Implements FormatString.
#define fragment_url(url) getpart_url(url, url_part_FRAGMENT)
Implements url_t.fragment_url.
const char * fragment_url(const url_t *url)
Returns the anchor/fragment part of the url.
int frame_x11window(const x11window_t *x11win,
/*out*/int32_t *screen_x,
/*out*/int32_t *screen_y,
/*out*/uint32_t *width,
/*out*/uint32_t *height)
This is the geometry of window including the window manager frame in screen coordinates.
To make managing of resources more easy, the following rule is stated.
int free_arraysfiterator(arraysf_iterator_t *iter)
Frees an iterator for arraysf_t.
int free_arraystfiterator(arraystf_iterator_t *iter)
Frees an iterator for an arraystf_t.
int free_binarystack(binarystack_t *stack)
Frees memory resources held by stack.
int free_blockarray(blockarray_t *barray)
Frees all memory blocks.
#define free_convertwchar(conv) (0)
Implements convert_wchar_t.free_convertwchar as a no op.
extern int free_convertwchar(convert_wchar_t *conv)
Frees resources associated with convert_wchar_t.
int free_cstring(cstring_t *cstr)
Frees any allocated memory associated with type cstring_t.
int free_csvfilereader(csvfilereader_t *csvfile)
Closes file and frees memory for parsed values.
int free_display(display_t *disp)
Frees all resources associated wth the display.
int free_dlist(dlist_t *list,  
uint16_t nodeoffset,  
struct typeadapt_t *typeadp/*0 = >no free called*/)
Frees all resources.
#define free_dlistiterator(iter) (((iter)->next = 0), 0)
Implements dlist_iterator_t.free_dlistiterator.
int free_dlistiterator(dlist_iterator_t *iter)
Frees an iterator for dlist_t.
#define free_eglconfig(eglconf) (*(eglconf) = eglconfig_FREE, 0)
Implements eglconfig_t.free_eglconfig.
int free_eglconfig(eglconfig_t *eglconf)
Frees any associated resources.
int free_eglcontext(eglcontext_t *eglcont,
struct opengl_display_t *egldisp)
Frees all associated resources with this context.
int free_egldisplay(egldisplay_t *egldisp)
Frees all associated resources with a display.
int free_eglpbuffer(eglpbuffer_t *eglpbuf,
struct opengl_display_t *egldisp)
Frees all associated resources with eglpbuf.
int free_eglwindow(eglwindow_t *eglwin,
struct opengl_display_t *egldisp)
Frees resources allocated by eglwin window surface.
#define FREE_ERR_MM(
   errtimer,
   mblock
) ( __extension__ ({ err = FREE_MM(mblock) ; if (! err) err = process_testerrortimer(errtimer) ; err ; }))
Frees memory block with error.
int free_errorcontext(errorcontext_t *errcontext)
Sets members of errcontext to 0.
int free_exthash(exthash_t *htable)
Calls removenodes_exthash and frees the hash table memory.
#define free_exthashiterator(iter) ((iter)->next = 0, 0)
Implements exthash_iterator_t.free_exthashiterator.
int free_exthashiterator(exthash_iterator_t *iter)
Frees an iterator of exthash_t.
int free_file(file_t *fileobj)
Closes an opened file and frees held resources.
int free_filereader(filereader_t *frd)
Closes file and frees allocated buffers.
#define free_gconfig(gconf) (*(gconf) = (gconfig_t) gconfig_FREE, 0)
Implements gconfig_t.free_gconfig.
int free_gconfig(gconfig_t *gconf)
Frees any memory associated with a configuration.
int free_gcontext(gcontext_t *cont,
struct display_t *disp)
Frees graphic context cont and associated resources (frame buffers).
#define FREE_GLWINDOW(win,
disp) free_eglwindow(&gl_window(win), gl_display(disp))
Frees the OpenGL part of the graphic display in an OS specific way.
#define free_iobj(
   iobj
) do { typeof(iobj) _obj = (iobj) ; _obj->object = 0 ; _obj->iimpl = 0 ; } while (0)
Implements iobj_t.free_iobj.
void free_iobj(iobj_t *iobj)
Generic free operation.
int free_iochannel(iochannel_t *ioc)
Closes the I/O channel (file descriptor).
int free_iopoll(iopoll_t *iopoll)
Frees Linux epoll object.
int free_iopoll(iopoll_t *iopoll)
Frees system event queue.
int free_ipsocket(/*out*/ipsocket_t *ipsock)
Closes communication channel and frees system resources.
int free_ipsocketasync(ipsocket_async_t *ipsockasync)
Closes socket and frees all resources.
int free_logbuffer(logbuffer_t *logbuf)
Clears all members.
int free_logwriter(logwriter_t *lgwrt)
Frees resources and frees memory of log object.
int free_maincontext(void)
Frees global context.
#define FREE_MM(mblock) mfree_mm(mm_maincontext(), mblock)
Frees memory block.
int free_mmfile(mmfile_t *mfile)
Frees all mapped memory and closes the file.
int free_mmimpl(mm_impl_t *mman)
Frees all memory managed by this manager.
int free_module(module_t *mod)
Unmaps a binary blob from memory.
#define free_mutex(mutex) (0)
Implement mutex_t.free_mutex as a no op if !defined(KONFIG_SUBSYS_THREAD)
int free_mutex(mutex_t *mutex)
Frees resources of mutex which is not in use.
int free_objectcacheimpl(objectcache_impl_t *objectcache)
Frees objectcache_impl_t and all contained objects.
#define FREE_OPENGL(disp) free_egldisplay(&(disp)->gldisplay)
Frees the OpenGL part of the graphic display in an OS specific way.
#define FREE_OSDISPLAY(disp) free_x11display(&(disp)->osdisplay)
Frees the graphic display in an OS specific way.
#define FREE_OSWINDOW(oswindow) free_x11window(oswindow)
Frees oswindow in an OS specific way.
static int free_pagecacheblock(pagecache_block_t *block,
pagecache_blockmap_t *blockmap)
Frees pagecache_block_t.pageblock but keeps empty block structure.
int free_pagecacheblockmap(pagecache_blockmap_t *blockmap)
Frees allocated hash table.
int free_pagecacheimpl(pagecache_impl_t *pgcache)
Frees all allocated memory pages even if they are in use.
int free_patriciatrie(patriciatrie_t *tree)
Frees all resources.
#define free_patriciatrieiterator(iter) ((iter)->next = 0, 0)
Implements patriciatrie_iterator_t.free_patriciatrieiterator as NOP.
int free_patriciatrieiterator(patriciatrie_iterator_t *iter)
Frees an iterator of patriciatrie_t.
#define free_patriciatrieprefixiter(iter) ((iter)->next = 0, 0)
Implements patriciatrie_prefixiter_t.free_patriciatrieprefixiter as NOP.
int free_patriciatrieprefixiter(patriciatrie_iterator_t *iter)
Frees an prefix iterator of patriciatrie_t.
int free_pixelbuffer(pixelbuffer_t *pbuf,
struct display_t *disp)
Frees all associated resources.
int free_process(process_t *process)
Frees resource associated with a process.
int free_processcontext(processcontext_t *pcontext)
Frees resources associated with processcontext_t.
static int free_processstdio2(process_stdfd2_t *stdfd2)
Closes if devnull if necessary.
int free_queue(queue_t *queue)
Free all memory pages even if they are not empty.
#define free_queueiterator(
   iter
) (*(iter) = (queue_iterator_t) queue_iterator_FREE, 0)
Implements queue_iterator_t.free_queueiterator.
int free_queueiterator(queue_iterator_t *iter)
Frees an iterator of queue_t.
int free_redblacktree(redblacktree_t *tree)
Frees all resources.
#define free_redblacktreeiterator(iter) ((iter)->next = 0, 0)
Implements redblacktree_iterator_t.free_redblacktreeiterator as NOP.
int free_redblacktreeiterator(redblacktree_iterator_t *iter)
Frees an iterator of redblacktree_t.
int free_resourceusage(resourceusage_t *usage)
Frees any memory which may be used to store the usage information.
int free_rwlock(rwlock_t *rwlock)
Frees mutex.
int free_semaphore(semaphore_t *semaobj)
Wakes up any waiting threads and frees the associated resources.
int free_signalwait(signalwait_t *signalwait)
Frees all resources associated with signalwait.
int free_signalwait(signalwait_t *signalwait)
Frees all resources associated with signalwait.
int free_slist(slist_t *list,  
uint16_t nodeoffset,  
struct typeadapt_t *typeadp/*0 = >no free called*/)
Frees memory of all contained objects.
#define free_slistiterator(iter) ((iter)->next = 0, 0)
Implements slist_t.free_slistiterator.
int free_slistiterator(slist_iterator_t *iter)
Frees an iterator of slist_t.
int free_splaytree(splaytree_t *tree,
uint16_t nodeoffset,
typeadapt_t *typeadp)
Frees all resources.
#define free_splaytreeiterator(iter) ((iter)->next = 0, 0)
Implements splaytree_iterator_t.free_splaytreeiterator as NOP.
int free_splaytreeiterator(splaytree_iterator_t *iter)
Frees an iterator of splaytree_t.
Implements splitstring_t.free_splitstring.
void free_splitstring(splitstring_t *spstr)
Sets all data members to 0.
Implements string_t.free_string.
void free_string(string_t *str)
Sets string to string_FREE.
#define free_stringstream(
   strstream
) ((void)(*(strstream) = (stringstream_t) stringstream_FREE))
Implements stringstream_t.free_stringstream.
void free_stringstream(stringstream_t *strstream)
Resets stringstream to null string.
int free_suffixtree(suffixtree_t *tree)
Frees all memory of the allocated nodes.
int free_syncqueue(syncqueue_t *syncqueue)
Frees all allocated memory pages and clears syncqueue.
int free_syncrun(syncrun_t *srun)
Frees all queues and removed any stored syncthread_t.
#define free_syncthread(
   sthread
) ((void)(*(sthread) = (syncthread_t) syncthread_FREE))
Implements syncthread_t.free_syncthread.
void free_syncthread(syncthread_t *sthread)
Sets all members to 0.
int free_syncwlist(syncwlist_t *wlist,
struct syncqueue_t *queue)
Marks all listed nodes as free and removes them from the queue.
#define free_syncwlistiterator(
   iter
) (*(iter) = (syncwlist_iterator_t) syncwlist_iterator_FREE, 0)
Implements syncwlist_iterator_t.free_syncwlistiterator.
int free_syncwlistiterator(syncwlist_iterator_t *iter)
Frees an iterator of syncwlist_t.
int free_systimer(systimer_t *timer)
Frees any resources associated with the timer.
#define free_sysuser(sysuser) ((*(sysuser)) = (sysuser_t) sysuser_FREE, 0)
Implement sysuser_t.free_sysuser as noop if !defined(KONFIG_SUBSYS_SYSUSER)
int free_sysuser(sysuser_t *sysusr)
Clears sysusr and resets system user ids.
#define free_testerrortimer(
   errtimer
) ((void)(*(errtimer) = (test_errortimer_t) test_errortimer_FREE))
Implements test_errortimer_t.free_testerrortimer.
void free_testerrortimer(test_errortimer_t *errtimer)
Sets errtimer to test_errortimer_FREE.
int free_testmm(testmm_t *mman)
Frees all memory managed by this manager.
#define free_textpos(txtpos) ((void)(*(txtpos) = (textpos_t)textpos_FREE))
Implements textpos_t.free_textpos.
void free_textpos(textpos_t *txtpos)
Sets pos to textpos_FREE.
static int free_textresourcereader(textresource_reader_t *reader)
Closes file and frees memory of textresource_t.
int free_threadcontext(threadcontext_t *tcontext)
Frees all resources bound to this object.
int free_threadtls(thread_tls_t *tls)
Changes protection of memory to normal and frees it.
int free_thrmutex(thrmutex_t *mutex)
Checks that no one is waiting and sets mutex to thrmutex_FREE.
int free_trie(trie_t *trie)
Frees all nodes and their associated memory.
int free_typeadaptimpl(typeadapt_impl_t *typeadp)
Sets all fields to 0.
int free_utf8reader(utf8reader_t *utfread)
Implements utf8reader_t.free_utf8reader.
int free_utf8reader(utf8reader_t *utfread)
Sets all internal members to 0.
int free_utf8scanner(utf8scanner_t *scan,
struct filereader_t *frd)
Sets all data members to 0 and releases any acquired buffers from frd.
#define free_utf8validator(
   utf8validator
) ( __extension__ ({ int _err ; utf8validator_t * _v ; _v = (utf8validator) ; _err = _v->size_of_prefix ? EILSEQ : 0 ; _v->size_of_prefix = 0 ; _err ; }))
Implements utf8validator_t.free_utf8validator.
int free_utf8validator(utf8validator_t *utf8validator)
Clear data members and checks that there is no internal prefix stored.
int free_valuecache(valuecache_t *valuecache)
Clears values of valuecache.
int free_vmmappedregions(vm_mappedregions_t *mappedregions)
Free internal memory cache used to store all vm_region_t objects.
int free_vmpage(vmpage_t *vmpage)
Invalidates virtual memory address range
int free_waitlist(waitlist_t *wlist)
Wakes up all waiting threads and frees all resources.
int free_window(window_t *win)
Frees win and its associated resources like native windows.
int free_x11dblbuffer(x11dblbuffer_t *dblbuf)
Frees and deallocates the double buffer associated with a window.
int free_x11display(x11display_t *x11disp)
Closes display connection and frees all resources.
int free_x11videomodeiterator(x11videomode_iterator_t *xvidit)
Frees the iterator and the associated list of all videomodes.
int free_x11window(x11window_t *x11win)
Frees all associated resources in case w11window_t.flags inidcates ownership.
int freeasmm_testmm(struct mm_t *testmm)
Calls free_testmm with object pointer from mm_t.
static inline int freeblock_pagecacheimpl(pagecache_impl_t *pgcache,
pagecache_block_t *block)
Frees pageblock_block_t and removes it from freelist and blocklist.
uint32_t freeblocksize
The number of free bytes of memory block blockstart points to.
static int freebuffer_logwriter(memblock_t *buffer)
Frees internal buffer.
#define FREEIOBJ(
   module,
   objtype_t,
   iobj,
   staticiobj
) int err ; int err2 ; objtype_t * delobj = (objtype_t*) (iobj).object ; if ((iobj).object != (staticiobj).object) { assert( interface_##module() == (iobj).iimpl) ; (iobj) = (staticiobj) ; err = free_##module(delobj) ; memblock_t memobject = memblock_INIT( sizeof(objtype_t), (uint8_t*)delobj) ; err2 = FREESTATIC_PAGECACHE(&memobject) ; if (err2) err = err2 ; return err ; } return 0 ;
Frees iobj.
An array of list of allocated blocks which contain free pages.
uint8_t freelistidx
Index into pagecache_impl_t.freeblocklist.
int freemain_threadtls(thread_tls_t *tls)
Same as free_threadtls but calls no other functions of C-kern system.
static int freenode_suffixtreeiteratoradapter(
   suffixtreeiterator_adapter_t *typeadp,
   suffixtree_iterator_t **iter
)
Frees memory of object type suffixtree_iterator_t.
#define FREEOBJECT(
   module,
   objtype_t,
   object
) int err ; int err2 ; objtype_t * delobj = (object) ; if (delobj != (0)) { (object) = (0) ; err = free_##module(delobj) ; err2 = freestatic_maincontext( sizeof(objtype_t)) ; if (err2) err = err2 ; return err ; } return 0 ;
Frees object.
#define freeonce_errorcontext(error) (0)
Implements errorcontext_t.freeonce_errorcontext.
int freeonce_errorcontext(errorcontext_t *error)
Called from maincontext_t.free_maincontext.
int freeonce_locale(void)
Called from maincontext_t.free_maincontext.
#define freeonce_signalhandler() (0)
Implement free as a no op if !defined(KONFIG_SUBSYS_THREAD)
int freeonce_signalhandler(void)
Restores default signal configuration.
#define freeonce_X11() (0)
Implement free as a no op if defined KONFIG_USERINTERFACE_X11.
int freeonce_X11(void)
Does nothing at the moment.
struct freepage_t
Header of free page located in pagecache_block_t.pageblock.
static inline int freepageblock_pagecacheblock(vmpage_t *pageblock)
Frees resources of pagecache_block_t stored in pagecache_block_t.pageblock.
dlist_t freepagelist
List of free pages.
int freesingleton_unittest(void)
Frees any resources allocated with the single object of type unittest_t.
static inline uint32_t freesize_blockheader(blockheader_t *header)
Returns the number of unused bytes.
int (*freestatic) (pagecache_t * pgcache, struct memblock_t * memblock)
Frees static memory.
int freestatic_maincontext(uint8_t size)
Frees size bytes of last allocated memory.
#define freestatic_pagecache(
   pgcache,
   memblock
) ((pgcache).iimpl->freestatic((pgcache).object, (memblock)))
Implements pagecache_t.freestatic_pagecache.
int freestatic_pagecache(const pagecache_t pgcache,
struct memblock_t *memblock)
Calls pgcache->iimpl->freestatic with pgcache->object as first parameter.
#define FREESTATIC_PAGECACHE(
   memblock
) (freestatic_pagecache(pagecache_maincontext(), (memblock)))
Frees static block of memory and clears memblock.
int freestatic_pagecacheimpl(pagecache_impl_t *pgcache,
struct memblock_t *memblock)
Frees static memory.
int freethread_pagecacheimpl(struct pagecache_t *pagecache)
Calls free_pagecacheimpl with for object pointer in pagecache_t.
The same as genericcast except that function FROMTYPEcast_TYPE(...)
A block device special file.
A character device special file.
Directory type.
Named pipe type.
A normal data file.
A unix system socket.
A symbolic link.
Unknown file type.
group: test
group: test\n\n\
Close