This project is mirrored from https://github.com/haskell/unix. Pull mirroring updated .
  1. 03 Dec, 2015 1 commit
  2. 16 Nov, 2015 3 commits
  3. 28 Oct, 2015 1 commit
  4. 09 Mar, 2015 1 commit
  5. 08 Mar, 2015 1 commit
    • argiopeweb's avatar
      Adds a more comprehensive check for fdatasync · b06446ed
      argiopeweb authored
      Some versions of OS X have fdatasync in the headers but don't include implementations in the standard library. This leads to a compile failure in configure.ac when using AC_CHECK_FUNCS.
      
      This change explicitly attempts to compile a file containing a call to fdatasync and properly sets the AC_CHECK_FUNCS flags depending on the result of compilation.
      b06446ed
  6. 27 Dec, 2014 1 commit
  7. 24 Dec, 2014 1 commit
  8. 23 Dec, 2014 2 commits
  9. 19 Dec, 2014 6 commits
  10. 15 Dec, 2014 3 commits
  11. 09 Dec, 2014 2 commits
  12. 07 Dec, 2014 2 commits
  13. 06 Dec, 2014 10 commits
  14. 07 Nov, 2014 1 commit
  15. 23 Oct, 2014 1 commit
  16. 18 Oct, 2014 4 commits
    • Herbert Valerio Riedel's avatar
      Merge pull request #5 from hvr/pr-LFS · 5970f506
      Herbert Valerio Riedel authored
      Fix potential LFS related issues
      5970f506
    • kgardas's avatar
      fix _FILE_OFFSET_BITS redefined warning on Solaris/x86 · 1b53296f
      kgardas authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
      The issue is that sys/types.h header on Solaris includes somehow
      /usr/include/sys/feature_tests.h which tests if _FILE_OFFSET_BITS
      is defined and if not, then it defines it to 32 if we're compiling
      32 bit code (x86). This is simply wrong since we'd like to have it
      defined to 64. The issue is solved by including HsUnixConfig.h first
      which defines _FILE_OFFSET_BITS to 64 and feature_tests.h is later
      OK with that.
      1b53296f
    • Herbert Valerio Riedel's avatar
      Use CAPI FFI imports for `truncate` · bc4bd179
      Herbert Valerio Riedel authored
      This makes sure we pick up the LFS version of `truncate` in case `off_t`
      is affected by CPP defines such as `_FILE_OFFSET_BITS`.
      bc4bd179
    • Herbert Valerio Riedel's avatar
      Use correct POSIX offset-type for tell/seekdir · 43343c15
      Herbert Valerio Riedel authored
      This fixes the FFI imports to use the proper `CLong` type over the
      previous incorrect `COff` type, as using the wrong argument type can
      cause problems when the `long` and `off_t` types have different size.
      
      Historic note from the manual page:
      
        In glibc up to version 2.1.1, the return type of telldir() was off_t.
        POSIX.1-2001 specifies long, and this is the type used since glibc
        2.1.2 (released in 1999).
      43343c15