Bug 3458 – int fsync(int) commented out in core.sys.posix.unistd
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2009-10-30T19:01:00Z
Last change time
2015-06-09T01:26:56Z
Assigned to
sean
Creator
leandro.lucarella
Comments
Comment #0 by leandro.lucarella — 2009-10-30T19:01:37Z
I don't know why, but the POSIX function fsync is commented out in the core.sys.posix.unistd module. Same for fdatasync().
Is there any reason for that?
Comment #1 by sean — 2009-10-30T21:48:58Z
It's an optional feature--declarations in POSIX headers are divided into labeled groups--and in the interest of time I've added them as needed. Once I check that these functions are available on Linux and OSX I'll see about adding declarations for them.
Comment #2 by leandro.lucarella — 2009-10-31T21:32:28Z
I think fsync() is pretty common in all posix OSs, and it's essential to do any crash-resistant I/O.
Comment #3 by sean — 2009-12-05T20:43:33Z
Fix is in r210.
Comment #4 by leandro.lucarella — 2009-12-08T13:33:30Z