KCGI_WRITER_GET(3)
Library Functions Manual
KCGI_WRITER_GET(3)
NAME
kcgi_writer_get
—
open a writer allocation
LIBRARY
library “libkcgi”
SYNOPSIS
#include
<sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
struct kcgi_writer *
kcgi_writer_get
(struct kreq
*req, int type);
DESCRIPTION
The
kcgi_writer_get
()
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.
RETURN VALUES
Returns a writer or NULL
if allocation
fails.
SEE ALSO
AUTHORS
This function was written by Kristaps Dzonsons <kristaps@bsd.lv>.
September 15,
2024 OpenBSD 7.5