packages/unix.git
5 months agoApply preliminary GHCJS patch (DO NOT MERGE) ghcjs/2.7
Herbert Valerio Riedel [Tue, 1 Jan 2019 22:57:07 +0000 (23:57 +0100)] 
Apply preliminary GHCJS patch (DO NOT MERGE)

Taken from
https://raw.githubusercontent.com/ghcjs/ghcjs/98d370e1948df5f64f3380a7d842eba1b7ca50c1/lib/patches/unix.patch

6 months agoDeclare support for base-4.13
Herbert Valerio Riedel [Tue, 18 Dec 2018 21:52:17 +0000 (22:52 +0100)] 
Declare support for base-4.13

7 months agoAllow time-1.9
Ben Gamari [Tue, 30 Oct 2018 18:37:04 +0000 (14:37 -0400)] 
Allow time-1.9

10 months agorelax base to include base-4.12 (GHC 8.6)
Herbert Valerio Riedel [Tue, 31 Jul 2018 16:24:13 +0000 (18:24 +0200)] 
relax base to include base-4.12 (GHC 8.6)

15 months agoBump upper bound on base
Ben Gamari [Thu, 14 Sep 2017 00:06:59 +0000 (20:06 -0400)] 
Bump upper bound on base

(cherry picked from commit 748e8b41e06eeab8b9086bf481ebca5218639f5c)

22 months agotests/fdReadBuf001: Add some debug output
Ben Gamari [Tue, 1 Aug 2017 15:10:14 +0000 (11:10 -0400)] 
tests/fdReadBuf001: Add some debug output

2 years agoMerge pull request #97 from gwils/gitignore-cabal-sandbox-newbuild v2.7.2.2
Eric Mertens [Fri, 23 Jun 2017 00:03:47 +0000 (17:03 -0700)] 
Merge pull request #97 from gwils/gitignore-cabal-sandbox-newbuild

gitignore cabal sandbox and new-build artifacts

2 years ago.ghc.environment has a leading dot
Eric Mertens [Fri, 23 Jun 2017 00:02:36 +0000 (17:02 -0700)] 
.ghc.environment has a leading dot

2 years agoIgnore ghc.environment.* too
George Wilson [Thu, 22 Jun 2017 21:54:41 +0000 (07:54 +1000)] 
Ignore ghc.environment.* too

2 years agogitignore cabal sandbox and new-build artifacts
George Wilson [Thu, 22 Jun 2017 03:52:22 +0000 (13:52 +1000)] 
gitignore cabal sandbox and new-build artifacts

2 years agoUpdate configure.ac
Moritz Angermann [Thu, 11 May 2017 01:44:20 +0000 (09:44 +0800)] 
Update configure.ac

Add Comment

2 years agoAndroid doesn’t have mkstemps
Moritz Angermann [Tue, 9 May 2017 07:49:43 +0000 (15:49 +0800)] 
Android doesn’t have mkstemps

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);}
                                                                                                       ^
