| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
| |
Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Since the primary purpose of `tcdrain(3)` is to block it makes much more
sense to use a `safe` FFI import.
|
|
|
|
|
|
| |
This follows the scheme suggested in #24
This fixes #55
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
`AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7)
thereby allowing us to remove a few manual `#define`s
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
This fixes #50
|
| |
|
|\
| |
| | |
Adds a more comprehensive check for fdatasync
|
|/
|
|
|
| |
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.
|
| |
|
|\
| |
| | |
rewrite getWorkingDirectory to use allocaBytes for exception safety
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This was forgotten in e14fbe2cb3bbd604dadcc3847882ca37edf548b3
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
More fixes for Safe Haskell bounds under GHC 7.10
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
This is needed in case `<unistd.h>` was included before "execvpe.h"
w/o `_GNU_SOURCE` set (on Glibc systems)
|
|
|
|
|
|
| |
Turns out `process` reuses `unix`'s execvpe() implementation,
and the refactoring in f24ba78f68b2cbc4f4afadc8dd60fc2935357255
broke process.
|
| |
|
|
|
|
|
|
|
| |
If `PATH` environment variable contains non directory component,
`__hsunix_execvpe()` failed by `ENOTDIR`.
This fixes #11 for all platforms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous code was prone to conflicts with when the platform happens
to expose a `execvpe(3)` implementation in its libc.
This commit renames the internal implementation to `__hsunix_execvpe` as
well as adding an autoconf-detection for the presence of `execvpe(3)`,
in which case `__hsunix_execvpe()` forwards the call to `execvpe(3)`.
Moreover, the code has been cleaned up to remove likely bitrotted CPP
conditionals.
This should fix #22
(This also partially addresses #11 on platforms which have a
libc-provided `execvpe(3)`)
|
|
|
|
|
|
|
|
| |
On some systems dlopen() is available without libdl (illumos, solaris).
Sometimes libdl.so cannot be loaded by runtime linker, see
https://ghc.haskell.org/trac/ghc/ticket/8713
Closes #8
|
|
|
|
| |
Closes #27
|
|
|
| |
[skip ci]
|
| |
|
| |
|
|\
| |
| | |
`System.Posix.Files.fileAccess` fails inside OS X sandbox
|
| | |
|