2 ms·
There is already fflush, and it is generally not what people calling fsync want.
by jamesaguilar 13y ago
There is already fflush, and it is generally not what people calling fsync want.
- zurn 13y agofflush is unrelated to the business of flushing data to disk. It's just a libc FILE* thing. It causes libc to empty the (typically tiny) stdio buffer associated with the FILE* using the write() system call.
- jamesaguilar 13y agoOops, my bad.