FreeBSD Manual Pages
KSQL_FREE(3) Library Functions Manual KSQL_FREE(3) NAME ksql_free -- free a ksql database handle LIBRARY library "ksql" SYNOPSIS #include <sys/types.h> #include <stdint.h> #include <ksql.h> enum ksqlc ksql_free(struct ksql *sql); DESCRIPTION The ksql_free function frees a database handle sql, previously allo- cated with ksql_alloc(3). This internally invokes ksql_close(3) then frees all internal memory. If the handle was allocated with KSQL_SAFE_EXIT, the handle is removed from the queue of handles that would be freed on exit (so it is not double-freed). If sql is NULL, no action occurs. This function is invoked from the atexit(3) handler if KSQL_SAFE_EXIT was specified and the handle was not freed prior to exiting. In this case, the KSQL_EXIT_ON_ERR flag is temporarily suppressed. RETURN VALUES This returns the error code of ksql_close(3). FreeBSD Ports 14.quarterly April 5, 2018 KSQL_FREE(3)
NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ksql_free&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>