Declares an interface function table for accessing pagecache.
void pagecache_it_DECLARE( TYPENAME declared_it, TYPENAME pagecache_t )
Returns the virtual memory page size supported by the underlying system.
uint32_t pagesize_vm( void )
Translates enum pagesize_e into size in bytes.
size_t pagesizeinbytes_pagecacheit( pagesize_e pagesize )
Returns the static size of a memory page the queue uses.
uint32_t pagesizeinbytes_queue( void )
Converts error codes from pam lib to errno error codes.
static int pamerr2errno_sysuser( int pamerr )
Parses content of “textresource version=’3’ /textresource”.
static int parse_contentversion3_textresourcereader( textresource_reader_t * reader )
Parses all header information.
static int parse_header_textresourcereader( textresource_reader_t * reader )
Parses control information for generated output.
static int parse_outconfigC_utf8reader( textresource_reader_t * reader )
Parses control information for generated output.
static int parse_outconfigCtable_utf8reader( textresource_reader_t * reader )
Skips comments until “textresource version=’4’” is found.
static int parse_version_textresourcereader( textresource_reader_t * reader )
Expects the next character to be of value chr.
static int parsechar_csvfilereaderparsestate( csvfilereader_parsestate_t * state, uint8_t chr )
Parses value between two double quotes.
static int parsedatafield_csvfilereaderparsestate( csvfilereader_parsestate_t * state, /*out*/string_t * value )
Counts the number of data fields of the first line.
static int parsenrcolumns_csvfilereaderparsestate( csvfilereader_parsestate_t * state, /*out*/size_t * nrcolumns )
Returns password or NULL if undefined.
const char * passwd_url( const url_t * url )
Returns absolute real path of directory dir in path.
int path_directory( const directory_t * dir, /*ret*/struct wbuffer_t * path )
Returns password or NULL if undefined.
const char * path_url( const url_t * url )
Returns processcontext_t of the current process.
processcontext_t * pcontext_maincontext( void )
Converts the next char_count characters without modifying conv.
extern int peek_convertwchar( const convert_wchar_t * conv, size_t char_count, wchar_t * wchar_array )
Returns next ascii character.
int peekascii_utf8reader( const utf8reader_t * utfread, uint8_t * nextascii )
Returns next ascii character with an offset if offset bytes.
int peekasciiatoffset_utf8reader( const utf8reader_t * utfread, size_t offset, uint8_t * nextascii )
Returns any byte from the buffer without changing the read pointer.
uint8_t peekbyte_utf8scanner( utf8scanner_t * scan, size_t offset )
Same as nextutf8_stringstream except the strstream is not changed.
int peekutf8_stringstream( const struct stringstream_t * strstream, /*out*/char32_t * uchar )
Removes the last pushed object from the stack.
int pop_binarystack( binarystack_t * stack, size_t size )
Same functionality as pop_binarystack.
int pop2_binarystack( binarystack_t * stack, size_t size )
Returns the port number of the address.
ipport_t port_ipaddr( const ipaddr_t * addr )
Returns port or NULL if undefined.
const char * port_url( const url_t * url )
Returns the position of the window in screen coordinates.
int pos_window( const window_t * win, /*out*/int32_t * screen_x, /*out*/int32_t * screen_y )
Returns the position of the window in screen coordinates.
int pos_x11window( const x11window_t * x11win, /*out*/int32_t * screen_x, /*out*/int32_t * screen_y )
Calculates pow(10, exponent) for 0 <= exponent <= 9.
static inline uint32_t power10_decimalhelper( unsigned exponent )
Prefetches data into all levels of hw cache.
void prefetchdata_hwcache( void * addr )
Returns ptr to digit array.
static inline uint8_t * prefix_trienode( trie_node_t * node )
Inits test of system-malloc.
int prepare_malloc( void )
Sets all values in srun->running (syncrun_t.running).
static inline int preparerun_syncrun( syncrun_t * srun, syncthread_t * running_thread )
Sets all values in srun->wakeup (syncrun_t.wakeup).
static inline void preparewakeup_syncrun( syncrun_t * srun, void * continuelabel, int retcode )
Returns the node coming before this node.
struct dlist_node_t * prev_dlist( struct dlist_node_t * node )
Returns all elements from last to first node of list.
bool prev_dlistiterator( dlist_iterator_t * iter, /*out*/struct dlist_node_t ** node )
Returns next node of tree in descending order.
bool prev_patriciatrieiterator( patriciatrie_iterator_t * iter, /*out*/patriciatrie_node_t ** node )
Returns next node of tree in descending order.
bool prev_redblacktreeiterator( redblacktree_iterator_t * iter, /*out*/redblacktree_node_t ** node )
Returns next node of tree in descending order.
bool prev_splaytreeiterator( splaytree_iterator_t * iter, /*out*/splaytree_node_t ** node )
Returns the column number of the last character of the previous line (number).
size_t prevlastcolumn_textpos( const textpos_t * txtpos )
Prints formatted error string.
static void print_error( const char * format, ... )
Prints usage information.
static void print_usage( void )
Prints version information
static void print_version( void )
Writes new log entry to log buffer.
void printf_logbuffer( logbuffer_t * logbuf, const char * format, ... ) __attribute__ ((__format__ (__printf__, 2, 3)))
Writes new log entry to internal buffer.
void printf_logwriter( logwriter_t * lgwrt, uint8_t channel, uint8_t flags, const struct log_header_t * header, const char * format, ... ) __attribute__ ((__format__ (__printf__, 5, 6)))
Appends printf formatted string to cstr.
int printfappend_cstring( cstring_t * cstr, const char * format, ... ) __attribute__ ((__format__ (__printf__, 2, 3)))
Appends header to log buffer.
void printheader_logbuffer( logbuffer_t * logbuf, const struct log_header_t * header )
Writes a text resource to internal buffer.
void printtext_logwriter( logwriter_t * lgwrt, uint8_t channel, uint8_t flags, const struct log_header_t * header, log_text_f textf, ... )
Returns sysuser_id_t of the user which has other privileges.
sysuser_id_t privileged_sysuser( sysuser_t * sysusr )
Returns error if timer has elapsed else 0.
int process_testerrortimer( test_errortimer_t * errtimer )
This function calls <process_testerrortimer>(errtimer) and returns its value.
int PROCESS_testerrortimer( test_errortimer_t * errtimer )
Returns the program name of the running process.
const char * progname_maincontext( void )
Sets protection of memory (e.g.
int protect_vmpage( vmpage_t * vmpage, const accessmode_e access_mode )
Returns protocol ipprotocol_e of the socket.
uint16_t protocol_ipsocket( const ipsocket_t * ipsock )
Allocates memory for new object and returns pointer to its start address.
int push_binarystack( binarystack_t * stack, /*out*/void ** lastpushed )
Does same as push_binarystack but allocates a new block if necessary.
int push2_binarystack( binarystack_t * stack, uint32_t size, /*out*/uint8_t ** lastpushed )
Creates new suffixtree_iterator_t and pushes onto suffixtreeiterator_list_t.
static suffixtree_iterator_t * pushnew_iterlist( slist_t * stack )