diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-12-15 23:28:20 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-12-15 23:28:20 +0100 |
commit | dbec02cc26afd39a35a932dc013175664e3a47eb (patch) | |
tree | 7ac64d3daa5c04072c852049ca54d2980ffb0c72 /System | |
parent | e14fbe2cb3bbd604dadcc3847882ca37edf548b3 (diff) |
Add since-annotations to new fileSync ops
Diffstat (limited to 'System')
-rw-r--r-- | System/Posix/Unistd.hsc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/System/Posix/Unistd.hsc b/System/Posix/Unistd.hsc index 2cbfaa2..3b8d2e4 100644 --- a/System/Posix/Unistd.hsc +++ b/System/Posix/Unistd.hsc @@ -228,6 +228,8 @@ foreign import ccall unsafe "sysconf" -- Throws 'IOError' (\"unsupported operation\") if platform does not -- provide @fsync(2)@ (use @#if HAVE_FSYNC@ CPP guard to -- detect availability). +-- +-- /Since: 2.7.1.0/ fileSynchronise :: Fd -> IO () #if HAVE_FSYNC fileSynchronise fd = do @@ -247,6 +249,8 @@ fileSynchronise _ = ioError (ioeSetLocation unsupportedOperation -- Throws 'IOError' (\"unsupported operation\") if platform does not -- provide @fdatasync(2)@ (use @#if HAVE_FDATASYNC@ CPP guard to -- detect availability). +-- +-- /Since: 2.7.1.0/ fileSynchroniseDataOnly :: Fd -> IO () #if HAVE_FDATASYNC fileSynchroniseDataOnly fd = do |