Package libbsd-devel

Development files for libbsd

http://libbsd.freedesktop.org/

Development files for the libbsd library.

Library Functions (Section 3)
arc4random
The arc4random() function uses the key stream generator employed by the arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes can be in about (2**1700) states...
bitstring
These macros operate on strings of bits. The macro bit_alloc() returns a pointer of type “bitstr_t *” to sufficient space to store nbits bits, or NULL if no...
closefrom
The closefrom() system call deletes all open file descriptors greater than or equal to lowfd from the per-process object reference table. Any errors encountered...
expand_number
The expand_number() function unformats the buf string and stores a unsigned 64-bit quantity at address pointed out by the num argument. The expand_number()...
fgetln
The fgetln() function returns a pointer to the next line from the stream referenced by stream. This line is not a C string as it does not end with a terminating...
fgetwln
The fgetwln() function returns a pointer to the next line from the stream referenced by stream. This line is not a standard wide character string as it does not...
flopen
The flopen() function opens or creates a file and acquires an exclusive lock on it. It is essentially equivalent with calling open() with the same parameters...
fmtcheck
The fmtcheck() scans fmt_suspect and fmt_default to determine if fmt_suspect will consume the same argument types as fmt_default and to ensure that fmt_suspect...
fparseln
The fparseln() function returns a pointer to the next logical line from the stream referenced by stream. This string is NUL terminated and it is dynamically...
funopen
The funopen() function associates a stream with up to four “I/O functions”. Either readfn or writefn must be specified; the others can be given as an...
getbsize
The getbsize() function returns a preferred block size for reporting by system utilities df(1), du(1), ls(1) and systat(1), based on the value of the BLOCKSIZE...
getpeereid
The getpeereid() function returns the effective user and group IDs of the peer connected to a UNIX-domain socket. The argument s must be a UNIX-domain socket...
getprogname
The getprogname() and setprogname() functions manipulate the name of the current program. They are used by error-reporting routines to produce consistent...
heapsort
The heapsort() function is a modified selection sort. The mergesort() function is a modified merge sort with exponential search intended for sorting data with...
humanize_number
The humanize_number() function formats the signed 64 bit quantity given in number into buffer. A space and then suffix is appended to the end. buffer must be at...
md5.3bsd
The MD5 functions calculate a 128-bit cryptographic checksum (digest) for any number of input bytes. A cryptographic checksum is a one-way hash-function, that...
nlist
The nlist() function retrieves name list entries from the symbol table of an executable file (see a.out(5)). The argument nl is set to reference the beginning...
pidfile
The pidfile family of functions allows daemons to handle PID files. It uses flopen(3) to lock a pidfile and detect already running daemons. The pidfile_open()...
queue.3bsd
These macros define and operate on four types of data structures: singly-linked lists, singly-linked tail queues, lists, and tail queues. All four structures...
radixsort
The radixsort() and sradixsort() functions are implementations of radix sort. These functions sort an nmemb element array of pointers to byte strings, with the...
readpassphrase
The readpassphrase() function displays a prompt to, and reads in a passphrase from, /dev/tty. If this file is inaccessible and the RPP_REQUIRE_TTY flag is not...
reallocf
The reallocf() function changes the size of the previously allocated memory referenced by ptr to size bytes. The contents of the memory are unchanged up to the...
setmode
The setmode() function accepts a string representation of a file mode change, compiles it to binary form, and returns an abstract representation that may be...
setproctitle
The setproctitle() library routine sets the process title that appears on the ps(1) command. The setproctitle_init() library routine only needs to be called...
stringlist
The stringlist functions manipulate stringlists, which are lists of strings that extend automatically if necessary.
strlcpy
The strlcpy() and strlcat() functions copy and concatenate strings respectively. They are designed to be safer, more consistent, and less error prone...
strmode
The strmode() function converts a file mode (the type and permission information associated with an inode, see stat(2)) into a symbolic string which is stored...
strnstr
The strnstr() function locates the first occurrence of the null-terminated string little in the string big, where not more than len characters are searched...
strtonum
The strtonum() function converts the string in nptr to a long long value. The strtonum() function was designed to facilitate safe, robust programming and...
tree
These macros define data structures for different types of trees: splay trees and red-black trees. In the macro definitions, TYPE is the name tag of a user...
unvis
The unvis(), strunvis() and strnunvis() functions are used to decode a visual representation of characters, as produced by the vis(3) function, back into the...
vis
The vis() function copies into dst a string which represents the character c. If c needs no encoding, it is copied in unaltered. The string is NUL terminated...
wcslcpy
The functions implement string manipulation operations over wide character strings. For a detailed description, refer to documents for the respective...