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

The package is not supported under Windows.

Changes

Changelog for unix package

2.7.2.1 Nov 2016

  • Don't use readdir_r if its deprecated.

  • Add argument documentation for Env modules

2.7.2.0 Apr 2016

  • Bundled with GHC 8.0.1

  • Don't assume non-POSIX WCOREDUMP(x) macro exists

  • Don't assume existence of termios(3) constants beyond B38400

  • Don't assume existence of ctermid(3)/tcdrain(3)

  • Change drainOutput's tcdrain(3) into a safe FFI call

  • Turn build error into compile warnings for exotic struct stat configurations (GHC #8859)

  • Improve detection of fdatasync(2) (GHC #11137)

  • Drop support for Hugs

  • Drop support for Cygwin (and Windows in general)

2.7.1.0 Dec 2014

  • Bundled with GHC 7.10.1

  • Add support for base-4.8.0.0

  • Tighten SafeHaskell bounds for GHC 7.10+

  • Add haddock comments on RTLD_NEXT and RTLD_DEFAULT

  • Deprecate function haveRtldLocal

  • Fix getGroupEntryForID/getGroupEntryForName on Solaris. Solaris uses CPP macros for required getgrgid_r and getgrnam_r functions definition so the fix is to change from C ABI calling convention to C API calling convention

  • Fix potential type-mismatch in telldir/seekdir FFI imports

  • Use CAPI FFI import for truncate to make sure the LFS-version is used.

  • executeFile: Fix ENOTDIR error for entries with non-directory components in PATH (and instead skip over non-directory PATH-elements)

  • New functions in System.Posix.Unistd:
    • fileSynchronise (aka fsync(2)), and
    • fileSynchroniseDataOnly (aka fdatasync(2))
  • New module System.Posix.Fcntl providing
    • fileAdvise (aka posix_fadvise(2)), and
    • fileAllocate (aka posix_fallocate(2))
  • Fix SIGINFO and SIGWINCH definitions

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
Depends on:
Used by 606 packages:
AGI, Barracuda, Buster, Cabal, Cabal-ide-backend, CabalSearch, Capabilities, Clipboard, DMuCheck, DPM, DSTM, Data-Rope, Ebnf2ps, EsounD, EtaMOO, Etage, Extra, FileManip, Grow, HAppS-Server, HAppS-State, HDRUtils, HFuse, HNM, HSFFIG, HSH, HSHHelpers, HTF, Hashell, Hmpf, Holumbus-Distribution, Holumbus-MapReduce, Holumbus-Searchengine, Holumbus-Storage, HongoDB, HsOpenSSL-x509-system, JYU-Utils, KiCS, LazyVault, Lucu, MagicHaskeller, MissingH, NXT, Nomyx-Core, Parry, Pipe, Quelea, RollingDirectory, ScratchFs, Scurry, Shellac, SimpleH, Snusmumrik, TBC, Unixutils, Unixutils-shadow, WL500gPControl, Wheb, XAttr, Xec, ZFS, accelerate-cuda, access-time, acid-state, agentx, airship, ajhc, alpha, alsa-mixer, angel, ansi-terminal, arbtt, archive, arena, astrds, augeas, autoproc, azubi, bamboo, bamboo-theme-mini-html5, base-compat, baskell, bein, bert, bff, bidirectionalization-combined, bimap-server, bind-marshal, bindings-bfd, bindings-saga-cmd, biohazard, bitcoin-rpc, bkr, bla, blink1, blubber, blubber-server, bluetile, bogocopy, brainfuck, btrfs, bytestring-mmap, c10k, cabal-debian, cabal-install, cabal-install-bundle, cabal-install-ghc72, cabal-install-ghc74, cabal-rpm, cabal-test-bin, cabal2spec, cabin, canteven-config, canteven-http, cautious-file, cblrepo, cctools-workqueue, chatty, clash-ghc, cloudyfs, cnc-spec-compiler, colock, compact-socket, concurrent-output, conduit-combinators, conduit-find, config-select, conjure, console-program, court, cr, craft, creatur, criu-rpc, crunghc, crypto-random, crypto-totp, cursedcsv, daemonize-doublefork, daemons, darcs, darcs-beta, darcs-buildpackage, darcs-cabalized, darcswatch, data-rope, datapacker, dbus, dbus-core, debian, dedukti, definitive-filesystem, devil, dfsbuild, diagrams-cairo, diffdump, direct-daemonize, direct-http, directory, directory-layout, dirstream, distributed-process-azure, doc-review, dockercook, dot-linker, dotfs, dynamic-linker-template, dyre, easy-file, ec2-unikernel, editor-open, editpipe, ekg-log, entropy, epoll, esotericbot, executable-path, extra, fast-logger, fcd, fdo-trash, fenfire, fernet, filelock, filesystem-conduit, filesystem-enumerator, filesystem-trees, find-conduit, flock, foscam-sort, fquery, fresco-binding, fswatcher, funion, futun, gf, ghc-options, ghc-usage, ghci, ghci-haskeline, ghci-ng, ghcid, ghclive, ght, giak, ginsu, git-all, git-annex, git-mediate, git-monitor, git-repair, git-vogue, gitHUD, github-backup, gitlib, glirc, google-oauth2-for-cli, gopherbot, graceful, gt-tools, gtkrsync, h-gpgme, hBDD-CMUBDD, hBDD-CUDD, hR, hack-handler-epoll, hack2-handler-mongrel2-http, hackage-repo-tool, hackage-server, hackport, hadoop-rpc, hadoop-tools, haggis, hails, halfs, hans, happstack-contrib, happstack-server, happstack-server-tls, happstack-server-tls-cryptonite, happstack-state, happstack-util, harchive, hascar, hascat, hascat-system, haskakafka, haskeem, haskeline, haskell-cnc, haskell-ftp, haskell-platform-test, haskell-player, haskoin-wallet, haskore-realtime, haskore-supercollider, hasktags, haste-compiler, hback, hbro, hbro-contrib, hcwiid, hdaemonize, hdaemonize-buildfix, hdevtools, hdm, hdo, helics, hell, hellnet, hesh, heyefi, hfsevents, hg-buildpackage, hgdbmi, hifi, himerge, hinotify, hinotify-bytestring, hint, hlwm, hmk, hmp3, hog, holy-project, hoodle-render, hoovie, houseman, hpath, hpc-tracer, hpio, hpodder, hsConfigure, hsay, hsbencher, hsc3-forth, hsc3-lisp, hsc3-server, hscaffold, hscamwire, hscuid, hscurses, hscurses-fish-ex, hsdev, hsenv, hslackbuilder, hslogger, hsntp, hspkcs11, hsshellscript, hsubconvert, hsyslog-udp, htsn, http-server, hub, hulk, hums, hw-kafka-client, hwall-auth-iitk, hws, hydra-print, hyena, ib-api, ibus-hs, ide-backend, ide-backend-common, ide-backend-server, idris, ihaskell, ihaskell-widgets, inline-r, intel-aes, intero, io-capture, ioctl, ipatch, ipcvar, iptadmin, ircbot, iterIO, iteratee, iteratee-mtl, iterio-server, java-bridge, jsaddle-webkit2gtk, jsaddle-webkitgtk, juandelacosa, katip, keenser, keiretsu, keter, keysafe, khph, kit, kqueue, lambdabot-core, lambdabot-misc-plugins, lambdabot-utils, language-puppet, legion, leksah, leksah-server, lhc, libexpect, liboleg, libpq, libvirt-hs, linkchk, linux-evdev, linux-file-extents, linux-inotify, linux-namespaces, linux-perf, linux-ptrace, lio-eci11, lio-fs, liquidhaskell, live-sequencer, log-warper, lord, macosx-make-standalone, majordomo, make-hard-links, manatee, manatee-anything, manatee-core, manatee-ircclient, manatee-mplayer, manatee-terminal, marquise, mathblog, mcm, mighttpd, mighttpd2, minimung, miniplex, mohws, mole, monky, mp, mpdmate, mpvguihs, mtp, mud, mueval, music-preludes, music-util, mywatch, nanocurses, nc-indicators, netlink, nettle-netkit, network, network-bytestring, network-dbus, network-minihttp, network-msg, network-server, ngx-export, nixfromnpm, nomyx-core, nptools, openssh-github-keys, openssl-createkey, orchid, pager, pagure-hook-receiver, pandoc, paranoia, perdure, persona-idp, pgdl, photoname, pi-lcd, pid1, pidfile, pipes-cliff, pipes-files, plailude, pomodoro, popenhs, ports, posix-acl, posix-filelock, posix-paths, posix-pty, posix-realtime, posix-timer, posix-waitpid, postgresql-orm, postgrest, postgrest-ws, postmaster, powermate, prefork, preprocess-haskell, proc-net, process, process-leksah, process-progress, propellor, pugs-compat, pulseaudio, pushme, quipper, quipper-rendering, randfile, rapid-term, rawfilepath, redHandlers, reflex-dom, reserve, resolve-trivial-conflicts, restricted-workers, riot, robin, roshask, rpf, rtnetlink, rts-loader, salvia, scion-browser, scope, scp-streams, scroll, scrz, selfrestart, selinux, sensei, sentry, serial, serialport, servant-auth-hmac, setenv, shake, shared-buffer, shared-memory, shelduck, shell-conduit, shell-monad, shellmate, shqq, sifflet, sifflet-lib, signal, simple-sendfile, sindre, sizes, smartword, snap-loader-dynamic, snap-server, socket-activation, source-code-server, sox, sproxy, sproxy-web, sproxy2, spy, sr-extra, srcinst, sshtun, stack, stm-promise, streaming-commons, strictify, super-user-spark, sync-mht, system-fileio, system-lifted, system-posix-redirect, system-util, systemd, task, tasty-integrate, temporary, temporary-rc, temporary-resourcet, termplot, test-sandbox, test-sandbox-compose, testloop, text-show-instances, threadscope, timezone-unix, tinyMesh, traildb, tuntap, turtle, twidge, uacpid, udbus, udev, unbreak, uni-posixutil, unix-compat, unix-fcntl, unix-handle, unix-process-conduit, unix-pty-light, unlambda, unused, vaultaire-common, vgrep, vigilance, vk-posix-pty, vty, vty-examples, vty-ui, wai-app-file-cgi, wai-cli, wai-extra, wai-graceful, wai-logger, wai-logger-prefork, wai-middleware-static-caching, warp, warp-tls-uid, webapp, webserver, witty, wrecker, wybor, xattr, xchat-plugin, xml-prettify, xmltv, xmobar, xmonad, xmonad-bluetilebranch, xmonad-contrib, xmonad-contrib-bluetilebranch, xmonad-entryhelper, xmonad-eval, xmonad-extras, xmonad-utils, xmonad-wallpaper, xsact, yeganesh, yesod, yesod-tls, yi-core, yjftp, yjftp-libs, zip-archive, zoom-cache, ztail
comments powered byDisqus