```

2 years agoUpdate config.{guess,sub}
Moritz Angermann [Tue, 9 May 2017 07:54:58 +0000 (15:54 +0800)] 
Update config.{guess,sub}

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

2 years agoUpdate changelog and increment package version
Herbert Valerio Riedel [Sun, 30 Apr 2017 22:10:28 +0000 (00:10 +0200)] 
Update changelog and increment package version

2 years agoMerge pull request #92 from zw3rk/feature/seekdir
Herbert Valerio Riedel [Mon, 20 Mar 2017 08:14:45 +0000 (09:14 +0100)] 
Merge pull request #92 from zw3rk/feature/seekdir

Android doesn’t have telldir/seekdir in bionic

2 years agoAndroid doesn’t have telldir/seekdir in bionic
Moritz Angermann [Mon, 20 Mar 2017 01:26:04 +0000 (09:26 +0800)] 
Android doesn’t have telldir/seekdir in bionic

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

2 years agoMerge pull request #90 from zw3rk/feature/android
Ben Gamari [Wed, 15 Mar 2017 13:33:21 +0000 (09:33 -0400)] 
Merge pull request #90 from zw3rk/feature/android

Define _POSIX_VDISABLE, if not defined.

2 years agoDefine _POSIX_VDISABLE, if not defined.
Moritz Angermann [Wed, 15 Mar 2017 13:19:09 +0000 (21:19 +0800)] 
Define _POSIX_VDISABLE, if not defined.

2 years agoMerge pull request #89 from bgamari/master
Ben Gamari [Mon, 20 Feb 2017 23:13:24 +0000 (23:13 +0000)] 
Merge pull request #89 from bgamari/master

Bump time upper bound

2 years agoBump time upper bound
Ben Gamari [Mon, 20 Feb 2017 21:50:59 +0000 (16:50 -0500)] 
Bump time upper bound

2 years agoMerge pull request #84 from nh2/fix-createSymbolicLink-exists-error-message
Eric Mertens [Tue, 14 Feb 2017 01:07:40 +0000 (17:07 -0800)] 
Merge pull request #84 from nh2/fix-createSymbolicLink-exists-error-message

Fix error message of `createSymbolicLink`.

2 years agoFix error message of `createSymbolicLink`.
Niklas Hambüchen [Wed, 8 Feb 2017 02:09:00 +0000 (03:09 +0100)] 
Fix error message of `createSymbolicLink`.

Consider `ln` (or any other Unix tool):

    $ ln -s file1 file2
    $ ls -l file2
    lrwxrwxrwx 1 niklas niklas 5 Feb  8 03:09 file2 -> file1
    $ ln -s file1 file2
    ln: failed to create symbolic link 'file2': File exists

The file name mentioned in the error ("link2") is the one
that *could not be created*, not the content of the pointer.

`createSymbolicLink` got this wrong so far, it would print

    file1: createSymbolicLink: already exists (File exists)

which is wrong, this file doesn't already exist.

This commit fixes it.

2 years agoFix posix005 test
Ben Gamari [Thu, 15 Dec 2016 19:06:36 +0000 (14:06 -0500)] 
Fix posix005 test

Needed import of sort and updated expected output

2 years agoRelax upper bound on `time` to allow time-1.7
Herbert Valerio Riedel [Sun, 20 Nov 2016 08:23:45 +0000 (09:23 +0100)] 
Relax upper bound on `time` to allow time-1.7

...after having convincing myself that the changes in time-1.7 are confined
to parts not used by `unix`

c.f. http://hdiff.luite.com/cgit/time/diff?id=1.7&id2=1.6.0.1

fixes #80

2 years agotestsuite: Ensure that posix005 output is normalized
Ben Gamari [Thu, 17 Nov 2016 21:37:41 +0000 (16:37 -0500)] 
testsuite: Ensure that posix005 output is normalized

The order in which getEnvironment returns its result is platform dependent. Sort
the output to ensure consistent output across platforms.

2 years agoBump upper bound on base
Ben Gamari [Tue, 15 Nov 2016 17:52:33 +0000 (12:52 -0500)] 
Bump upper bound on base

2 years agoPrepare for 2.7.2.1 release
Herbert Valerio Riedel [Fri, 11 Nov 2016 23:15:04 +0000 (00:15 +0100)] 
Prepare for 2.7.2.1 release

2 years agoMerge pull request #77 from glguy/patch-76
Eric Mertens [Sun, 16 Oct 2016 02:40:25 +0000 (19:40 -0700)] 
Merge pull request #77 from glguy/patch-76

Add argument documentation for Env modules

2 years agoAdd argument documentation for Env modules
Eric Mertens [Thu, 13 Oct 2016 15:56:08 +0000 (08:56 -0700)] 
Add argument documentation for Env modules

Fixes #76

2 years agoMerge pull request #73 from ezyang/pr/fix-segfault
Edward Z. Yang [Thu, 8 Sep 2016 19:04:24 +0000 (12:04 -0700)] 
Merge pull request #73 from ezyang/pr/fix-segfault

Fix segfault from inconsistent macro use.

2 years agoFix segfault from inconsistent macro use.
Edward Z. Yang [Thu, 8 Sep 2016 00:31:02 +0000 (17:31 -0700)] 
Fix segfault from inconsistent macro use.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2 years agoMerge pull request #72 from erikd/topic/readdir-deprecated
Erik de Castro Lopo [Tue, 6 Sep 2016 22:21:25 +0000 (08:21 +1000)] 
Merge pull request #72 from erikd/topic/readdir-deprecated

Don't use readdir_r if deprecated

2 years agoDon't use readdir_r if deprecated
Erik de Castro Lopo [Tue, 6 Sep 2016 09:34:40 +0000 (19:34 +1000)] 
Don't use readdir_r if deprecated

GNU glibc 2.23 and later deprecate `readdir_r` in favour of plain old
`readdir` which in some upcoming POSIX standard is going to required to be
re-entrant.

Eventually we want to drop `readder_r` all together, but want to be
compatible with older unixen which may not have a re-entrant `readdir`.

Solution is to make systems with *known* re-entrant `readir` use that and
use `readdir_r` whereever we have it and don't *know* that `readdir` is
re-entrant.

Closes: https://github.com/haskell/unix/issues/70

2 years agoMerge pull request #71 from erikd/topic/travis
Erik de Castro Lopo [Tue, 6 Sep 2016 11:10:55 +0000 (21:10 +1000)] 
Merge pull request #71 from erikd/topic/travis

Fix travis build

2 years agoFix travis build
Erik de Castro Lopo [Tue, 6 Sep 2016 09:54:36 +0000 (19:54 +1000)] 
Fix travis build

2 years agoTestsuite: remove no_stdin
Thomas Miedema [Fri, 24 Jun 2016 15:19:37 +0000 (17:19 +0200)] 
Testsuite: remove no_stdin

`no_stdin` is no longer necessary, and has been removed from the
testsuite driver

3 years agoAdd GHC 7.10.2/3 and 8.0.1 to travis.yml
Eric Mertens [Thu, 2 Jun 2016 15:15:28 +0000 (08:15 -0700)] 
Add GHC 7.10.2/3 and 8.0.1 to travis.yml

3 years agoUpdate changelog for 2.7.2.0 release v2.7.2.0
Herbert Valerio Riedel [Tue, 19 Apr 2016 17:32:05 +0000 (19:32 +0200)] 
Update changelog for 2.7.2.0 release

3 years agoConvert /since/ to @since syntax
Herbert Valerio Riedel [Tue, 19 Apr 2016 17:37:41 +0000 (19:37 +0200)] 
Convert /since/ to @since syntax

3 years agoCleanup one more test
Thomas Miedema [Tue, 16 Feb 2016 12:17:13 +0000 (13:17 +0100)] 
Cleanup one more test

3 years agoTestsuite: don't use only_compiler_types, assume ghc
Thomas Miedema [Tue, 16 Feb 2016 10:59:02 +0000 (11:59 +0100)] 
Testsuite: don't use only_compiler_types, assume ghc

3 years agoAdd comment regarding genericRaise use
Herbert Valerio Riedel [Sun, 31 Jan 2016 16:04:25 +0000 (17:04 +0100)] 
Add comment regarding genericRaise use

3 years agoHave Autoconf test for _NSGetEnviron presence
Herbert Valerio Riedel [Sun, 31 Jan 2016 15:54:04 +0000 (16:54 +0100)] 
Have Autoconf test for _NSGetEnviron presence

3 years agoFix Haddock markup
Herbert Valerio Riedel [Sun, 31 Jan 2016 13:10:59 +0000 (14:10 +0100)] 
Fix Haddock markup

3 years agoMinor tweaks to HsUnix.h
Herbert Valerio Riedel [Sun, 31 Jan 2016 12:36:47 +0000 (13:36 +0100)] 
Minor tweaks to HsUnix.h

3 years agoUse `#const` rather than FFI wrapper for PATH_MAX
Herbert Valerio Riedel [Sun, 31 Jan 2016 12:30:15 +0000 (13:30 +0100)] 
Use `#const` rather than FFI wrapper for PATH_MAX

