This project is mirrored from https://github.com/haskell/unix.
Pull mirroring updated .
- Jul 30, 2022
-
-
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.
-
- Jul 20, 2022
-
-
Julian Ospald authored
* 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>
-
- Jul 16, 2022
-
-
Updated with `autoconf` 2.71: `autoreconf -f -i`.
-
- May 30, 2022
-
- Apr 29, 2022
-
-
- Dec 17, 2021
-
-
- Dec 10, 2021
-
-
- Dec 23, 2020
-
-
Bodigrim authored
-
- Nov 13, 2020
-
-
Ben Gamari authored
Bump time upper bound to accommodate 2.11
-
Ben Gamari authored
-
- Oct 15, 2020
-
-
- Jun 17, 2020
-
-
Ben Gamari authored
Bump base upper bound
-
- May 23, 2020
-
-
Ben Gamari authored
-
- Feb 26, 2020
-
-
- Nov 15, 2019
-
-
Ben Gamari authored
Bump base upper bound to 4.15
-
- Nov 12, 2019
-
- Nov 09, 2019
-
-
Ben Gamari authored
testsuite: Mark posix002 as fragile in all concurrent_ways
-
Ben Gamari authored
-
- Nov 08, 2019
-
-
Ben Gamari authored
Testsuite changes for GHC 8.10
-
- Nov 07, 2019
-
-
Ben Gamari authored
Previously we only marked it as broken in threaded2, but this missed some cases.
-
- Jul 09, 2019
-
-
Ben Gamari authored
As noted in GHC #11645 and #8842, forking and profiling don't go well together.
-
- Jun 14, 2019
-
-
Ben Gamari authored
As noted in ghc/ghc#16814, this test is remarkably fragile when run concurrently.
-
- Jun 10, 2019
-
-
Ben Gamari authored
(cherry picked from commit ed2cf61f)
-
- Dec 18, 2018
-
-
Herbert Valerio Riedel authored
-
- Nov 01, 2018
-
-
- Jul 31, 2018
-
-
Herbert Valerio Riedel authored
-
- Feb 23, 2018
-
-
(cherry picked from commit 748e8b41)
-
- Aug 01, 2017
-
-
Ben Gamari authored
-
- Jun 23, 2017
- Jun 22, 2017
-
-
George Wilson authored
-
George Wilson authored
-
- May 11, 2017
-
-
Add Comment
-
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);} ^ ```
-
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
-
- Apr 30, 2017
-
-
Herbert Valerio Riedel authored
-
- Mar 20, 2017
-
-
Herbert Valerio Riedel authored
Android doesn’t have telldir/seekdir in bionic
-
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
-
- Mar 15, 2017
-
-
Ben Gamari authored
Define _POSIX_VDISABLE, if not defined.
-
Moritz Angermann authored
-