packages feed

unix-bytestring 0.3.6 → 0.3.7

raw patch · 3 files changed

+13/−13 lines, 3 files

Files

VERSION view
@@ -1,3 +1,7 @@+0.3.7 (2013-08-08):+	- System.Posix.IO.ByteString: updated fdSeek and tryFdSeek+	  to use the unix-2.6.0.1 implementation (replacing the old+	  unix-2.4.2.0 implementation) 0.3.6 (2013-05-29): 	- System.Posix.Types.Iovec: adjusted unsafeForeignPtrToPtr for GHC 7.8 0.3.5.4 (2012-08-23):
src/System/Posix/IO/ByteString.hsc view
@@ -24,7 +24,7 @@ {-# LANGUAGE ForeignFunctionInterface #-} {-# OPTIONS_GHC -fwarn-tabs #-} -------------------------------------------------------------------                                                    2012.08.23+--                                                    2013.08.08 -- | -- Module      :  System.Posix.IO.ByteString -- Copyright   :  Copyright (c) 2010--2012 wren ng thornton@@ -90,6 +90,7 @@  import           System.IO                (SeekMode(..)) import qualified System.IO.Error          as IOE+import qualified System.Posix.Internals   as Base import           System.Posix.Types.Iovec import           System.Posix.Types       ( Fd, ByteCount, FileOffset                                           , CSsize(..), COff(..))@@ -754,12 +755,7 @@   ------------------------------------------------------------------- It's not clear whether the @unix@ version uses a safe or unsafe call.-foreign import ccall safe "lseek"-    -- off_t lseek(int fildes, off_t offset, int whence);-    c_safe_lseek :: CInt -> COff -> CInt -> IO COff - mode2Int :: SeekMode -> CInt mode2Int AbsoluteSeek = (#const SEEK_SET) mode2Int RelativeSeek = (#const SEEK_CUR)@@ -771,14 +767,14 @@ -- POSIX.1 @lseek(2)@ system call. If there are any errors, then -- they are thrown as 'IOE.IOError' exceptions. ----- This is the same as 'System.Posix.IO.fdSeek' in @unix-2.4.2.0@,+-- This is the same as 'System.Posix.IO.fdSeek' in @unix-2.6.0.1@, -- but provided here for consistency. -- -- /Since: 0.3.5/ fdSeek :: Fd -> SeekMode -> FileOffset -> IO FileOffset fdSeek fd mode off =     C.throwErrnoIfMinus1 "fdSeek"-        $ c_safe_lseek (fromIntegral fd) off (mode2Int mode)+        $ Base.c_lseek (fromIntegral fd) off (mode2Int mode)   -- | Repositions the offset of the file descriptor according to the@@ -790,7 +786,7 @@ tryFdSeek :: Fd -> SeekMode -> FileOffset -> IO (Either C.Errno FileOffset) tryFdSeek fd mode off =     eitherErrnoIfMinus1-        $ c_safe_lseek (fromIntegral fd) off (mode2Int mode)+        $ Base.c_lseek (fromIntegral fd) off (mode2Int mode)  ---------------------------------------------------------------- ----------------------------------------------------------- fin.
unix-bytestring.cabal view
@@ -1,5 +1,5 @@ ------------------------------------------------------------------- wren ng thornton <wren@community.haskell.org>    ~ 2013.05.29+-- wren ng thornton <wren@community.haskell.org>    ~ 2013.08.08 ----------------------------------------------------------------  -- By and large Cabal >=1.2 is fine; but >= 1.6 gives tested-with:@@ -8,8 +8,8 @@ Build-Type:     Simple  Name:           unix-bytestring-Version:        0.3.6-Stability:      experimental+Version:        0.3.7+Stability:      provisional Homepage:       http://code.haskell.org/~wren/ Author:         wren ng thornton Maintainer:     wren@community.haskell.org@@ -33,7 +33,7 @@     an @Fd@, so we're not offering a complete replacement.  Tested-With:-    GHC == 6.12.1, GHC == 6.12.3, GHC == 7.6.1+    GHC == 6.12.1, GHC == 6.12.3, GHC == 7.4.2, GHC == 7.6.1 Extra-source-files:     README, VERSION Source-Repository head