KCGI_WRITER_DISABLE(3)
β¨ KCGI_WRITER_DISABLE β¨
okay so bestie, this one lives in libkcgi (yep, the library literally called "libkcgi") π
and it's giving "final boss of shutting things down" energy.
πΈ SYNOPSIS πΈ
like, here's the whole vibe, verbatim:
#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
void
kcgi_writer_disable(struct kreq *req);
π¦ DESCRIPTION π¦
So kcgi_writer_disable() is that girl who closes the club at 2am π. It disables all subsequent calls to kjson_open(3), kxml_open(3), khtml_open(3), and the whole khttp_write(3) family of writing functions. No more output for you, bestie, the party's over π.
The icon behavior tho β it may be invoked multiple times. That's right, you can call it again and again, it does not care, it's unbothered π .
The whole point of kcgi_writer_disable() is to lock down writes to a given format and guarantee conformant output. It's like sealing the envelope. Nothing else goes in. Periodt β¨.
π¨ Warning bestie, fr fr: after invocation, calling any of the functions listed above will abort(3) the program. Like full-on abort. Not a drill. Not cute. It's literally going to end it π. So get all your writes done before you lock it down, iykyk.
π SEE ALSO π
π«Ά AUTHORS π«Ά
This iconic function was written by Kristaps Dzonsons <kristaps@bsd.lv> β we stan a legend πβ.
and that's the whole page, bestie! no cap, that's everything ππ¦πΈ sign-off time: this lil Debian build with the $Mdocdate$ version stamp is your main character energy for the day β go forth and disable those writers responsibly ππ
β¨
π¦ where this page comes from
- alpine 3.24: kcgi-doc 1.0.1-r0 Β· ISC
- Copyright (c) 2017 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms