[commit: packages/unix] master: Add since-annotations to new fileSync ops (dbec02c)
git at git.haskell.org
git at git.haskell.org
Thu Mar 19 15:51:00 UTC 2015
Repository : ssh://git@git.haskell.org/unix
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/dbec02cc26afd39a35a932dc013175664e3a47eb/unix
>---------------------------------------------------------------
commit dbec02cc26afd39a35a932dc013175664e3a47eb
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Mon Dec 15 23:28:20 2014 +0100
Add since-annotations to new fileSync ops
>---------------------------------------------------------------
dbec02cc26afd39a35a932dc013175664e3a47eb
System/Posix/Unistd.hsc | 4 ++++
1 file changed, 4 insertions(+)
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
More information about the ghc-commits
mailing list