filter_create_fp(3)
π filter_create_fp β a whole manual page, bestie π
okay so this is filter_create_fp(3), and it lives in util/filter.h. it's the buffered-stdio glow-up of filter_create_fd, and honestly? she's giving convenient. let's get into it β¨
πΈ NAME πΈ
filter_create_fp β it's literally filter_create_fd, except you get buffered FILE*s instead of raw file descriptors. same energy, softer edges. π«Ά
β¨ SYNOPSIS β¨
#include <util/filter.h>
NEOERR *filter_create_fp(const char *cmd, FILE **in, FILE **out, FILE **err,
pid_t *pid);
that's the whole signature, no cap. π
π ARGUMENTS π
cmdβ the sub-command you wanna execute. and listen, she runs it through/bin/sh -c, so it's giving full shell, not just some bare exec. πinβ a pointer where she'll hand you back the stdin pipe. orNULLif you genuinely do not want the stdin pipe, no pressure. πoutβ pointer to return the stdout pipe.NULLif stdout is not your vibe rn.errβ pointer to return the stderr pipe.NULLif you'd rather not hear it. π
ngl, if you pass NULL for one of these, you just don't get that pipe. she's not gonna invent one for you. periodt.
π¦ DESCRIPTION π¦
so filter_create_fp is identical to filter_create_fd β like, same girl, same brain β except every single one of those pipes is wrapped in a buffered stdio FILE. that's the entire plot twist. buffered. FILE*. slay. π₯
π RETURN VALUE π
inβ the stdinFILEof the sub process πoutβ the stdoutFILEof the sub process βerrβ the stderrFILEof the sub process πpidβ the pid of the sub process π
π SEE ALSO π
filter_wait(3), filter_create_fp(3), filter_create_fd
(no section number on that last one, that's just how she wrote it, iykyk π§)
and that's the page!! this icon was brought to you by ClearSilver, dated 12 July 2007 β vintage but still serving. mwah, go write some filters bestie πβ¨
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms