KCGI_WRITER_GET(3) Library Functions Manual KCGI_WRITER_GET(3)

kcgi_writer_getopen a writer allocation

library “libkcgi”

#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>

struct kcgi_writer *
kcgi_writer_get(struct kreq *req, int type);

The () function opens a writer from request r for subsequent use by the kcgi_writer_write(3) family. The type argument is reserved for future use and should be set to zero. It may only be used prior to kcgi_writer_disable(3), otherwise it will cause a program abort.

Returns a writer or NULL if allocation fails.

kcgi_writer_disable(3), kcgi_writer_write(3)

This function was written by Kristaps Dzonsons <kristaps@bsd.lv>.

December 2, 2023 OpenBSD 7.4