packages/unix.git
4 days agoSkip executeFile001 in threaded2 way master
Ben Gamari [Fri, 14 Jun 2019 20:03:12 +0000 (16:03 -0400)] 
Skip executeFile001 in threaded2 way

As noted in ghc/ghc#16814, this test is remarkably fragile
when run concurrently.

10 days agoMerge pull request #133 from bgamari/posix002-fragile
Ben Gamari [Sun, 9 Jun 2019 14:40:56 +0000 (10:40 -0400)] 
Merge pull request #133 from bgamari/posix002-fragile

Changes for GHC 8.8

11 days agotestsuite: Mark posix002 as fragile in threaded2 way
Ben Gamari [Sat, 6 Apr 2019 18:44:12 +0000 (14:44 -0400)] 
testsuite: Mark posix002 as fragile in threaded2 way

11 days 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

6 weeks agoFollow-up to 25136b5e3c9d8ec6304ccc0a4194cb6745cd3927 / #130
Herbert Valerio Riedel [Sun, 5 May 2019 10:30:35 +0000 (12:30 +0200)] 
Follow-up to 25136b5e3c9d8ec6304ccc0a4194cb6745cd3927 / #130

6 weeks agoChange the return type of exitImmediately
Erik de Castro Lopo [Sat, 4 May 2019 00:25:39 +0000 (10:25 +1000)] 
Change the return type of exitImmediately

New type is: exitImmediately :: ExitCode -> IO a

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

