Comment Re:Linus Torvalds: "a spec is close to useless" (Score 1) 421
Wouldn't this be a POSIX-compliant version of write(2)?
ssize_t write(int fd, const void *buf, size_t count)
{
return count;
}
Since there's no guarantee that the data is written until fsync(2) is called, and it hasn't been called at the point fwrite(2) returns, why attempt to write the data at all?