#include <foo.h> -> #include <libowfat/foo.h>
This commit is contained in:
parent
dba47741bf
commit
760598ec2f
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array \- The array library interface
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
.SH DESCRIPTION
|
||||
An \fBallocated\fR array variable keeps track of
|
||||
@ -23,7 +23,7 @@ dynamically allocated region of memory.
|
||||
|
||||
A new array variable is normally created as a static variable:
|
||||
|
||||
#include "array.h"
|
||||
#include <libowfat/array.h>
|
||||
|
||||
static array x;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_allocate \- make sure array has at least n elements allocated
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void* \fBarray_allocate\fP(array* \fIx\fR, uint64 \fImembersize\fR, int64 \fIpos\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_bytes \- get number of allocated members in array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
int64 \fBarray_bytes\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_cat \- append one array to another
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_cat\fP(array* \fIx\fR,array* \fIy\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_cat0 \- append 0 byte to an array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_cat0\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_catb \- append bytes to an array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_catb\fP(array* \fIx\fR,const char* \fIy\fR,int64 \fIlen\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_cate \- append subset of one array to another array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_cate\fP(array* \fIx\fR,array* \fIy\fR, int64 \fIpos\fR,int64 \fIstop\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_cats \- append C string to an array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_cats\fP(array* \fIx\fR,const char* \fIy\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_cats0 \- append C string to an array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_cats0\fP(array* \fIx\fR,const char* \fIy\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_equal \- compare two arrays for equality
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
int \fBarray_equal\fP(array* \fIx\fR,array* \fIy\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_fail \- switch array to have failed
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_fail\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_get \- get pointer to nth element in array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void* \fBarray_get\fP(array* \fIx\fR, uint64 \fImembersize\fR, int64 \fIpos\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_length \- get number of allocated members in array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
int64 \fBarray_length\fP(array* \fIx\fR,uint64 \fImembersize\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_reset \- deallocate array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_reset\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_start \- get pointer to first element in array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void* \fBarray_start\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_trunc \- reduce number of initialized bytes
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_trunc\fP(array* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
array_truncate \- reduce number of initialized bytes
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <libowfat/array.h>
|
||||
|
||||
void \fBarray_truncate\fP(array* \fIx\fR, uint64 \fImembersize\fR, int64 \fIlen\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
iarray_allocate \- get pointer to nth element in iarray
|
||||
.SH SYNTAX
|
||||
.B #include <iarray.h>
|
||||
.B #include <libowfat/iarray.h>
|
||||
|
||||
void* \fBiarray_allocate\fP(iarray* \fIx\fR, size_t \fIpos\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
iarray_free \- free iarray data structure
|
||||
.SH SYNTAX
|
||||
.B #include <iarray.h>
|
||||
.B #include <libowfat/iarray.h>
|
||||
|
||||
void \fBiarray_free\fP(iarray* \fIx\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
iarray_get \- get pointer to nth element in iarray
|
||||
.SH SYNTAX
|
||||
.B #include <iarray.h>
|
||||
.B #include <libowfat/iarray.h>
|
||||
|
||||
void* \fBiarray_get\fP(iarray* \fIx\fR, size_t \fIpos\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
iarray_init \- initialize iarray data structure
|
||||
.SH SYNTAX
|
||||
.B #include <iarray.h>
|
||||
.B #include <libowfat/iarray.h>
|
||||
|
||||
void \fBiarray_init\fP(array* \fIx\fR, size_t \fIelemsize\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer.h \- generic read/write buffering
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
buffer* buffer_0; /* like stdio's stdin */
|
||||
buffer* buffer_1; /* like stdio's stdout */
|
||||
@ -25,7 +25,7 @@ program termination; you must manually call \fBbuffer_flush\fR,
|
||||
See buffer_init(3) for example read buffer code. Here is typical code
|
||||
for printing an error message on stderr:
|
||||
|
||||
#include <buffer.h>
|
||||
#include <libowfat/buffer.h>
|
||||
|
||||
buffer_puts(buffer_2,"error: got only ");
|
||||
buffer_putulong(buffer_2,got);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_close \- close buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_close\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_feed \- low-level component of buffer_get
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_feed\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_flush \- feed buffer to write function
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_flush\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,8 +2,8 @@
|
||||
.SH NAME
|
||||
buffer_fromarray \- initialize buffer structure from array
|
||||
.SH SYNTAX
|
||||
.B #include <array.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/array.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_fromarray\fR(buffer* \fIb\fR,array* \fIa\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_frombuf \- initialize buffer structure from raw memory
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_frombuf\fR(buffer* \fIb\fR,const char* \fIx\fR, size_t \fIl\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_fromsa \- initialize buffer structure from stralloc
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_fromsa\fR(buffer* \fIb\fR,const stralloc* \fIsa\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_get \- read binary data from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
ssize_t \fBbuffer_get\fP(buffer* \fIb\fR,char* \fIx\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_get_new_token_sa \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_get_new_token_sa\fP(buffer* \fIb\fR,stralloc* \fIsa\fR,
|
||||
const char* \fIcharset\fR,size_t \fIsetlen\fR);
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_get_new_token_sa_pred \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_get_new_token_sa_pred\fP(buffer* \fIb\fR,stralloc* \fIsa\fR,
|
||||
int (*\fIpredicate\fR)(stralloc* * \fIsa\fR));
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_get_token \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
ssize_t \fBbuffer_get_token\fP(buffer* \fIb\fR,char* \fIx\fR,size_t \fIlen\fR,
|
||||
const char* \fIcharset\fR,size_t \fIsetlen\fR);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_get_token_pred \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
ssize_t \fBbuffer_get_token_pred\fP(buffer* \fIb\fR,char* \fIx\fR,size_t \fIlen\fR,
|
||||
int (*\fIpredicate\fR)(const char* \fIs\fR,size_t \fIlen\fR));
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_get_token_sa \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_get_token_sa\fP(buffer* \fIb\fR,stralloc* \fIsa\fR,
|
||||
const char* \fIcharset\fR,size_t \fIsetlen\fR);
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_get_token_sa_pred \- read token from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_get_token_sa_pred\fP(buffer* \fIb\fR,stralloc* \fIsa\fR,
|
||||
int (*\fIpredicate\fR)(stralloc* * \fIsa\fR));
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_getc \- read one char from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_getc\fP(buffer* \fIb\fR,char* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_getline \- read line from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
ssize_t \fBbuffer_getline\fP(buffer* \fIb\fR,char* \fIx\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_getline_sa \- read line from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_getline_sa\fP(buffer* \fIb\fR,stralloc* \fIsa\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_getn \- read binary data from buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
ssize_t \fBbuffer_getn\fP(buffer* \fIb\fR,char* \fIx\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_getnewline_sa \- read line from buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_getnewline_sa\fP(buffer* \fIb\fR,stralloc* \fIsa\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_init \- initialize buffer structure
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_init\fR(buffer &\fIb\fR,
|
||||
ssize_t (*\fIop\fR)(int,char*,size_t),
|
||||
@ -24,8 +24,8 @@ are compile-time constants.
|
||||
You can call buffer_init again at any time. Note that this discards the
|
||||
currently buffered string.
|
||||
.SH EXAMPLE
|
||||
#include <buffer.h>
|
||||
#include <open.h>
|
||||
#include <libowfat/buffer.h>
|
||||
#include <libowfat/open.h>
|
||||
|
||||
char buf[4096];
|
||||
int fd=open_read("/etc/services");
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_init_free \- initialize buffer structure
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_init_free\fR(buffer &\fIb\fR,
|
||||
ssize_t (*\fIop\fR)(int,char*,size_t),
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_mmapread \- create read-only memory-mapped file buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_mmapread\fR(buffer &\fIb\fR,const char* \fIfilename\fR);
|
||||
.SH DESCRIPTION
|
||||
@ -11,8 +11,8 @@ that the contents of the file can be read from it. Using mmap is more
|
||||
efficient than reading through a real buffer, but you have to call
|
||||
buffer_close to unmap the memory in the end.
|
||||
.SH EXAMPLE
|
||||
#include <buffer.h>
|
||||
#include <open.h>
|
||||
#include <libowfat/buffer.h>
|
||||
#include <libowfat/open.h>
|
||||
|
||||
buffer input;
|
||||
char x;
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_peek \- return pointer to string in buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
char* \fBbuffer_peek\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_put \- write binary data to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_put\fP(buffer* \fIb\fR,const char* \fIx\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_put8long \- write an octal ASCII representation of an unsigned
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_put8long\fP(buffer* \fIb\fR,unsigned long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putalign \- write binary data to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putalign\fP(buffer* \fIb\fR,const char* \fIx\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_puterror \- write error string to buffer and flush
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_puterror\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_puterror2 \- write error string to buffer and flush
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_puterror2\fP(buffer* \fIb\fR,int \fIerrnum\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putflush \- write binary data to buffer and flush
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putflush\fP(buffer* \fIb\fR,
|
||||
const char* \fIx\fR,size_t \fIlen\fR);
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_putlong \- write a decimal ASCII representation of a signed
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putlong\fP(buffer* \fIb\fR,signed long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_putlonglong \- write a decimal ASCII representation of a signed
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putlonglong\fP(buffer* \fIb\fR,signed long long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putm \- write ASCIIZ string(s) to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putm\fP(buffer* \fIb\fR,const char* \fIx\fR,...);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putnlflush \- write '\\n' to buffer and flush
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putnlflush\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_puts \- write ASCIIZ string to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_puts\fP(buffer* \fIb\fR,const char* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_putsa \- write stralloc to buffer
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putsa\fP(buffer* \fIb\fR,const stralloc* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,8 +3,8 @@
|
||||
buffer_putsa \- write stralloc to buffer and flush
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/stralloc.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putsaflush\fP(buffer* \fIb\fR,const stralloc* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putsalign \- write ASCIIZ string to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putsalign\fP(buffer* \fIb\fR,const char* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putsflush \- write ASCIIZ string to buffer and flush
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putsflush\fP(buffer* \fIb\fR,const char* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_putspace \- write ASCII space to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putspace\fP(buffer* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_putulong \- write a decimal ASCII representation of an unsigned
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putulong\fP(buffer* \fIb\fR,unsigned long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_putulonglong \- write a decimal ASCII representation of a signed
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putulonglong\fP(buffer* \fIb\fR,unsigned long long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -3,7 +3,7 @@
|
||||
buffer_putxlong \- write a hexidecimal ASCII representation of an unsigned
|
||||
long integer to buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_putxlong\fP(buffer* \fIb\fR,unsigned long \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_seek \- remove bytes from beginning of string in buffer
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
void \fBbuffer_seek\fP(buffer* \fIb\fR,size_t \fIr\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
buffer_tosa \- initialize buffer for writing to stralloc
|
||||
.SH SYNTAX
|
||||
.B #include <buffer.h>
|
||||
.B #include <libowfat/buffer.h>
|
||||
|
||||
int \fBbuffer_tosa\fR(buffer* \fIb\fR,stralloc* \fIsa\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_chr \- search for a byte in a string
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
size_t \fBbyte_chr\fP(const char *\fIhaystack\fR,size_t \fIlen\fR,char \fIneedle\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_copy \- copy a string
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
void \fBbyte_copy\fP(char *\fIout\fR,size_t \fIlen\fR,const char *\fIin\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_copyr \- copy a string
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
void \fBbyte_copyr\fP(char *\fIout\fR,size_t \fIlen\fR,const char *\fIin\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_diff \- compare two strings
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
int \fBbyte_diff\fP(const char *\fIone\fR,size_t \fIlen\fR,const char *\fItwo\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_equal \- compare two strings
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
int \fBbyte_equal\fP(const char *\fIone\fR,size_t \fIlen\fR,const char *\fItwo\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_rchr \- search for a byte in a string
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
size_t \fBbyte_rchr\fP(const char *\fIhaystack\fR,size_t \fIlen\fR,char \fIneedle\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
byte_zero \- initialize a string
|
||||
.SH SYNTAX
|
||||
.B #include <byte.h>
|
||||
.B #include <libowfat/byte.h>
|
||||
|
||||
void \fBbyte_zero\fP(char *\fIout\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
case_diffb \- compare strings case-insensitively
|
||||
.SH SYNTAX
|
||||
.B #include <case.h>
|
||||
.B #include <libowfat/case.h>
|
||||
|
||||
int \fBcase_diffb\fP(const void* \fIa\fR,size_t \fIlen\fR,const void* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
case_diffs \- compare strings case-insensitively
|
||||
.SH SYNTAX
|
||||
.B #include <case.h>
|
||||
.B #include <libowfat/case.h>
|
||||
|
||||
int \fBcase_diffs\fP(const char* \fIa\fR,const char* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
case_lowerb \- compare strings case-insensitively
|
||||
.SH SYNTAX
|
||||
.B #include <case.h>
|
||||
.B #include <libowfat/case.h>
|
||||
|
||||
void \fBcase_lowerb\fP(void* \fIs\fR,size_t \fIlen\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
case_lowers \- compare strings case-insensitively
|
||||
.SH SYNTAX
|
||||
.B #include <case.h>
|
||||
.B #include <libowfat/case.h>
|
||||
|
||||
void \fBcase_lowers\fP(char* \fIs\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
case_starts \- compare prefixes of strings case-insensitively
|
||||
.SH SYNTAX
|
||||
.B #include <case.h>
|
||||
.B #include <libowfat/case.h>
|
||||
|
||||
int \fBcase_starts\fP(const char* \fIa\fR,const char* \fIb\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_datalen \- get length of data
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
unsigned int cdb_datalen(struct cdb *\fIc\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_datapos \- get position of data
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
uint32 cdb_datapos(struct cdb *\fIc\fR);
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SH NAME
|
||||
cdb_find \- look up a key in a constant database
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
.br
|
||||
.B #include <uint32.h>
|
||||
.B #include <libowfat/uint32.h>
|
||||
|
||||
int cdb_find(struct cdb *\fIc\fR,char *\fIkey\fR,unsigned long int \fIkeylen\fR);
|
||||
.br
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SH NAME
|
||||
cdb_firstkey \- find first physical record in constant database
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
.br
|
||||
.B #include <uint32.h>
|
||||
.B #include <libowfat/uint32.h>
|
||||
|
||||
int cdb_firstkey(struct cdb *\fIc\fR,uint32 *\fIkpos\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_free \- close a constant databased
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
int cdb_free(struct cdb *\fIc\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_init \- open a constant database
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
int cdb_init(struct cdb *\fIc\fR,int \fIfd\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_keylen \- get length of key
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
unsigned int cdb_keylen(struct cdb *\fIc\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_keypos \- get position of key
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
uint32 cdb_keypos(struct cdb *\fIc\fR);
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SH NAME
|
||||
cdb_nextkey \- find next physical record in constant database
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
.br
|
||||
.B #include <uint32.h>
|
||||
.B #include <libowfat/uint32.h>
|
||||
|
||||
int cdb_nextkey(struct cdb *\fIc\fR,uint32 *\fIkpos\fR);
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SH NAME
|
||||
cdb_read \- read bytes from a constant database
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
.br
|
||||
.B #include <uint32.h>
|
||||
.B #include <libowfat/uint32.h>
|
||||
|
||||
int cdb_read(struct cdb *\fIc\fR,char *\fIbuf\fR,unsigned long int \fIlen\fR,uint32 \fIposition\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
cdb_successor \- find next record
|
||||
.SH SYNTAX
|
||||
.B #include <cdb.h>
|
||||
.B #include <libowfat/cdb.h>
|
||||
|
||||
int cdb_successor(struct cdb *\fIc\fR,char *\fIkey\fR,unsigned long int \fIklen\fR);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
critbit0_allprefixed \- search a critbit tree by prefix
|
||||
.SH SYNTAX
|
||||
.B #include <critbit.h>
|
||||
.B #include <libowfat/critbit.h>
|
||||
|
||||
critbit0_tree cb = { 0 };
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
critbit0_clear \- free all memory associated with a critbit tree
|
||||
.SH SYNTAX
|
||||
.B #include <critbit.h>
|
||||
.B #include <libowfat/critbit.h>
|
||||
|
||||
critbit0_tree cb = { 0 };
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
critbit0_contains \- check whether a string is in the critbit tree
|
||||
.SH SYNTAX
|
||||
.B #include <critbit.h>
|
||||
.B #include <libowfat/critbit.h>
|
||||
|
||||
critbit0_tree cb = { 0 };
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
critbit0_delete \- delete a string from a critbit tree
|
||||
.SH SYNTAX
|
||||
.B #include <critbit.h>
|
||||
.B #include <libowfat/critbit.h>
|
||||
|
||||
critbit0_tree cb = { 0 };
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
critbit0_insert \- insert a string into a critbit tree
|
||||
.SH SYNTAX
|
||||
.B #include <critbit.h>
|
||||
.B #include <libowfat/critbit.h>
|
||||
|
||||
critbit0_tree cb = { 0 };
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip4 \- look up IPv4 addresses
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip4\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip4_packet \- extract IPv4 address from DNS answer packet
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip4_packet\fP(stralloc* \fIout\fR,const char* \fIbuf\fR,
|
||||
unsigned int \fIlen\fR);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip4_qualify \- qualify name and look up IPv4 addresses
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip4_qualify\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR,
|
||||
const stralloc* \fIudn\fR);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip6 \- look up IPv6 addresses
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip6\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR);
|
||||
.SH DESCRIPTION
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip6_packet \- extract IPv6 address from DNS answer packet
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip6_packet\fP(stralloc* \fIout\fR,const char* \fIbuf\fR,
|
||||
unsigned int \fIlen\fR);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_ip6_qualify \- qualify name and look up IPv6 addresses
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_ip6_qualify\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR,
|
||||
const stralloc* \fIudn\fR);
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SH NAME
|
||||
dns_mx \- look up Mail eXchanger
|
||||
.SH SYNTAX
|
||||
.B #include <dns.h>
|
||||
.B #include <libowfat/dns.h>
|
||||
|
||||
int \fBdns_mx\fP(stralloc* \fIout\fR,stralloc* \fIfqdn\fR);
|
||||
.SH DESCRIPTION
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user