aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* Bump to 2.7.2.0Gravatar Herbert Valerio Riedel2016-01-31
| | | | | | There's been some subtle API changes that may be useful to detect via `MIN_VERSION_unix(2,7,2)`, consequently perform a minor version bump relative to the last release.
* Minor cleanups to unix.cabal fileGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hsunix_getpw{nam,uid_r}` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hscore_mk{dtemp,stemp,stemps}` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hscore_{set,get}rlimit` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Avoid redundant prototypes for ptsname(3) et alGravatar Herbert Valerio Riedel2016-01-31
| | | | | This is now possible since we now use `AC_USE_SYSTEM_EXTENSIONS`, which indirectly enables _XOPEN_SOURCE
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Drop bitrotting HUGS supportGravatar Herbert Valerio Riedel2016-01-31
| | | | | It's very unlikely the current `unix` code stands any chance of even remotely work with Hugs...
* Replace `__hsunix_nanosleep` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Remove obsolete windows-related #ifdefsGravatar Herbert Valerio Riedel2016-01-31
| | | | | | We haven't properly supported Windows for some time now, and we wouldn't have any way to test anyway, since GHC doesn't support Cygwin anymore either.
* Add CTYPE annotations to ptr types used for FFIGravatar Herbert Valerio Riedel2016-01-30
| | | | | This avoids incompatible-pointer warnings from the c-compiler when using `CApiFFI`
* Replace `__hsunix_getpwent` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_mknod` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_lstat` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Move WCOREDUMP(s) compat `#define` to `HsUnix.h`Gravatar Herbert Valerio Riedel2016-01-30
| | | | Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab
* Replace `<sys/wait.h>` macro wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_times` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_time` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_opendir` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Change `drainOutput`'s `tcdrain(3)` into a `safe` FFI callGravatar Herbert Valerio Riedel2016-01-30
| | | | | Since the primary purpose of `tcdrain(3)` is to block it makes much more sense to use a `safe` FFI import.
* Don't assume `tcdrain` and `ctermid` exist alwaysGravatar Herbert Valerio Riedel2016-01-30
| | | | | | This follows the scheme suggested in #24 This fixes #55
* Relax upper bound to allow time-1.6 releaseGravatar Herbert Valerio Riedel2015-12-20
|
* Improve detection of `fdatasync(2)`Gravatar Herbert Valerio Riedel2015-12-16
| | | | | | | | This attempts a simpler and hopefully more robust test for `fdatasync(2)` See 94d8824bae10c9d91f56c1aee9c45a90136a1770 / #42 for the previous attempt. This hopefully addresses #52 in a better way than #53
* Remove obsolete `--with-cc` flag from configure.acGravatar Herbert Valerio Riedel2015-12-14
| | | | | This non-standard flag was used previously by GHC's build-system to set the `CC` variable. See https://phabricator.haskell.org/D1608 for more details
* Tweak use of AC_USE_SYSTEM_EXTENSIONSGravatar Herbert Valerio Riedel2015-12-06
| | | | | | | | | This is a follow-up tweak to 5740003e06f0c585460501514f3352f5e105c98c It's better to move AC_USE_SYSTEM_EXTENSIONS after `AC_PROG_CC` as this avoids triggering edundant tests
* Simplify code via AC_USE_SYSTEM_EXTENSIONSGravatar Herbert Valerio Riedel2015-12-03
| | | | | `AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7) thereby allowing us to remove a few manual `#define`s
* Kill `-fwarn-unused-imports`-induced sillinessGravatar Herbert Valerio Riedel2015-11-16
| | | | | | | | | This all started in e968172cb0c9f4fc653c775faf3ecb661f5b1948 which tried to get rid of redundant import warnings. But we should rather err on having to tolerate a few warnings on exotic configurations rather than breaking a build... This hopefully fixes #36
* Don't assume existence of termios constants beyond `B38400`Gravatar Herbert Valerio Riedel2015-11-16
| | | | | | | | | | This patch does not modify the `BaudRate` structure but rather causes some functions taking a `BaudRate` to throw exceptions on systems which don't provide `B57600` and/or `B115200`. I'm not totally happy with this patch yet, but this unbreaks compilation on platforms which don't define at least of these constants. This fixes #51
* Don't assume non-POSIX `WCOREDUMP(x)` macro existsGravatar Herbert Valerio Riedel2015-11-16
| | | | This fixes #50
* Relax upper bound on `base` for base-4.9Gravatar Herbert Valerio Riedel2015-10-28
|
* Merge pull request #42 from argiopetech/masterGravatar Elliot Robinson2015-03-09
|\ | | | | Adds a more comprehensive check for fdatasync
| * Adds a more comprehensive check for fdatasyncGravatar Elliot Robinson2015-03-08
|/ | | | | 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.
* Add GHC 7.8.4 to test-matrixGravatar Herbert Valerio Riedel2014-12-27
|
* Merge pull request #32 from redneb/getcwd-exn-safeGravatar Gregory Collins2014-12-23
|\ | | | | rewrite getWorkingDirectory to use allocaBytes for exception safety
* | Add GHC 7.10.1 to test-matrixGravatar Herbert Valerio Riedel2014-12-23
| |
| * rewrite getWorkingDirectory to use allocaBytes for exception safetyGravatar Marios Titas2014-12-23
|/
* Add /Since/ annotation to System.Posix.FcntlGravatar Herbert Valerio Riedel2014-12-19
|
* Prepare for 2.7.1.0 releaseGravatar Herbert Valerio Riedel2014-12-19
|
* Tweak markdown markup again [skip ci]Gravatar Herbert Valerio Riedel2014-12-19
|
* Fix markdown markup [skip ci]Gravatar Herbert Valerio Riedel2014-12-19
|
* Tighten SafeHaskellGravatar Herbert Valerio Riedel2014-12-19
| | | | This was forgotten in e14fbe2cb3bbd604dadcc3847882ca37edf548b3
* Fix SIGINFO and SIGWINCH.Gravatar Erik de Castro Lopo2014-12-19
| | | | | | | | | | | | It seems these two signals have not been working since at least 2009. Detection of these signals seems to have never been added to the configure.ac script and the code guarded by #ifdef then bit-rotted (the idiom used to handle these signals seems to have been abandoned for something simpler/better in 2009). This fix simply handles these signals the same way the other signals are handled in System/Posix/Signals.hsc. Closes #30 and #31
* Be more explicit in WARNING what will be thrownGravatar Herbert Valerio Riedel2014-12-15
|
* Add since-annotations to new fileSync opsGravatar Herbert Valerio Riedel2014-12-15
|
* Wrap posix_fadvise(2) and posix_fallocate(2)Gravatar Herbert Valerio Riedel2014-12-15
| | | | | | | | | | | | This adds two new functions in `System.Posix.Unistd` - `fileAdvise` (aka `posix_fadvise(2)`), and - `fileAllocate` (aka `posix_fallocate(2)`) This is based in part on #7 and has been heavily refactored from its original patch submission by Ricardo Catalinas Jiménez. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Merge pull request #29 from haskell/safefixes710againGravatar Herbert Valerio Riedel2014-12-09
|\ | | | | More fixes for Safe Haskell bounds under GHC 7.10
| * More fixes for Safe Haskell bounds under GHC 7.10Gravatar David Terei2014-12-08
|/
* Tweak execvpe.h hack (see 256b19184bcb) some moreGravatar Herbert Valerio Riedel2014-12-07
|
* Wrap fsync(2) and fdatasync(2)Gravatar Herbert Valerio Riedel2014-12-07
| | | | | | | | | | | | | | This adds two new functions in `System.Posix.Unistd` - `fileSynchronise` (aka `fsync(2)`), and - `fileSynchroniseDataOnly` (aka `fdatasync(2)`) This is based on part of #7 and has been heavily refactored from its original patch submission by Ricardo Catalinas Jiménez. This also bumps version to 2.7.1.0 as a minor version bump is now needed. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Repeat execvpe(3) prototype (fup to 7bad9d7d52d)Gravatar Herbert Valerio Riedel2014-12-06
| | | | | This is needed in case `<unistd.h>` was included before "execvpe.h" w/o `_GNU_SOURCE` set (on Glibc systems)