PWRITE(3POSIX)

πŸ’– PWRITE β€” ok bestie, let's write on a file πŸ’–

so this is pwrite(3POSIX), straight out of the POSIX Programmer's Manual ✨ (that's the 3POSIX section, iykyk). Grab a snack, we're doing a whole page πŸ“


🌸 PROLOG 🌸

okay so before literally anything else, the important tea:</purgle>

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. 😭

fr fr bestie, don't come for me if Linux does its own little thing β€” check the Linux page too πŸ’…

✨ NAME ✨

pwrite β€” write on a file πŸ“

that's it. that's the whole name section. short and iconic.


πŸŽ€ SYNOPSIS πŸŽ€

#include <unistd.h>

ssize_t pwrite(int fildes, const void *buf, size_t nbyte,
    off_t offset);

look at that signature. four little args. she's cute, she's precise, she does NOT move your file offset πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Refer to write(). 🫢

yes bestie, that's genuinely the entire description. the manpage said "go read write()" and honestly? valid. slay. periodt. πŸ’…


okay so the legal bit, and we're keeping every word because lawyers are the main characters here:

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

✨ lowkey obsessed with "the original Standard is the referee document" β€” she's the final boss, no appeals 🌈

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

if you spot a typo, it's giving "conversion glitch era" β€” report it at that link, don't @ me πŸ™ˆ

and that's the whole page bestie!! thanks for reading, you ate that πŸ’…

this little beauty came to you courtesy of IEEE/The Open Group, dated 2017, and yes, it's the PWRITE(3POSIX) page β€” go forth and pwrite responsibly πŸ§šπŸ’–