buffer_close(3)
β¨ NAME β¨
buffer_close β close buffer π
okay bestie, so this is a page straight out of the Library Functions Manual, and today's main character is buffer_close. She does exactly one thing and she does it flawlessly. π
π SYNTAX π
#include <libowfat/buffer.h>
void buffer_close(buffer* b);
yes, that's the whole vibe. one include, one function, zero drama. β¨
π¦ DESCRIPTION π¦
buffer_close closes the file that's associated with the buffer, and it frees/unmaps the memory that's associated with the buffer if buffer_init_free or buffer_mmapread were used. π«Ά
so like β the close-the-file part? always happening. the free/unmap-the-memory part? that's conditional, bestie, it only kicks in when you set things up with buffer_init_free or buffer_mmapread. no cap. πΈ
not me reading "frees/unmaps" twice to make sure I got it right β because both of those words are doing work and you need both of them. π
π SEE ALSO π
the whole squad, honestly. go say hi. π
and that's the tea π this lil page is buffer_close(3) from the Library Functions Manual, and it's signed off the same way it came in β just buffer_close(3), no source, no version, no date, just vibes. periodt. π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms