1cgiwrap_init_emu(3) cgi/cgiwrap.h cgiwrap_init_emu(3)
2
3
4
6 cgiwrap_init_emu - initialize cgiwrap for emulated use
7
9 #include <cgi/cgiwrap.h>
10
11
12 void cgiwrap_init_emu (void *data, READ_FUNC read_cb,
13 WRITEF_FUNC writef_cb, WRITE_FUNC write_cb, GETENV_FUNC getenv_cb,
14 PUTENV_FUNC putenv_cb, ITERENV_FUNC iterenv_cb);
15
16
17
18
20 data - user data to be passed to the specified callbacks
21 read_cb - a cb to replace fread(stdin)
22 writef_cb - a cb to repalce fprintf(stdout)
23 write_cb - a cb to replace fwrite(stdout)
24 getenv_cb - a cb to replace getenv
25 putenv_cb - a cb to replace putenv
26 iterenv_cb - a cb to replace the default environment iteration
27 function (which just wraps walking the envp array)
28
29
31 cgiwrap_init_emu sets up the cgiwrap subsystem for use in an emulated
32 environment where you are providing routines to use in place of the
33 standard routines, ie when used to interface with a server or scripting
34 language. See cgi/cgiwrap.h for the exact definitions of the callback
35 functions.
36
37
39 None
40
41
43 cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgi‐
44 wrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgi‐
45 wrap_read(3), cgiwrap_write(3), cgiwrap_getenv
46
47
48
49ClearSilver 12 July 2007 cgiwrap_init_emu(3)