io_appendfile(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, welcome to io_appendfile(3) from the Library Functions Manual. The whole assignment? open a file for appending. That's it. That's the vibe. no cap. πŸ’–


πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/io.h>

int io_appendfile(int64* d,const char* filename);

πŸ’… DESCRIPTION πŸ’…

vibe check: io_appendfile sets d to the number of a new descriptor that writes to the end of the disk file named filename, and returns 1. Iconic. Obsessed. ✨

And if that file does not exist? Not me being helpful β€” it will be created with mode 0600. πŸŽ€

But if something goes wrong, bestie, it's giving error. 😭 io_appendfile sets errno to indicate the error, and returns 0. It does not create a new descriptor, and it does not touch d. d stays exactly where it was. periodt. πŸ’…

🌈 SEE ALSO 🌈


That's the whole page: io_appendfile(3) from the Library Functions Manual. The footer is just the page name β€” no extra date or version tea, fr fr. Stay append-y, bestie. πŸ’–βœ¨πŸ¦‹