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
J
 join_thread, thread_t
L
 last_dlist, dlist_t
 last_queue, queue_t
 last_slist, slist_t
 last_syncwlist, syncwlist_t
 len_syncqueue, syncqueue_t
 len_syncwlist, syncwlist_t
 length_arraysf, arraysf_t
 length_arraystf, arraystf_t
 length_utf8, utf8
 leninitqueue_syncrun, syncrun_t
 lenprefix_trienodeoffsets, trie_nodeoffsets_t
 lenrunqueue_syncrun, syncrun_t
 lenuservalue_trienodeoffsets, trie_nodeoffsets_t
 lenwaitqueue_syncrun, syncrun_t
 letoh_int, int_t
 lifetime_deleteobj_typeadaptimpl, typeadapt_impl_t
 lifetime_newcopyobj_typeadaptimpl, typeadapt_impl_t
 line_textpos, textpos_t
 line_utf8reader, utf8reader_t
 load_file
 localaddr_ipsocket, ipsocket_t
 lock_iobuffer, objectcache_it
 lock_mutex, mutex_t
 lock_thrmutex, thrmutex_t
 lockflag_rwlock
 lockflag_thread, thread_t
 lockflag_thrmutex
 lockflag_waitlist
 lockholder_thrmutex, thrmutex_t
 lockiobuffer_objectcacheimpl, objectcache_impl_t
 lockreader_rwlock, rwlock_t
 lockwriter_rwlock, rwlock_t
 log_it_DECLARE, log_it
 log_maincontext, maincontext_t
 log10_int
 log10_int32
 log10_int64
 log2_int, int_t
 log2pagesize_vm
 logf_unittest, unittest_t
 logfailed_unittest, unittest_t
 logfailedunexpected_unittest, unittest_t
 logresult_unittest, unittest_t
 logrun_unittest, unittest_t
 logsummary_unittest, unittest_t
 logurl_ipaddr, ipaddr_t
 lsbits_ptr, ptr_t
int join_thread(thread_t *threadobj)
The function suspends execution of the caller until threadobj terminates.
struct dlist_node_t * last_dlist(dlist_t *list)
Returns the last element in the list.
void * last_queue(const queue_t *queue,
uint16_t nodesize)
Returns the last element or 0.
struct slist_node_t * last_slist(const slist_t *list)
Returns the last node in the list.
struct syncevent_t * last_syncwlist(const syncwlist_t *wlist)
Returns pointer to last contained syncevent_t.
size_t len_syncqueue(const syncqueue_t *syncqueue)
Returns the number of elements stored in the queue.
size_t len_syncwlist(const syncwlist_t *wlist)
Returns the number of inserted events.
size_t length_arraysf(arraysf_t *array)
Returns the number of elements stored in the array.
size_t length_arraystf(arraystf_t *array)
Returns the number of elements stored in the array.
size_t length_utf8(const uint8_t *strstart,
const uint8_t *strend)
Returns number of UTF-8 characters encoded in string buffer.
size_t leninitqueue_syncrun(const syncrun_t *srun)
Returns the number of syncthreads which are started but not run at least once.
static inline uint8_t lenprefix_trienodeoffsets(
   const trie_nodeoffsets_t *offsets
)
Returns the number of bytes the encoded prefix uses.
size_t lenrunqueue_syncrun(const syncrun_t *srun)
Returns the number of syncthreads which are run at least once.
static inline uint8_t lenuservalue_trienodeoffsets(
   const trie_nodeoffsets_t *offsets
)
Returns sizeof(void*) if uservalue is available else 0.
size_t lenwaitqueue_syncrun(const syncrun_t *srun)
Returns the number of syncthreads which are waiting for an event.
unsigned letoh_int(unsigned little_endian_val)
Converts little_endian_val from little-endian byte order to host byte order.
int lifetime_deleteobj_typeadaptimpl(typeadapt_impl_t *typeadp,
struct typeadapt_object_t **object)
Implements typeadapt_lifetime_it.delete_object.
int lifetime_newcopyobj_typeadaptimpl(
   typeadapt_impl_t *typeadp,
   /*out*/struct typeadapt_object_t **destobject,
   const struct typeadapt_object_t *srcobject
)
Implements typeadapt_lifetime_it.newcopy_object.
size_t line_textpos(const textpos_t *txtpos)
Returns the current line number beginning from 1.
size_t line_utf8reader(const utf8reader_t *utfread)
Returns the line nr of the current readng position.
int load_file(const char *filepath,
/*ret*/struct wbuffer_t *result,
struct directory_t *relative_to)
Loads content of file and appends it to result.
int localaddr_ipsocket(const ipsocket_t *ipsock,
struct ipaddr_t *localaddr)
Returns local ip address in localaddr.
void (
   *lock_iobuffer
) (struct objectcache_t * cache, /*out*/struct memblock_t ** iobuffer)
See objectcache_impl_t.lockiobuffer_objectcacheimpl for an implementation.
int lock_mutex(mutex_t *mutex)
Locks a mutex.
int lock_thrmutex(thrmutex_t *mutex)
Locks the mutex.
static inline void lockflag_rwlock(rwlock_t *rwlock)
Wait until rwlock->lockflag is cleared and set it atomically.
void lockflag_thread(thread_t *thread)
Wait until thread->lockflag (lockflag) is cleared and set it atomically.
static inline void lockflag_thrmutex(thrmutex_t *mutex)
Waits until mutex->lockflag is cleared and sets it atomically.
static inline void lockflag_waitlist(waitlist_t *wlist)
Wait until wlist->lockflag is cleared and set it atomically.
struct thread_t * lockholder_thrmutex(thrmutex_t *mutex)
Returns the thread which locked the mutex.
void lockiobuffer_objectcacheimpl(objectcache_impl_t *objectcache,
/*out*/struct memblock_t **iobuffer)
Locks the io buffer and returns a pointer to it in iobuffer.
int lockreader_rwlock(rwlock_t *rwlock)
Acquire entrylock, increment nrofreader and release entrylock.
int lockwriter_rwlock(rwlock_t *rwlock)
Acquire entrylock, sets writer to seld and wait until nrofreader == 0.
void log_it_DECLARE(TYPENAME declared_it,
TYPENAME log_t)
Declares a function table for accessing a log service.
Returns log service log_t (see logwriter_t).
Implements int_t.log10_int.
unsigned log10_int(unsigned i)
Returns the logarithm to base 2 as integer of an integer value.
unsigned log10_int32(uint32_t i)
Uses s_pow10 table to decrement result if necessary.
unsigned log10_int32(uint32_t i)
Implements log10_int for 32 bit values.
unsigned log10_int64(uint64_t i)
Uses s_pow10 table to decrement result if necessary.
unsigned log10_int64(uint64_t i)
Implements log10_int for 64 bit values.
unsigned log2_int(unsigned i)
Returns the logarithm to base 2 as integer of an integer value.
uint8_t log2pagesize_vm(void)
Returns log2_int of pagesize_vm.
void logf_unittest(
   const char *format,
    ...
) __attribute__ ((__format__ (__printf__, 1, 2)))
Logs a formatted string.
void logfailed_unittest(const char *filename,
unsigned line_number,
const char *msg)
Logs “filename:<line_number>: <msg>\n”.
void logfailedunexpected_unittest(
   const char *filename,
   unsigned line_number,
   const char *format,
    ...
) __attribute__ ((__format__ (__printf__, 3, 4)))
Logs “filename:<line_number>: UNEXPECTED VALUE <value>\n”.
void logresult_unittest(bool isFailed)
Logs “OK\n” or “FAILED\n”.
void logrun_unittest(const char *testname)
Logs “RUN %s: “.
void logsummary_unittest(void)
Logs how many tests passed and how many failed.
void logurl_ipaddr(const ipaddr_t *addr,
const char *varname,
uint8_t logchannel)
Writes “varname: [tcp|udp]://[ip]:[port]” to logchannel.
int lsbits_ptr(const ptr_t ptr,
unsigned nrbits)
Returns the value of all nrbits least significant bits of ptr.
Close