POSIX functionality https://github.com/haskell/unix

Version on this page:
LTS Haskell 9.14:
Stackage Nightly 2017-11-20:
Latest on Hackage:
BSD3 licensed
Maintained by libraries@haskell.org

Module documentation for

There are no documented modules for this package.

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.


Changelog for unix package May 2017

  • Bundled with GHC 8.2.1

  • Improve Autoconf detection of telldir/seekdir and define _POSIX_VDISABLE if missing for Android (#91,#90)

  • Fix error message of createSymbolicLink (#84) Nov 2016

  • Bundled with GHC 8.0.2

  • Don't use readdir_r if its deprecated.

  • Add argument documentation for Env modules 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) Dec 2014

  • Bundled with GHC 7.10.1

  • Add support for base-

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