|
NAMEkhttp_fcgi_init ,
khttp_fcgi_initx —
initialise a FastCGI context for kcgi
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
enum kcgi_err
enum kcgi_err
DESCRIPTIONThekhttp_fcgi_init () and
khttp_fcgi_initx () functions initialise a FastCGI
context for
kcgi(3).
These functions will only work if invoked as FastCGI servers, for example,
kfcgi(8).
They should be called as early as possible in the life-span of a FastCGI
application, preferably directly after initialisation.
The collective arguments are defined in khttp_parse(3). Function arguments are not copied: all pointers are passed by reference and used in later invocations of khttp_fcgi_parse(3). The first form, khttp_fcgi_initx(fcgi, kmimetypes, KMIME__MAX, keys, keysz, ksuffixmap, KMIME_TEXT_HTML, pages, pagesz, defpage, NULL, NULL, 0, NULL); After invocation with a return value of
Note: in accordance with the FastCGI
specification, RETURN VALUESkhttp_fcgi_init () and
khttp_fcgi_initx () return an error code:
On failure, the calling application should terminate as soon as possible. SEE ALSOkcgi(3), khttp_fcgi_free(3), khttp_fcgi_parse(3), khttp_parse(3)AUTHORSThekhttp_fcgi_init () and
khttp_fcgi_initx () functions were written by
Kristaps Dzonsons
<kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |