summaryrefslogtreecommitdiff
path: root/lib/libsys/write.2
AgeCommit message (Collapse)Author
2025-10-26write.2: explain the atomicity guarantees of the writesKonstantin Belousov
Also provide the pointer to the latest POSIX standard that justifies the requirement. Reviewed by: emaste Discussed with: rmacklem Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D53361
2025-07-04write.2: Add EINVAL to ERRORSFelix Johnson
Since phk rewrote the block layer ~2 decades ago, write(2) can return EINVAL when the target is a block device and nbytes, the write size, is not a multiple of the sector's block size. From the original PR: When coming from Linux, people are surprised by the fact that write(2) to a device must be aligned to block size. Writing a non-aligned block onto a raw device is a case where EINVAL is also returned but the manpage does not mention this. MFC after: 3 days PR: 227185 Reported by: riggs Reviewed by: imp, Pau Amma <pauamma@gundo.com> Differential Revision: https://reviews.freebsd.org/D51138
2025-05-27write.2: sweep error code referencing disklabel(8)Robert Wing
The "-W" option for disklabel(8) was retired in: f080d33b66306419b40c2f2a879198d3d5a8d36c The ioctl used by the "-W" option, DIOCWLABEL, was retired in: 5777c5b9895805c33f1da4f72a3b5b297727888b
2024-02-05libsys: relocate implementations and manpagesBrooks Davis
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908