Backports for 2.7.3 (#235)
* Add regression test for #218 https://github.com/haskell/unix/issues/218 Error was: uncaught exception: IOException of type InvalidArgument semTrywait: invalid argument (Bad file descriptor) * Fix 'semTrywait: invalid argument (Bad file descriptor)' wrt #218 * Add regression test for putEnv wrt #68 * Synchronize ByteString and String modules And fix free-bug in 'putEnv'. Fixes #68 * Add cabal.project * Fix the error handling of posix_fallocate other than FreeBSD This commit introduces a CPP guard to take care of the difference between OSes of the errors of posix_fallocate. On Linux and NetBSD, posix_fallocate reports error by returning an error number. errno is not set. On the other hand, on FreeBSD, posix_fallocate returns -1 and sets errno. The existing code could handle FreeBSD-style errors only. * Remove obsolete FreeBSD-style error handling The FreeBSD-style error (return -1, set errno) is obsolete as of FreeBSD 11.0; it now reports errors as same as the other OSes. * Future-proof glibc version check * Resource: Fix warning in case of no RLIM_SAVED_{CUR,MAX} This previously failed to build with a warning on FreeBSD 11.2 * Bump to 2.7.3 * Add Eq and Show instance to BaudRate Needed for test suite * Add CI * Tighten lower base bound to only allow GHC-8.2+ Co-authored-by:matil019 <yohashi1991@gmail.com> Co-authored-by:
Viktor Dukhovni <ietf-dane@dukhovni.org> Co-authored-by:
Ben Gamari <ben@smart-cactus.org>
Showing
- .github/workflows/ci.yml 124 additions, 0 deletions.github/workflows/ci.yml
- System/Posix/Env/ByteString.hsc 33 additions, 10 deletionsSystem/Posix/Env/ByteString.hsc
- System/Posix/Fcntl.hsc 4 additions, 1 deletionSystem/Posix/Fcntl.hsc
- System/Posix/Resource.hsc 8 additions, 2 deletionsSystem/Posix/Resource.hsc
- System/Posix/Semaphore.hsc 8 additions, 7 deletionsSystem/Posix/Semaphore.hsc
- System/Posix/Terminal/Common.hsc 1 addition, 0 deletionsSystem/Posix/Terminal/Common.hsc
- cabal.project 6 additions, 0 deletionscabal.project
- cbits/HsUnix.c 1 addition, 1 deletioncbits/HsUnix.c
- changelog.md 18 additions, 0 deletionschangelog.md
- tests/FdReadBuf001.hs 11 additions, 10 deletionstests/FdReadBuf001.hs
- tests/FileStatus.hs 32 additions, 8 deletionstests/FileStatus.hs
- tests/FileStatusByteString.hs 31 additions, 8 deletionstests/FileStatusByteString.hs
- tests/ForkProcess01.hs 17 additions, 0 deletionstests/ForkProcess01.hs
- tests/Makefile 0 additions, 7 deletionstests/Makefile
- tests/Posix004.hs 23 additions, 17 deletionstests/Posix004.hs
- tests/Posix009.hs 21 additions, 0 deletionstests/Posix009.hs
- tests/Posix014.hs 15 additions, 0 deletionstests/Posix014.hs
- tests/PutEnv001.hs 32 additions, 0 deletionstests/PutEnv001.hs
- tests/ResourceLimit.hs 18 additions, 0 deletionstests/ResourceLimit.hs
- tests/Semaphore001.hs 9 additions, 0 deletionstests/Semaphore001.hs
Loading
Please register or sign in to comment