From dbec02cc26afd39a35a932dc013175664e3a47eb Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Mon, 15 Dec 2014 23:28:20 +0100 Subject: Add since-annotations to new fileSync ops --- System/Posix/Unistd.hsc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'System/Posix') 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 -- cgit v1.2.3