This has the side-effect of making two more modules `Safe`-inferred

3 years agoReplace `__hsunix_unsetenv` wrapper with CApiFFI
Herbert Valerio Riedel [Sun, 31 Jan 2016 11:57:23 +0000 (12:57 +0100)] 
Replace `__hsunix_unsetenv` wrapper with CApiFFI

3 years agoUse CApiFFI for `ptsname(3)` et al for GHC>=8.0
Herbert Valerio Riedel [Sun, 31 Jan 2016 11:34:59 +0000 (12:34 +0100)] 
Use CApiFFI for `ptsname(3)` et al for GHC>=8.0

This improves on 2ddf4b2b7bf41f878bc7d8a1afa49126710f524c

3 years agoUse `open(2)` directly rather than via `__hscore_open()`
Herbert Valerio Riedel [Sun, 31 Jan 2016 10:32:01 +0000 (11:32 +0100)] 
Use `open(2)` directly rather than via `__hscore_open()`

As we don't support Windows, there's no benefit in going via
`__hscore_open()`

3 years agoMerge dirUtils.c into HsUnix.c
Herbert Valerio Riedel [Sun, 31 Jan 2016 10:31:14 +0000 (11:31 +0100)] 
Merge dirUtils.c into HsUnix.c

3 years agoUse more direct CApiFFI for pPrPr_disableITimers
Herbert Valerio Riedel [Sun, 31 Jan 2016 09:51:58 +0000 (10:51 +0100)] 
Use more direct CApiFFI for pPrPr_disableITimers

