> You have to use multiple of the sector size here (usually 512 bytes, > but can be 4k now) so I don't find it unreasonable to also expect the > buffer to be aligned on the machine's natural integer size.
If the interface were being designed now, I wouldn't either. But the interface is much older than that, and, even if it's not codified, there's a lot of history behind the notion that userland alignment of write() buffers affects, at most, performance, to the point where I consider it part of the interface. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML mo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B