This project is mirrored from https://github.com/haskell/unix. Pull mirroring updated .
  1. 08 Sep, 2016 1 commit
  2. 06 Sep, 2016 1 commit
    • Erik de Castro Lopo's avatar
      Don't use readdir_r if deprecated · 2951cd01
      Erik de Castro Lopo authored
      GNU glibc 2.23 and later deprecate `readdir_r` in favour of plain old
      `readdir` which in some upcoming POSIX standard is going to required to be
      re-entrant.
      
      Eventually we want to drop `readder_r` all together, but want to be
      compatible with older unixen which may not have a re-entrant `readdir`.
      
      Solution is to make systems with *known* re-entrant `readir` use that and
      use `readdir_r` whereever we have it and don't *know* that `readdir` is
      re-entrant.
      
      Closes: https://github.com/haskell/unix/issues/70
      2951cd01
  3. 31 Jan, 2016 4 commits
  4. 30 Jan, 2016 14 commits
  5. 16 Nov, 2015 1 commit
  6. 19 Dec, 2014 1 commit
    • Erik de Castro Lopo's avatar
      Fix SIGINFO and SIGWINCH. · 3c4ced48
      Erik de Castro Lopo authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
      It seems these two signals have not been working since at least
      2009. Detection of these signals seems to have never been added to
      the configure.ac script and the code guarded by #ifdef then bit-rotted
      (the idiom used to handle these signals seems to have been abandoned
      for something simpler/better in 2009). This fix simply handles these
      signals the same way the other signals are handled in
      System/Posix/Signals.hsc.
      
      Closes #30 and #31
      3c4ced48
  7. 25 Jan, 2013 1 commit
    • Simon Marlow's avatar
      Indicate whether a process dumped core in the ProcessStatus · dc29d55b
      Simon Marlow authored
      The Bool field of Terminated is new, as is the documentation:
      
      data ProcessStatus
         = Exited ExitCode        -- ^ the process exited by calling
                                  -- @exit()@ or returning from @main@
         | Terminated Signal Bool -- ^ the process was terminated by a
                                  -- signal, the @Bool@ is @True@ if a core
                                  -- dump was produced
         | Stopped Signal         -- ^ the process was stopped by a signal
         deriving (Eq, Ord, Show)
      
      This is an API change, hence will need a major version bump.
      dc29d55b
  8. 19 Oct, 2012 1 commit
  9. 09 Jan, 2012 2 commits
  10. 06 Jan, 2012 1 commit
  11. 01 Aug, 2011 1 commit
    • Ian Lynagh's avatar
      Remove some antiquated C constructs · 97adc8f6
      Ian Lynagh authored
      Fixes validate on amd64/Linux with:
      
      SRC_CC_OPTS += -Wmissing-parameter-type
      SRC_CC_OPTS += -Wold-style-declaration
      SRC_CC_OPTS += -Wold-style-definition
      97adc8f6
  12. 23 Jul, 2009 1 commit
    • Simon Marlow's avatar
      NetBSD does not have support for symbol versioning, so updated systen · 4eac1ce4
      Simon Marlow authored
      functions need to be given a new name, and the header files contain
      some __asm hackery in order to let the program call the correct function.
      
      This mean that you need to use the header files in order to call the
      correct system functions, which prevents things like "foreign import ccall" from working.
      
      Ghc solves this with wrapper functions for some of the renamed functions,
      but it has not been updated for newer versions of NetBSD that has recently
      versioned some more functions.
      
      The attached patches introduces wrapper functions for all currently
      NetBSD-versioned functions used in libraries/unix.  Solves ~20 testsuite
      failures.
      
      Contributed by: Krister Walfridsson <krister.walfridsson@gmail.com>
      4eac1ce4
  13. 11 Feb, 2009 1 commit
  14. 21 Aug, 2008 1 commit
  15. 12 Sep, 2002 1 commit