3 years agoProvide execvpe prototype if missing
Herbert Valerio Riedel [Sun, 31 Jan 2016 09:03:46 +0000 (10:03 +0100)] 
Provide execvpe prototype if missing

3 years agoAdd links to Opengroup's latest POSIX.1-2008 spec
Herbert Valerio Riedel [Sun, 31 Jan 2016 08:44:47 +0000 (09:44 +0100)] 
Add links to Opengroup's latest POSIX.1-2008 spec

3 years agogitignore
Herbert Valerio Riedel [Sun, 31 Jan 2016 08:34:03 +0000 (09:34 +0100)] 
gitignore

3 years agoDelete some trailing whitespaces
Herbert Valerio Riedel [Sun, 31 Jan 2016 08:31:09 +0000 (09:31 +0100)] 
Delete some trailing whitespaces

3 years agoBump to 2.7.2.0
Herbert Valerio Riedel [Sun, 31 Jan 2016 08:26:26 +0000 (09:26 +0100)] 
Bump to 2.7.2.0

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.

3 years agoMinor cleanups to unix.cabal file
Herbert Valerio Riedel [Sun, 31 Jan 2016 08:21:10 +0000 (09:21 +0100)] 
Minor cleanups to unix.cabal file

3 years agoReplace `__hsunix_getpw{nam,uid_r}` wrappers with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 23:43:21 +0000 (00:43 +0100)] 
Replace `__hsunix_getpw{nam,uid_r}` wrappers with CApiFFI

3 years agoReplace `__hscore_mk{dtemp,stemp,stemps}` wrappers with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 23:15:23 +0000 (00:15 +0100)] 
Replace `__hscore_mk{dtemp,stemp,stemps}` wrappers with CApiFFI

3 years agoReplace `__hscore_{set,get}rlimit` wrappers with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 23:09:09 +0000 (00:09 +0100)] 
Replace `__hscore_{set,get}rlimit` wrappers with CApiFFI

3 years agoAvoid redundant prototypes for ptsname(3) et al
Herbert Valerio Riedel [Sat, 30 Jan 2016 23:01:18 +0000 (00:01 +0100)] 
Avoid redundant prototypes for ptsname(3) et al

This is now possible since we now use `AC_USE_SYSTEM_EXTENSIONS`, which
indirectly enables _XOPEN_SOURCE

3 years agoDrop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4
Herbert Valerio Riedel [Sat, 30 Jan 2016 22:14:23 +0000 (23:14 +0100)] 
Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4

3 years agoDrop bitrotting HUGS support
Herbert Valerio Riedel [Sat, 30 Jan 2016 21:55:06 +0000 (22:55 +0100)] 
Drop bitrotting HUGS support

It's very unlikely the current `unix` code stands any chance of even
remotely work with Hugs...

3 years agoReplace `__hsunix_nanosleep` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 21:42:23 +0000 (22:42 +0100)] 
Replace `__hsunix_nanosleep` wrapper with CApiFFI

3 years agoRemove obsolete windows-related #ifdefs
Herbert Valerio Riedel [Sat, 30 Jan 2016 21:38:28 +0000 (22:38 +0100)] 
Remove obsolete windows-related #ifdefs

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.