7 weeks agoBump base bounds (#129)
Vanessa McHale [Mon, 29 Apr 2019 22:49:02 +0000 (17:49 -0500)] 
Bump base bounds (#129)

* Use GHC 8.8.1 in CI

* Regenerate .travis.yml

* Add GHC 8.8.1

* regenerate CI

7 weeks agoUse FilePath instead of String
Alexandre Peyroux [Fri, 26 Apr 2019 08:04:54 +0000 (10:04 +0200)] 
Use FilePath instead of String

3 months agoRegenerate .travis.yml
Ryan Scott [Tue, 12 Mar 2019 14:32:48 +0000 (10:32 -0400)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

3 months agoFactor out haskell-ci configuration
Ryan Scott [Tue, 12 Mar 2019 14:32:12 +0000 (10:32 -0400)] 
Factor out haskell-ci configuration

4 months agoTypofix
Gabor Greif [Tue, 22 Jan 2019 16:24:41 +0000 (17:24 +0100)] 
Typofix

5 months agoFix typo on docs
Fabricio de Sousa Nascimento [Sat, 12 Jan 2019 21:49:38 +0000 (22:49 +0100)] 
Fix typo on docs

Corrects a small typo found while reading the docs.

6 months agoRegenerate .travis.yml
Ryan Scott [Mon, 10 Dec 2018 12:02:03 +0000 (07:02 -0500)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

7 months agoRegenerate .travis.yml
Ryan Scott [Tue, 6 Nov 2018 14:04:34 +0000 (09:04 -0500)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

8 months agoRegenerate .travis.yml
Ryan Scott [Wed, 17 Oct 2018 19:08:31 +0000 (15:08 -0400)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

8 months agoUse wildcards in tested-with versions
Ryan Scott [Wed, 17 Oct 2018 19:06:08 +0000 (15:06 -0400)] 
Use wildcards in tested-with versions

10 months agoResource: Fix warning in case of no RLIM_SAVED_{CUR,MAX}
Ben Gamari [Wed, 1 Aug 2018 18:45:57 +0000 (14:45 -0400)] 
Resource: Fix warning in case of no RLIM_SAVED_{CUR,MAX}

This previously failed to build with a warning on FreeBSD 11.2

10 months agoMerge pull request #118
Herbert Valerio Riedel [Mon, 30 Jul 2018 21:48:50 +0000 (23:48 +0200)] 
Merge pull request #118

10 months agoRemove HSUNIX_EXECVPE_H_NO_COMPAT hack
Oleg Grenrus [Mon, 30 Jul 2018 11:38:30 +0000 (14:38 +0300)] 
Remove HSUNIX_EXECVPE_H_NO_COMPAT hack

Now we can finally remove the hack introduced via

59861061f2ab1d3f4b28e83d2dcc3adf0f9acb04
256b19184bcb05c3cd9a6061730b7d67d61c0763
7bad9d7d52d24cc4246646e5af3116c2dd8c25c4

Co-authored-by: Herbert Valerio Riedel <hvr@gnu.org>
10 months agoAllow time-1.9
Oleg Grenrus [Mon, 30 Jul 2018 11:38:20 +0000 (14:38 +0300)] 
Allow time-1.9

11 months agoTry omit-local-package (#116)
Oleg Grenrus [Wed, 4 Jul 2018 15:10:40 +0000 (18:10 +0300)] 
Try omit-local-package (#116)

11 months agoRevert "Travis: Use GHC 8.6.1"
Ryan Scott [Sun, 1 Jul 2018 17:40:03 +0000 (13:40 -0400)] 
Revert "Travis: Use GHC 8.6.1"

This reverts commit 3da6e7cdd81195f146793d7e0f3ed766ee838386.

11 months agoTravis: Use GHC 8.6.1
Ryan Scott [Sun, 1 Jul 2018 17:02:45 +0000 (13:02 -0400)] 
Travis: Use GHC 8.6.1

12 months agoUse GHC 8.4.3 on Travis
Ryan Scott [Sun, 3 Jun 2018 11:56:16 +0000 (07:56 -0400)] 
Use GHC 8.4.3 on Travis

13 months agoMerge pull request #109 from haskell/travis-new-build
Herbert Valerio Riedel [Wed, 2 May 2018 16:21:41 +0000 (18:21 +0200)] 
Merge pull request #109 from haskell/travis-new-build

Update Travis script to use haskell-ci

13 months ago--no-installed travis-new-build
Ryan Scott [Wed, 2 May 2018 13:57:54 +0000 (09:57 -0400)] 
--no-installed

13 months agoUpdate Travis script to use haskell-ci
Ryan Scott [Wed, 2 May 2018 13:46:59 +0000 (09:46 -0400)] 
Update Travis script to use haskell-ci

14 months agoFix tests after #59
Ryan Scott [Tue, 17 Apr 2018 16:17:25 +0000 (12:17 -0400)] 
Fix tests after #59

14 months agoBump upper bound on base to < 4.13 (#108)
Ryan Scott [Tue, 17 Apr 2018 12:38:07 +0000 (08:38 -0400)] 
Bump upper bound on base to < 4.13 (#108)

See https://ghc.haskell.org/trac/ghc/ticket/15018.

15 months agoAdd comment why `closeFd` doesn't have to retry on EINTR. Fixes #88
Niklas Hambüchen [Mon, 26 Feb 2018 08:19:17 +0000 (09:19 +0100)] 
Add comment why `closeFd` doesn't have to retry on EINTR. Fixes #88

15 months agoAdd missing '@since' annotations
Herbert Valerio Riedel [Fri, 23 Feb 2018 21:21:09 +0000 (22:21 +0100)] 
Add missing '@since' annotations

15 months agoPerform overdue version bump
Herbert Valerio Riedel [Fri, 23 Feb 2018 21:08:29 +0000 (22:08 +0100)] 
Perform overdue version bump

16 months agoAdd support for more OpenFileFlags and refactor 'openFd' (PR #59)
Julian Ospald [Sun, 1 May 2016 15:55:41 +0000 (17:55 +0200)] 
Add support for more OpenFileFlags and refactor 'openFd' (PR #59)

* Add support for `O_NOFOLLOW`, `O_CLOEXEC`, `O_DIRECTORY` and `O_SYNC`
   (#6, #57)

* Refactor API of `openFd` removing `Maybe FileMode` argument,
   which now must be passed as part of `OpenFileFlags`
   (e.g. `defaultFileFlags { creat = Just mode }`)  (#58)

Closes #59

18 months agoMerge pull request #104 from bgamari/unsupported-modes
Ben Gamari [Wed, 29 Nov 2017 20:22:38 +0000 (15:22 -0500)] 
Merge pull request #104 from bgamari/unsupported-modes

Rip out poorly supported termios modes

18 months agoRip out poorly supported termios modes
Ben Gamari [Tue, 28 Nov 2017 17:16:12 +0000 (12:16 -0500)] 
Rip out poorly supported termios modes

These are supported under neither FreeBSD 11 nor FreeBSD 10.3 and as
mentioned in #102, aren't terribly useful regardless.

19 months agoSystem.Posix.Signals: add haddock on signals
Chris Martin [Tue, 31 Oct 2017 21:30:02 +0000 (17:30 -0400)] 
System.Posix.Signals: add haddock on signals

The signal descriptions are from
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html

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

22 months agoMerge pull request #99 from bbarenblat/master
Herbert Valerio Riedel [Wed, 9 Aug 2017 16:33:39 +0000 (18:33 +0200)] 
Merge pull request #99 from bbarenblat/master

System.Posix.Terminal: Add more terminal modes

22 months agoAdd IXANY, changelog entries, and TerminalMode comments
Eric Mertens [Wed, 9 Aug 2017 16:00:59 +0000 (09:00 -0700)] 
Add IXANY, changelog entries, and TerminalMode comments

22 months agoAdd OFDEL Terminal mode. Add haddock comment marker
Eric Mertens [Tue, 8 Aug 2017 23:49:25 +0000 (16:49 -0700)] 
Add OFDEL Terminal mode. Add haddock comment marker

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

23 months agoSystem.Posix.Terminal: Add more terminal modes
Benjamin Barenblat [Wed, 5 Jul 2017 01:45:59 +0000 (21:45 -0400)] 
System.Posix.Terminal: Add more terminal modes

Add ONLCR, OCRNL, ONOCR, ONLRET, OFILL, NLDLY, CRDLY, TABDLY, BSDLY,
VTDLY, and FFDLY.

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

23 months 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

23 months 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

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

23 months 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