unix

POSIX functionality

Version on this page:2.7.0.1
LTS Haskell 22.17:2.8.4.0
Stackage Nightly 2024-04-14:2.8.4.0
Latest on Hackage:2.8.5.1

See all snapshots unix appears in

BSD-3-Clause licensed
Maintained by [email protected]
This version can be pinned in stack with:unix-2.7.0.1@sha256:258fab4e626b0628dd3a3c3fd99290103f865bbbf449c98cc25a11487a0c7bc9,3304

Module documentation for 2.7.0.1

  • System
    • System.Posix
      • System.Posix.ByteString
        • System.Posix.ByteString.FilePath
      • System.Posix.Directory
        • System.Posix.Directory.ByteString
      • System.Posix.DynamicLinker
        • System.Posix.DynamicLinker.ByteString
        • System.Posix.DynamicLinker.Module
          • System.Posix.DynamicLinker.Module.ByteString
        • System.Posix.DynamicLinker.Prim
      • System.Posix.Env
        • System.Posix.Env.ByteString
      • System.Posix.Error
      • System.Posix.Files
        • System.Posix.Files.ByteString
      • System.Posix.IO
        • System.Posix.IO.ByteString
      • System.Posix.Process
        • System.Posix.Process.ByteString
        • System.Posix.Process.Internals
      • System.Posix.Resource
      • System.Posix.Semaphore
      • System.Posix.SharedMem
      • System.Posix.Signals
        • System.Posix.Signals.Exts
      • System.Posix.Temp
        • System.Posix.Temp.ByteString
      • System.Posix.Terminal
        • System.Posix.Terminal.ByteString
      • System.Posix.Time
      • System.Posix.Unistd
      • System.Posix.User

This package gives you access to the set of operating system services standardised by POSIX 1003.1b (or the IEEE Portable Operating System Interface for Computing Environments - IEEE Std. 1003.1).

The package is not supported under Windows (except under Cygwin).

Changes

2.7.0.1 Mar 2014

  • Bundled with GHC 7.8.1

  • Handle EROFS and ETXTBSY as (non-exceptional) permission denied in fileAccess

  • Fix getFileStatus to retry stat(2) when it returns EAGAIN (this can happen on Solaris)

2.7.0.0 Nov 2013

  • New forkProcessWithUnmask function in the style of forkIOWithUnmask

  • Change forkProcess to inherit the exception masking state of its caller

  • Add new Bool flag to ProcessStatus(Terminated) constructor indicating whether a core dump occured

  • New functions in System.Posix.Files{,.ByteString} for operating on high resolution file timestamps:

    setFdTimesHiRes :: Fd -> POSIXTime -> POSIXTime -> IO ()
    setFileTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
    setSymbolicLinkTimesHiRes :: FilePath -> POSIXTime -> POSIXTime -> IO ()
    touchFd :: Fd -> IO ()
    touchSymbolicLink :: FilePath -> IO ()
    
  • Export SignalInfo(..) and SignalSpecificInfo(..) as well as the two Handler constructors CatchInfo and CatchInfoOnce from System.Posix.Signals

  • Don’t export seekDirStream and tellDirStream if the underlying seekdir(3)/telldir(3) system calls are not available (as on Android)

  • Fix library detection of shm* on openSUSE (#8350)

  • Minor documentation fixes/updates

  • Update package to cabal-version >= 1.10 format

2.6.0.1 Jan 2013

  • Bundled with GHC 7.6.2
  • Fix memory corruption issue in putEnv
  • Use pthread_kill(3) instead of raise(2) on OS X too

2.6.0.0 Sep 2012

  • Bundled with GHC 7.6.1
  • New functions mkdtemp and mkstemps in System.Posix.Temp
  • New functions setEnvironment and cleanEnv
  • New functions accessTimeHiRes, modificationTimeHiRes, and statusChangeTimeHiRes for accessing high resolution timestamps