3 years agoAdd CTYPE annotations to ptr types used for FFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 18:44:58 +0000 (19:44 +0100)] 
Add CTYPE annotations to ptr types used for FFI

This avoids incompatible-pointer warnings from the c-compiler when using
`CApiFFI`

3 years agoReplace `__hsunix_getpwent` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 17:23:15 +0000 (18:23 +0100)] 
Replace `__hsunix_getpwent` wrapper with CApiFFI

3 years agoReplace `__hsunix_mknod` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 17:17:00 +0000 (18:17 +0100)] 
Replace `__hsunix_mknod` wrapper with CApiFFI

3 years agoReplace `__hsunix_lstat` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 17:13:39 +0000 (18:13 +0100)] 
Replace `__hsunix_lstat` wrapper with CApiFFI

3 years agoMove WCOREDUMP(s) compat `#define` to `HsUnix.h`
Herbert Valerio Riedel [Sat, 30 Jan 2016 17:02:43 +0000 (18:02 +0100)] 
Move WCOREDUMP(s) compat `#define` to `HsUnix.h`

Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab

3 years agoReplace `<sys/wait.h>` macro wrappers with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 16:47:32 +0000 (17:47 +0100)] 
Replace `<sys/wait.h>` macro wrappers with CApiFFI

3 years agoReplace `__hsunix_times` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 16:31:48 +0000 (17:31 +0100)] 
Replace `__hsunix_times` wrapper with CApiFFI

3 years agoReplace `__hsunix_time` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 16:25:01 +0000 (17:25 +0100)] 
Replace `__hsunix_time` wrapper with CApiFFI

3 years agoReplace `__hsunix_opendir` wrapper with CApiFFI
Herbert Valerio Riedel [Sat, 30 Jan 2016 16:16:28 +0000 (17:16 +0100)] 
Replace `__hsunix_opendir` wrapper with CApiFFI

3 years agoChange `drainOutput`'s `tcdrain(3)` into a `safe` FFI call
Herbert Valerio Riedel [Sat, 30 Jan 2016 15:58:31 +0000 (16:58 +0100)] 
Change `drainOutput`'s `tcdrain(3)` into a `safe` FFI call

Since the primary purpose of `tcdrain(3)` is to block it makes much more
sense to use a `safe` FFI import.

3 years agoDon't assume `tcdrain` and `ctermid` exist always
Herbert Valerio Riedel [Sat, 30 Jan 2016 15:46:56 +0000 (16:46 +0100)] 
Don't assume `tcdrain` and `ctermid` exist always

This follows the scheme suggested in #24

This fixes #55

3 years agoRelax upper bound to allow time-1.6 release
Herbert Valerio Riedel [Sun, 20 Dec 2015 09:17:48 +0000 (10:17 +0100)] 
Relax upper bound to allow time-1.6 release

3 years agoImprove detection of `fdatasync(2)`
Herbert Valerio Riedel [Wed, 16 Dec 2015 16:28:40 +0000 (17:28 +0100)] 
Improve detection of `fdatasync(2)`

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

3 years agoRemove obsolete `--with-cc` flag from configure.ac
Herbert Valerio Riedel [Mon, 14 Dec 2015 07:01:31 +0000 (08:01 +0100)] 
Remove obsolete `--with-cc` flag from configure.ac

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

3 years agoTweak use of AC_USE_SYSTEM_EXTENSIONS
Herbert Valerio Riedel [Sun, 6 Dec 2015 16:06:41 +0000 (17:06 +0100)] 
Tweak use of AC_USE_SYSTEM_EXTENSIONS

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

3 years agoSimplify code via AC_USE_SYSTEM_EXTENSIONS
Herbert Valerio Riedel [Thu, 3 Dec 2015 21:25:13 +0000 (22:25 +0100)] 
Simplify code via AC_USE_SYSTEM_EXTENSIONS

`AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7)
thereby allowing us to remove a few manual `#define`s

3 years agoKill `-fwarn-unused-imports`-induced silliness
Herbert Valerio Riedel [Mon, 16 Nov 2015 18:37:56 +0000 (19:37 +0100)] 
Kill `-fwarn-unused-imports`-induced silliness

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

3 years agoDon't assume existence of termios constants beyond `B38400`
Herbert Valerio Riedel [Mon, 16 Nov 2015 18:03:12 +0000 (19:03 +0100)] 
Don't assume existence of termios constants beyond `B38400`

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

