|
NAMEksql_alloc_child —
allocate a ksql database handle in split-process mode
LIBRARYlibrary “ksql”SYNOPSIS#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
struct ksql *
DESCRIPTIONTheksql_alloc_child function creates a SQLite database
handle. It must be matched by a call to
ksql_free(3)
unless KSQL_SAFE_EXIT is specified, in which case it
will be freed on exit. (It is still good practice to manually free.) It is
usually followed by
ksql_open(3).
The If cfg is The onfork function, if specified, is invoked by the child after a successful fork(2) with the arg variable. The process environment within which onfork is invoked is prior to its being sandboxed. RETURN VALUESThis returns the allocated database handle orNULL if an
error occurs.
SEE ALSOksql_cfg_defaults(3), ksql_free(3)
Visit the GSP FreeBSD Man Page Interface. |