KCGI_WRITER_DISABLE(3) Library Functions Manual KCGI_WRITER_DISABLE(3)

kcgi_writer_disable
disable further writer allocations

library “libkcgi”

#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
void
kcgi_writer_disable(struct kreq *req);

The kcgi_writer_disable() function disables subsequent calls to kjson_open(3), kxml_open(3), khtml_open(3), and the khttp_write(3) family of writing functions. It may be invoked multiple times. The purpose of kcgi_writer_disable() is to lock down writes to a given format and guarantee conformant output.
After invocation, calling any of the above functions will abort(3) the program.

kcgijson(3), kcgixml(3), kcgihtml(3)

This function was written by Kristaps Dzonsons <kristaps@bsd.lv>.
January 23, 2018 OpenBSD 6.4