3 years agoDon't assume non-POSIX `WCOREDUMP(x)` macro exists
Herbert Valerio Riedel [Mon, 16 Nov 2015 17:49:46 +0000 (18:49 +0100)] 
Don't assume non-POSIX `WCOREDUMP(x)` macro exists

This fixes #50

3 years agoRelax upper bound on `base` for base-4.9
Herbert Valerio Riedel [Wed, 28 Oct 2015 21:34:34 +0000 (22:34 +0100)] 
Relax upper bound on `base` for base-4.9

4 years agoMerge pull request #42 from argiopetech/master
Elliot Robinson [Mon, 9 Mar 2015 08:09:37 +0000 (04:09 -0400)] 
Merge pull request #42 from argiopetech/master

Adds a more comprehensive check for fdatasync

4 years agoAdds a more comprehensive check for fdatasync
Elliot Robinson [Sun, 8 Mar 2015 19:55:05 +0000 (15:55 -0400)] 
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.

4 years agoAdd GHC 7.8.4 to test-matrix
Herbert Valerio Riedel [Sat, 27 Dec 2014 18:18:50 +0000 (19:18 +0100)] 
Add GHC 7.8.4 to test-matrix

4 years agoMerge pull request #32 from redneb/getcwd-exn-safe
Gregory Collins [Wed, 24 Dec 2014 00:51:17 +0000 (19:51 -0500)] 
Merge pull request #32 from redneb/getcwd-exn-safe

rewrite getWorkingDirectory to use allocaBytes for exception safety

4 years agoAdd GHC 7.10.1 to test-matrix
Herbert Valerio Riedel [Tue, 23 Dec 2014 10:17:22 +0000 (11:17 +0100)] 
Add GHC 7.10.1 to test-matrix

4 years agorewrite getWorkingDirectory to use allocaBytes for exception safety
Marios Titas [Tue, 23 Dec 2014 06:21:57 +0000 (06:21 +0000)] 
rewrite getWorkingDirectory to use allocaBytes for exception safety

4 years agoAdd /Since/ annotation to System.Posix.Fcntl v2.7.1.0
Herbert Valerio Riedel [Fri, 19 Dec 2014 09:51:27 +0000 (10:51 +0100)] 
Add /Since/ annotation to System.Posix.Fcntl

4 years agoPrepare for 2.7.1.0 release
Herbert Valerio Riedel [Fri, 19 Dec 2014 09:02:18 +0000 (10:02 +0100)] 
Prepare for 2.7.1.0 release

4 years agoTweak markdown markup again [skip ci]
Herbert Valerio Riedel [Fri, 19 Dec 2014 09:01:32 +0000 (10:01 +0100)] 
Tweak markdown markup again [skip ci]

4 years agoFix markdown markup [skip ci]
Herbert Valerio Riedel [Fri, 19 Dec 2014 08:59:44 +0000 (09:59 +0100)] 
Fix markdown markup [skip ci]

4 years agoTighten SafeHaskell
Herbert Valerio Riedel [Fri, 19 Dec 2014 08:57:00 +0000 (09:57 +0100)] 
Tighten SafeHaskell

This was forgotten in e14fbe2cb3bbd604dadcc3847882ca37edf548b3

4 years agoFix SIGINFO and SIGWINCH.
Erik de Castro Lopo [Fri, 19 Dec 2014 03:47:43 +0000 (14:47 +1100)] 
Fix SIGINFO and SIGWINCH.

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

4 years agoBe more explicit in WARNING what will be thrown
Herbert Valerio Riedel [Mon, 15 Dec 2014 22:33:15 +0000 (23:33 +0100)] 
Be more explicit in WARNING what will be thrown

4 years agoAdd since-annotations to new fileSync ops
Herbert Valerio Riedel [Mon, 15 Dec 2014 22:28:20 +0000 (23:28 +0100)] 
Add since-annotations to new fileSync ops

4 years agoWrap posix_fadvise(2) and posix_fallocate(2)
Herbert Valerio Riedel [Mon, 15 Dec 2014 22:25:26 +0000 (23:25 +0100)] 
Wrap posix_fadvise(2) and posix_fallocate(2)

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>