Returns the system name of the calling process in the provided buffer.
int name_process( size_t namebuffer_size, /*out*/char name[namebuffer_size], /*out*/size_t * name_size )
Returns user name stored in usrinfo.
const char * name_sysuserinfo( sysuser_info_t * usrinfo )
Inverts the sign of the number.
void negate_bigint( bigint_t * big )
Inverts the sign of the number.
void negate_decimal( decimal_t * dec )
Allocates a new array object.
int new_arraysf( /*out*/arraysf_t ** array, uint32_t toplevelsize, uint8_t posshift )
Allocates a new array object.
int new_arraystf( /*out*/arraystf_t ** array, uint32_t toplevelsize )
Allocates a new big integer object.
int new_bigint( /*out*/bigint_t ** big, uint32_t nrdigits )
Allocates a new decimal number.
int new_decimal( /*out*/decimal_t ** dec, uint32_t nrdigits )
Opens directory stream for read access.
int new_directory( /*out*/directory_t ** dir, const char * dir_path, const directory_t * relative_to/*0 = > current working directory*/ )
Create a new internet address and init it with the given values.
int new_ipaddr( /*out*/ipaddr_t ** addr, ipprotocol_e protocol, const char * numeric_addr, ipport_t port, ipversion_e version )
Allocates a big block of memory and returns its description in pagecache_block_t.
static int new_pagecacheblock( out pagesize_e pgsize, pagecache_blockmap_t * blockmap )
Allocates single memory page with ALLOC_PAGECACHE with size pagesize_4096.
static int new_queuepage( /*out*/queue_page_t ** qpage, queue_t * queue )
Stores in signalstate_t the current settings of all signal handlers.
int new_signalstate( /*out*/signalstate_t ** sigstate )
Allocates a new suffixtree_iterator_t object.
static inline int new_suffixtreeiterator( /*out*/suffixtree_iterator_t ** iter )
Allocates new leaf of suffix tree.
static inline int new_suffixtreeleaf( /*out*/suffixtree_leaf_t ** leaf )
Returns information about sysuser_id_t given as parameter.
int new_sysuserinfo( /*out*/sysuser_info_t ** usrinfo, sysuser_id_t uid )
Creates and starts a new system thread.
int new_thread( /*out*/thread_t ** threadobj, thread_f thread_main, void * main_arg )
Allocate new trie_node_t with optional prefix, optional usernode and optional childs.
static int new_trienode( /*out*/trie_node_t * node, uint16_t prefixlen, const uint8_t prefix[prefixlen], void * const * uservalue, uint16_t nrchild, const uint8_t digit[nrchild], trie_nodedata_t * const child[nrchild] )
Allocates a single subnode.
static int new_triesubnode( /*out*/trie_subnode_t ** subnode )
Allocates subnode and sets all child pointer to 0.
static int new_triesubnode2( /*out*/trie_subnode2_t ** subnode )
Parses full url from encoded string and fills in all components.
int new_url( /*out*/url_t ** url, const char * encodedstr )
Parses url from encoded string and fills in all components.
int new2_url( /*out*/url_t ** url, url_scheme_e scheme, const char * encodedstr )
Create a new internet address and init it a system specific socket address value.
int newaddr_ipaddr( /*out*/ipaddr_t ** addr, ipprotocol_e protocol, uint16_t sock_addr_len, const sys_socketaddr_t * sock_addr )
Create a new internet address suitable to listen on any network interface.
int newany_ipaddr( /*out*/ipaddr_t ** addr, ipprotocol_e protocol, ipport_t port, ipversion_e version )
Makes a copy from a big integer object.
int newcopy_bigint( /*out*/bigint_t ** big, const bigint_t * copyfrom )
Allocates a new decimal number and initializes its value with a copy of copyfrom.
int newcopy_decimal( /*out*/decimal_t ** dec, const decimal_t * copyfrom )
Copy an internet address to store it for later usage.
int newcopy_ipaddr( /*out*/ipaddr_t ** dest, const ipaddr_t * source )
Resolves a hostname into its first queried ip address.
int newdnsquery_ipaddr( /*out*/ipaddr_t ** addr, ipprotocol_e protocol, const char * hostname, ipport_t port, ipversion_e version )
Resolves a host name into a list of internet addresses.
int newdnsquery_ipaddrlist( /*out*/ipaddr_list_t ** addrlist, const char * hostname_or_numeric, ipprotocol_e protocol, ipport_t port, ipversion_e version )
Returns an ip address suitable for host only inter process communications.
int newloopback_ipaddr( /*out*/ipaddr_t ** addr, ipprotocol_e protocol, ipport_t port, ipversion_e version )
Allocates new trie_node_t of size nodesize and returns pointer in node.
static int newnode_trienode( /*out*/trie_nodedata_t ** node, uint16_t nodesize )
Fills in url components from substrings describing components.
int newparts_url( /*out*/url_t ** url, url_scheme_e scheme, url_parts_t * parts, bool are_parts_encoded )
The prefix of splitnode is split.
static int newsplit_trienode( /*out*/trie_node_t * node, trie_node_t * splitnode, uint8_t splitlen, void * uservalue, uint8_t digit, trie_nodedata_t * child )
Creates a temporary directory read / writeable by the user and opens it for reading.
int newtemp_directory( /*out*/directory_t ** dir, const char * name_prefix )
Returns next iterated node.
bool next_arraysfiterator( arraysf_iterator_t * iter, /*out*/struct arraysf_node_t ** node )
Returns next iterated node.
bool next_arraystfiterator( arraystf_iterator_t * iter, /*out*/struct arraystf_node_t ** node )
Converts next complete mb character sequence into a wide character.
extern int next_convertwchar( convert_wchar_t * conv, wchar_t * next_wchar )
Reads the next directory entry and returns its name and type (ftype could be NULL).
int next_directory( directory_t * dir, /*out*/const char ** name, /*out*/filetype_e * ftype )
Returns the node coming after this node.
struct dlist_node_t * next_dlist( struct dlist_node_t * node )
Returns all elements from first to last node of list.
bool next_dlistiterator( dlist_iterator_t * iter, /*out*/struct dlist_node_t ** node )
Returns next node of htable not sorted in any order.
bool next_exthashiterator( exthash_iterator_t * iter, /*out*/exthash_node_t ** node )
Returns next ipaddr_t from of internal list.
const ipaddr_t * next_ipaddrlist( ipaddr_list_t * addrlist )
Returns next node of tree in ascending order.
bool next_patriciatrieiterator( patriciatrie_iterator_t * iter, /*out*/patriciatrie_node_t ** node )
Returns next node with a certain prefix in ascending order.
bool next_patriciatrieprefixiter( patriciatrie_prefixiter_t * iter, /*out*/patriciatrie_node_t ** node )
Returns next iterated node.
bool next_queueiterator( queue_iterator_t * iter, /*out*/void ** node )
Returns next node of tree in ascending order.
bool next_redblacktreeiterator( redblacktree_iterator_t * iter, /*out*/redblacktree_node_t ** node )
Returns the node coming after this node.
struct slist_node_t * next_slist( struct slist_node_t * node )
Returns next iterated node.
bool next_slistiterator( slist_iterator_t * iter, /*out*/struct slist_node_t ** node )
Returns next node of tree in ascending order.
bool next_splaytreeiterator( splaytree_iterator_t * iter, /*out*/splaytree_node_t ** node )
Returns the address of the buffer containing all unread bytes.
const uint8_t * next_stringstream( const stringstream_t * strstream )
Returns next contained event.
bool next_syncwlistiterator( syncwlist_iterator_t * iter, /*out*/struct syncevent_t ** event )
Returns the next vm_region_t in the set of all stored elements.
const vm_region_t * next_vmmappedregions( vm_mappedregions_t * iterator )
Returns next videomode element.
bool next_x11videomodeiterator( x11videomode_iterator_t * xvidit, /*out*/x11videomode_t * xvidmode )
Returns next unread byte from stream.
uint8_t nextbyte_stringstream( stringstream_t * strstream )
Reads next byte and increments column by one.
int nextbyte_utf8reader( utf8reader_t * utfread, uint8_t * nextbyte )
Reads the next byte from the buffer and increments the reading position.
uint8_t nextbyte_utf8scanner( utf8scanner_t * scan )
Decodes next unicode character from UTF-8 into UTF-32 encoding.
int nextchar_utf8reader( utf8reader_t * utfread, char32_t * nxtchar )
Decodes the next utf8 character and increments the reading position.
int nextchar_utf8scanner( utf8scanner_t * scan, struct filereader_t * frd, /*out*/char32_t * uchar )
Waits until there is one event in the queue and calls dispatchevent_X11.
int nextevent_X11( struct x11display_t * x11disp )
Skips extrasize bytes of the current node and returns true if possible.
bool nextskip_queueiterator( queue_iterator_t * iter, uint16_t extrasize )
Reads next utf-8 encoded character from strstream.
int nextutf8_stringstream( struct stringstream_t * strstream, /*out*/char32_t * uchar )
Gets pointer to value arraysf_node_t.
arraysf_node_t * node_arraysfunode( arraysf_unode_t * node )
Gets pointer to value arraystf_node_t.
arraystf_node_t * node_arraystfunode( arraystf_unode_t * node )
Casts pointer to arraysf_node_t into pointer to arraysf_unode_t.
static inline arraysf_unode_t * nodecast_arraysfunode( arraysf_node_t * node )
Implements arraystf_unode_t.nodecast_arraystfunode.
static inline arraystf_unode_t * nodecast_arraystfunode( arraystf_node_t * node )
Cast arraystf_node_t into arraystf_unode_t.
static inline arraystf_unode_t * nodecast_arraystfunode( arraystf_node_t * node )
The number of columns (data fields) per row contained in the input data.
size_t nrcolumns_csvfilereader( const csvfilereader_t * csvfile )
Returns the number of stored digits (32 bit words) of the big integer.
uint16_t nrdigits_bigint( const bigint_t * big )
Returns the number of decimal digits stored.
uint16_t nrdigits_decimal( const decimal_t * dec )
Returns the maximum number of supported digits stored in a big integer.
uint16_t nrdigitsmax_bigint( void )
Returns the maximum number of decimal digits supported by a decimal_t.
uint16_t nrdigitsmax_decimal( void )
Returns the nr of elements stored in the hash table.
size_t nrelements_exthash( const exthash_t * htable )
Returns the number of valid signal handlers.
static int nrhandlers_signalstate( void )
Returns the nr of parts the string is composed of.
uint8_t nrofparts_splitstring( const splitstring_t * spstr )
Returns the number of readers holding the lock.
uint32_t nrofreader_rwlock( rwlock_t * rwlock )
Returns the number of different screens attached to this display.
uint32_t nrofscreens_display( const display_t * disp )
Returns the number of all screens attached to x11disp.
uint32_t nrofscreens_x11display( const x11display_t * x11disp )
Returns number of opened I/O data channels.
int nropen_iochannel( /*out*/size_t * number_open )
The number of rows (data records) contained in the input data.
size_t nrrows_csvfilereader( const csvfilereader_t * csvfile )
Returns the number of threads waiting on this list.
size_t nrwaiting_waitlist( waitlist_t * wlist )
See nrzerobits2nrdigits_decimalhelper.
static inline uint32_t nrzerobits2decsize_decimalhelper( uint32_t nrleadingzerobits )
Returns the nr of zero decimal digits calculated from the number of zero bits.
static inline uint32_t nrzerobits2nrdigits_decimalhelper( uint32_t nrleadingzerobits )
Returns the nr of zero bits calculated from the number of zero decimal digits.
static uint32_t nrzerodigits2nrbits_decimalhelper( uint32_t nrleadingzerodigits )
Returns the number of the screen of x11display_t.
int32_t number_x11screen( const x11screen_t * x11screen )
Returns the numeric ascii representation of the ip address.
int numericname_ipaddr( const ipaddr_t * addr, cstring_t * numeric_name )