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