Skip to content
Snippets Groups Projects
  1. Dec 19, 2014
  2. Dec 15, 2014
  3. Dec 09, 2014
  4. Dec 07, 2014
  5. Dec 06, 2014
  6. Nov 07, 2014
  7. Oct 23, 2014
  8. Oct 18, 2014
    • 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
  9. Sep 27, 2014
  10. Sep 26, 2014
  11. Sep 21, 2014
  12. Sep 16, 2014
  13. Sep 10, 2014
Loading