Hacker News new | past | comments | ask | show | jobs | submit login

There is already fflush, and it is generally not what people calling fsync want.



fflush 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.


Oops, my bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: