This project is mirrored from https://github.com/haskell/unix. Pull mirroring updated .
  1. 30 Jul, 2022 1 commit
    • sheaf's avatar
      Avoid redundant pattern warning in Resource.hsc · 074b2dd7
      sheaf authored
      With GHC MR !8478, GHC is able to spot a redundant pattern match
      when RLIM_SAVED_CUR == RLIM_SAVED_MAX, which it wasn't able to
      detect before. So we use considerAccessible to avoid a pattern match
      check. This unfortunately means we must change the SafeHaskell status
      of that module to TrustWorth, as considerAccessible is from GHC.Exts,
      which isn't safe.
      
      Alternatives:
      
        - we can't perform the equality test RLIM_SAVED_CUR == RLIM_SAVED_MAX
          using CPP macros, because one of the values might expand out to
          have casts;
        - turning off pattern match warnings impacts warnings across the whole
          module, instead of the single affected function,
        - adding a dummy equation such as "id True" to the first pattern match
          would work, but seems more ad-hoc.
      074b2dd7
  2. 30 May, 2022 1 commit
  3. 29 Apr, 2022 1 commit
  4. 17 Dec, 2021 1 commit
  5. 10 Dec, 2021 1 commit
  6. 23 Dec, 2020 1 commit
  7. 13 Nov, 2020 2 commits
  8. 15 Oct, 2020 1 commit
  9. 17 Jun, 2020 1 commit
  10. 23 May, 2020 1 commit
  11. 26 Feb, 2020 1 commit
  12. 15 Nov, 2019 1 commit
  13. 12 Nov, 2019 1 commit
  14. 09 Nov, 2019 2 commits
  15. 08 Nov, 2019 1 commit
  16. 07 Nov, 2019 1 commit
  17. 09 Jul, 2019 1 commit
  18. 14 Jun, 2019 1 commit
  19. 10 Jun, 2019 1 commit
  20. 18 Dec, 2018 1 commit
  21. 01 Nov, 2018 1 commit
  22. 31 Jul, 2018 1 commit
  23. 23 Feb, 2018 1 commit
  24. 01 Aug, 2017 1 commit
  25. 23 Jun, 2017 2 commits
  26. 22 Jun, 2017 2 commits
  27. 11 May, 2017 3 commits
    • Moritz Angermann's avatar
      Update configure.ac · eb5fc942
      Moritz Angermann authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
      Add Comment
      eb5fc942
    • Moritz Angermann's avatar
      Android doesn’t have mkstemps · b5b62536
      Moritz Angermann authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
      However the check similarly to tell and seekdir succeeds. However we will generate the following error down the line:
      ```
      /var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc13524_0/ghc_2.c:11:104: error:
           warning: implicit declaration of function 'mkstemps' is invalid in C99 [-Wimplicit-function-declaration]
         |
      11 | HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
         |                                                                                                        ^
      HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
                                                                                                             ^
      ```
      b5b62536
    • Moritz Angermann's avatar
      Update config.{guess,sub} · 9c2df120
      Moritz Angermann authored and Herbert Valerio Riedel's avatar Herbert Valerio Riedel committed
      Autoconf hasn’t had an update since 2014, and it doesn’t look like it will soon[1]
      This updates config.{guess,sub}
      
      It basically does exactly what the config.guess script says:
      > It is advised that you download the most up to date version of the config scripts from
      
      It adds support for e.g. `-ios`, which allows to have targets like `aarch64-apple-ios`.
      
      —
      [1]: http://lists.gnu.org/archive/html/autoconf/2016-07/msg00017.html
      9c2df120
  28. 30 Apr, 2017 1 commit
  29. 20 Mar, 2017 2 commits
    • Herbert Valerio Riedel's avatar
      Merge pull request #92 from zw3rk/feature/seekdir · 19aaa0fc
      Herbert Valerio Riedel authored
      Android doesn’t have telldir/seekdir in bionic
      19aaa0fc
    • Moritz Angermann's avatar
      Android doesn’t have telldir/seekdir in bionic · 540a317a
      Moritz Angermann authored
      The isse here is that while we try to use `AC_CHECK_FUNCS`, this will generate test code
      that tries to link an object and check for linking errors.  However  GNU gold at least version
      (binutils-2.25-0666073 2.25.51.20141117) 1.11, considers seekdir/telldir as part of the
      default libs. Thus we would actually want to pass `-nodefaultlibs` to the linker. Doing so,
      would result in erros due to not finding `-ldl`.
      
      Fixes #91
      540a317a
  30. 15 Mar, 2017 2 commits
  31. 20 Feb, 2017 2 commits