packages/unix.git
4 years agoTighten Safe Haskell bounds, fixes new warning in GHC 7.10. safe710fixes
David Terei [Thu, 13 Nov 2014 02:12:18 +0000 (18:12 -0800)] 
Tighten Safe Haskell bounds, fixes new warning in GHC 7.10.

4 years agoMerge pull request #18 from neverpanic/master
Herbert Valerio Riedel [Fri, 7 Nov 2014 10:16:25 +0000 (11:16 +0100)] 
Merge pull request #18 from neverpanic/master

`System.Posix.Files.fileAccess` fails inside OS X sandbox

4 years agoAdd hackage-shield to README.md
Herbert Valerio Riedel [Thu, 23 Oct 2014 07:36:57 +0000 (09:36 +0200)] 
Add hackage-shield to README.md

4 years agoMerge pull request #5 from hvr/pr-LFS
Herbert Valerio Riedel [Sat, 18 Oct 2014 15:08:52 +0000 (17:08 +0200)] 
Merge pull request #5 from hvr/pr-LFS

Fix potential LFS related issues

4 years agofix _FILE_OFFSET_BITS redefined warning on Solaris/x86
Karel Gardas [Fri, 25 Jul 2014 21:42:00 +0000 (23:42 +0200)] 
fix _FILE_OFFSET_BITS redefined warning on Solaris/x86

The issue is that sys/types.h header on Solaris includes somehow
/usr/include/sys/feature_tests.h which tests if _FILE_OFFSET_BITS
is defined and if not, then it defines it to 32 if we're compiling
32 bit code (x86). This is simply wrong since we'd like to have it
defined to 64. The issue is solved by including HsUnixConfig.h first
which defines _FILE_OFFSET_BITS to 64 and feature_tests.h is later
OK with that.

4 years agoUse CAPI FFI imports for `truncate`
Herbert Valerio Riedel [Thu, 7 Aug 2014 10:33:51 +0000 (12:33 +0200)] 
Use CAPI FFI imports for `truncate`

This makes sure we pick up the LFS version of `truncate` in case `off_t`
is affected by CPP defines such as `_FILE_OFFSET_BITS`.

4 years agoUse correct POSIX offset-type for tell/seekdir
Herbert Valerio Riedel [Thu, 7 Aug 2014 10:23:07 +0000 (12:23 +0200)] 
Use correct POSIX offset-type for tell/seekdir

This fixes the FFI imports to use the proper `CLong` type over the
previous incorrect `COff` type, as using the wrong argument type can
cause problems when the `long` and `off_t` types have different size.

Historic note from the manual page:

  In glibc up to version 2.1.1, the return type of telldir() was off_t.
  POSIX.1-2001 specifies long, and this is the type used since glibc
  2.1.2 (released in 1999).

4 years agoReplace obsolete `defaultUserHooks` by `autoconfUserHooks`
Herbert Valerio Riedel [Sat, 27 Sep 2014 07:52:28 +0000 (09:52 +0200)] 
Replace obsolete `defaultUserHooks` by `autoconfUserHooks`

4 years agoMerge pull request #19 from thomie/master
Herbert Valerio Riedel [Fri, 26 Sep 2014 17:32:15 +0000 (19:32 +0200)] 
Merge pull request #19 from thomie/master

Disable getlogin tests for the moment (#1487)

4 years agoDisable getlogin tests for the moment (#1487)
Thomas Miedema [Fri, 26 Sep 2014 17:03:05 +0000 (19:03 +0200)] 
Disable getlogin tests for the moment (#1487)

4 years agoAccept EPERM as valid error code for access(2)
Clemens Lang [Sun, 21 Sep 2014 15:49:16 +0000 (17:49 +0200)] 
Accept EPERM as valid error code for access(2)

This is useful on OS X when its sandboxing mechanism is used, because
that will set errno = EPERM when a file can't be written due to
sandboxing (as opposed to setting it to EACCES when file permissions
deny writing).

4 years agoUnify accepted errno flags for access
Clemens Lang [Sun, 21 Sep 2014 15:45:56 +0000 (17:45 +0200)] 
Unify accepted errno flags for access

The ByteString variant of the access function didn't accept the same
flags as the non-ByteString one, but it makes sense that the OS doesn't
care about which one is being used and returns all error codes for both
variants.

4 years agoUnify whitespace in System/Posix/Files/ByteString
Clemens Lang [Sun, 21 Sep 2014 15:45:01 +0000 (17:45 +0200)] 
Unify whitespace in System/Posix/Files/ByteString

4 years agoUpdate config.{guess,sub} to GNU automake 1.14.1
Herbert Valerio Riedel [Tue, 16 Sep 2014 10:05:40 +0000 (12:05 +0200)] 
Update config.{guess,sub} to GNU automake 1.14.1

4 years agoRelax upper bound to allow `time-1.5`
Herbert Valerio Riedel [Wed, 10 Sep 2014 20:51:21 +0000 (22:51 +0200)] 
Relax upper bound to allow `time-1.5`

4 years agoUse import list for `Data.Time.Clock.POSIX`
Herbert Valerio Riedel [Wed, 10 Sep 2014 20:48:39 +0000 (22:48 +0200)] 
Use import list for `Data.Time.Clock.POSIX`

This makes it more obvious why `unix` depends on `time` in the first
place, i.e. for the sole purpose of reusing the `POSIXTime` type.

4 years agoMerge branch 'sol-fix-getgrgid_r-v3' of https://github.com/kgardas/unix into kgardas...
Herbert Valerio Riedel [Wed, 10 Sep 2014 09:34:44 +0000 (11:34 +0200)] 
Merge branch 'sol-fix-getgrgid_r-v3' of https://github.com/kgardas/unix into kgardas-sol-fix-getgrgid_r-v3

Conflicts:
changelog.md

4 years agofix getGroupEntryForID/Name on Solaris
Karel Gardas [Mon, 8 Sep 2014 18:17:47 +0000 (20:17 +0200)] 
fix getGroupEntryForID/Name on Solaris

This patch fixes getGroupEntryForID and getGroupEntryForName on Solaris
The issue on Solaris is that it defines both required getgrgid_r
and getgrnam_r functions as CPP macros which depending on configuration
are mapped to real function implementations with different names.
The issue is solved by using C API calling convention instead of platform
C ABI calling convention.

4 years agoBump `base` constraint for AMP
Herbert Valerio Riedel [Tue, 9 Sep 2014 15:32:01 +0000 (17:32 +0200)] 
Bump `base` constraint for AMP

4 years agoMerge pull request #10 from ezyang/ezyang-dev
Herbert Valerio Riedel [Fri, 22 Aug 2014 22:05:29 +0000 (00:05 +0200)] 
Merge pull request #10 from ezyang/ezyang-dev

Ignore test output created by GHC test suite.

4 years agoIgnore test output created by GHC test suite.
Edward Z. Yang [Fri, 22 Aug 2014 13:20:06 +0000 (14:20 +0100)] 
Ignore test output created by GHC test suite.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
4 years agoMerge pull request #1 from thomie/master
Gregory Collins [Tue, 15 Jul 2014 11:16:07 +0000 (13:16 +0200)] 
Merge pull request #1 from thomie/master

Enable test for getLoginName (Fixes #1487)

4 years agoMerge pull request #2 from thomie/T8902
Bryan O'Sullivan [Fri, 11 Jul 2014 15:39:07 +0000 (16:39 +0100)] 
Merge pull request #2 from thomie/T8902

Add haddock comments on RTLD_NEXT and RTLD_DEFAULT

4 years agoIgnore interp.stderr/stdout.
Edward Z. Yang [Mon, 7 Jul 2014 13:58:08 +0000 (14:58 +0100)] 
Ignore interp.stderr/stdout.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
4 years agoDeprecate function `haveRtldLocal`
Thomas Miedema [Fri, 4 Jul 2014 15:53:07 +0000 (17:53 +0200)] 
Deprecate function `haveRtldLocal`

The function haveRtldLocal was introduced for compatibility with Cygwin
on Mar 28 2002 in GHC commit 4740cf56c774b92e02d31b4666158d70c2e85a8f.

According to https://cygwin.com/viewvc/src/winsup/cygwin/include/dlfcn.h
RTLD_LOCAL has been available on Cygwin since Revision 1.4 (August 9 2010).

4 years agoRemove unnecessary checks for RTLD_NOW and RTLD_GLOBAL
Thomas Miedema [Fri, 4 Jul 2014 15:23:58 +0000 (17:23 +0200)] 
Remove unnecessary checks for RTLD_NOW and RTLD_GLOBAL

These checks were introduced for OpenBSD on July 16 2002 in GHC commit
03e9edb3094fd3bb38ed886b96ee9f61f39e9b53.

According to http://www.openbsd.org/cgi-bin/cvsweb/src/include/dlfcn.h
RTLD_NOW, RTLD_GLOBAL and RTLD_LOCAL have been available on OpenBSD
since Revision 1.8 (September 2 2003).

This is merely code cleanup.

4 years agoAdd haddock comments on RTLD_NEXT and RTLD_DEFAULT
Thomas Miedema [Fri, 4 Jul 2014 14:42:21 +0000 (16:42 +0200)] 
Add haddock comments on RTLD_NEXT and RTLD_DEFAULT

Related ticket: #8902.

4 years agoEnable test for getLoginName
Thomas Miedema [Thu, 26 Jun 2014 21:23:15 +0000 (23:23 +0200)] 
Enable test for getLoginName

Fixes #1487.

Make use of no_stdin test option, introduced explictly for this purpose
in fa52a8c9d8eae5e3fc4c0cf0e5672875e161e05c

4 years agoMerge https://github.com/haskell/unix
Herbert Valerio Riedel [Thu, 26 Jun 2014 22:05:14 +0000 (00:05 +0200)] 
Merge https://github.com/haskell/unix

4 years agoadd testsuite-related gitignore entries
Herbert Valerio Riedel [Thu, 26 Jun 2014 21:20:54 +0000 (23:20 +0200)] 
add testsuite-related gitignore entries

5 years agoUpdate URLs to point to GitHub
Herbert Valerio Riedel [Mon, 28 Apr 2014 08:38:51 +0000 (10:38 +0200)] 
Update URLs to point to GitHub

5 years agoTypo in comment
Gabor Greif [Sun, 23 Mar 2014 20:27:14 +0000 (21:27 +0100)] 
Typo in comment

5 years agoMerge branch 'ghc-7.8'
Herbert Valerio Riedel [Sat, 22 Mar 2014 16:37:02 +0000 (17:37 +0100)] 
Merge branch 'ghc-7.8'

Re-unite branches which diverged for now good reason

Conflicts:
changelog.md

5 years agoUpdate changelog and prepare for 2.7.0.1 release ghc-7.8 ghc-7.8.1-release ghc-7.8.2-release unix-2.7.0.1-release
Herbert Valerio Riedel [Sat, 22 Mar 2014 16:28:41 +0000 (17:28 +0100)] 
Update changelog and prepare for 2.7.0.1 release

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agofix getFileStatus: interrupted (Interrupted system call) build failure on Solaris
Karel Gardas [Wed, 26 Feb 2014 11:14:26 +0000 (12:14 +0100)] 
fix getFileStatus: interrupted (Interrupted system call) build failure on Solaris

Patch provided by Christian Maeder <Christian.Maeder@dfki.de>

Signed-off-by: Karel Gardas <karel.gardas@centrum.cz>
Signed-off-by: Austin Seipp <austin@well-typed.com>
(cherry picked from commit f4d0e106f237d767156b3c751f1b9f4598f2a6a1)

5 years agofix getFileStatus: interrupted (Interrupted system call) build failure on Solaris
Karel Gardas [Wed, 26 Feb 2014 11:14:26 +0000 (12:14 +0100)] 
fix getFileStatus: interrupted (Interrupted system call) build failure on Solaris

Patch provided by Christian Maeder <Christian.Maeder@dfki.de>

Signed-off-by: Karel Gardas <karel.gardas@centrum.cz>
Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoM-x delete-trailing-whitespace & M-x untabify
Herbert Valerio Riedel [Thu, 6 Feb 2014 11:33:55 +0000 (12:33 +0100)] 
M-x delete-trailing-whitespace & M-x untabify

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
(cherry picked from commit 86d798975357c55fd0e5303c83f09844411c3837)

5 years agoHandle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)
Alain O'Dea [Wed, 5 Feb 2014 21:24:28 +0000 (21:24 +0000)] 
Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)

This extends `System.Posix.Files.`access` to map EROFS & ETXTBSY to
mean permission denied just like EACCESS.

Based on a patch by Alain O'Dea and comments by Duncan Coutts

Authored-by: Alain O'Dea <alain.odea@verafin.com>
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
(cherry picked from commit ecc92abad017cf12d8eb83509d4d57ae14ad47f9)

5 years agoConvert `changelog` to markdown format
Herbert Valerio Riedel [Sun, 2 Feb 2014 10:03:00 +0000 (11:03 +0100)] 
Convert `changelog` to markdown format

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
(cherry picked from commit 4a08984afe5390d91f10f9b1caf7365e6a93595b)

5 years agoM-x delete-trailing-whitespace & M-x untabify
Herbert Valerio Riedel [Thu, 6 Feb 2014 11:33:55 +0000 (12:33 +0100)] 
M-x delete-trailing-whitespace & M-x untabify

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoHandle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)
Alain O'Dea [Wed, 5 Feb 2014 21:24:28 +0000 (21:24 +0000)] 
Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)

This extends `System.Posix.Files.`access` to map EROFS & ETXTBSY to
mean permission denied just like EACCESS.

Based on a patch by Alain O'Dea and comments by Duncan Coutts

Authored-by: Alain O'Dea <alain.odea@verafin.com>
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoConvert `changelog` to markdown format
Herbert Valerio Riedel [Sun, 2 Feb 2014 10:03:00 +0000 (11:03 +0100)] 
Convert `changelog` to markdown format

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoExport `forkProcessWithUnmask` from `System.Posix.Process` unix-2.7.0.0-release
Herbert Valerio Riedel [Fri, 8 Nov 2013 15:33:11 +0000 (16:33 +0100)] 
Export `forkProcessWithUnmask` from `System.Posix.Process`

This is a follow-up to 17192d89e6 which missed that export.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoAdd `cabal install` step to Travis CI script
Herbert Valerio Riedel [Fri, 8 Nov 2013 15:18:17 +0000 (16:18 +0100)] 
Add `cabal install` step to Travis CI script

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years ago`M-x untabify` & `M-x delete-trailing-whitespace`
Herbert Valerio Riedel [Fri, 8 Nov 2013 14:48:18 +0000 (15:48 +0100)] 
`M-x untabify` & `M-x delete-trailing-whitespace`

...on recently touched files

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoFix markup for function names in DEPRECATION messages
Herbert Valerio Riedel [Fri, 8 Nov 2013 11:54:22 +0000 (12:54 +0100)] 
Fix markup for function names in DEPRECATION messages

This helps Haddock make tose hyperlinked functions.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoAdd `forkProcessWithUnmask` function
Herbert Valerio Riedel [Fri, 8 Nov 2013 11:48:54 +0000 (12:48 +0100)] 
Add `forkProcessWithUnmask` function

This seemed to be an obvious addition while working on #8433.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoFix `forkProcess` to inherit caller's `MaskingState`
Herbert Valerio Riedel [Fri, 8 Nov 2013 11:42:56 +0000 (12:42 +0100)] 
Fix `forkProcess` to inherit caller's `MaskingState`

...and while at it, use `bracket` to fix a potential resource leak due
to `freeStablePtr` not being called if `throwErrnoIfMinus1` throws an
exception.

This fixes #8433

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoKill trailing whitespace
Herbert Valerio Riedel [Thu, 7 Nov 2013 12:48:36 +0000 (13:48 +0100)] 
Kill trailing whitespace

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoRemove misleading paragraph in `fdToHandle`'s Haddock
Herbert Valerio Riedel [Thu, 7 Nov 2013 12:42:51 +0000 (13:42 +0100)] 
Remove misleading paragraph in `fdToHandle`'s Haddock

The removed paragraph is obsolete and does no longer apply to the
implementation as noted by Duncan in #8286.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoFix #7912 by using `CApiFFI` for `<termios.h>` imports
Herbert Valerio Riedel [Thu, 7 Nov 2013 12:22:34 +0000 (13:22 +0100)] 
Fix #7912 by using `CApiFFI` for `<termios.h>` imports

On Android, the functions imported from `<termios.h>` are actually
inlined functions, so we need to wrap them via the `capi` calling
convention.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoTemporary workaround for addressing #7359
Herbert Valerio Riedel [Thu, 7 Nov 2013 09:21:17 +0000 (10:21 +0100)] 
Temporary workaround for addressing #7359

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoUpdate bug-reports URL
Herbert Valerio Riedel [Sat, 26 Oct 2013 14:39:10 +0000 (16:39 +0200)] 
Update bug-reports URL

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoDon't include `HsUnixConfig.h` in source distribution
Herbert Valerio Riedel [Thu, 24 Oct 2013 19:18:47 +0000 (21:18 +0200)] 
Don't include `HsUnixConfig.h` in source distribution

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoMarkdown-ify README and add Travis-CI script
Herbert Valerio Riedel [Sun, 20 Oct 2013 12:14:40 +0000 (14:14 +0200)] 
Markdown-ify README and add Travis-CI script

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoUpdate aux files `config.{guess,sub}` and `install-sh`
Herbert Valerio Riedel [Sun, 20 Oct 2013 11:56:28 +0000 (13:56 +0200)] 
Update aux files `config.{guess,sub}` and `install-sh`

This updates the files to the versions bundled with GNU automake 1.13.3

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years ago`M-x untabify` changelog and unix.cabal
Herbert Valerio Riedel [Sun, 13 Oct 2013 08:17:54 +0000 (10:17 +0200)] 
`M-x untabify` changelog and unix.cabal

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoFix build on OS X
Bryan O'Sullivan [Sun, 13 Oct 2013 00:02:23 +0000 (17:02 -0700)] 
Fix build on OS X

5 years agoDrop trailing whitespace
Bryan O'Sullivan [Sun, 13 Oct 2013 00:01:57 +0000 (17:01 -0700)] 
Drop trailing whitespace

5 years agoFix a type defaulting warning
Bryan O'Sullivan [Sat, 12 Oct 2013 23:51:14 +0000 (16:51 -0700)] 
Fix a type defaulting warning

(And a small matter of using != instead of /= -- how embarrassing!)

5 years agoFix assumption that RLIM_INFINITY is a simple number
Bryan O'Sullivan [Sat, 12 Oct 2013 23:45:50 +0000 (16:45 -0700)] 
Fix assumption that RLIM_INFINITY is a simple number

On MacOS X, it is defined as "(((__uint64_t)1 << 63) - 1)", and
hence cannot be used inside C preprocessor logic.

5 years agoDrop trailing whitespace
Bryan O'Sullivan [Sat, 12 Oct 2013 23:45:11 +0000 (16:45 -0700)] 
Drop trailing whitespace

5 years agoMake `-Wall` clean and drop `-fno-warn-unused-imports`
Herbert Valerio Riedel [Sat, 12 Oct 2013 21:49:25 +0000 (23:49 +0200)] 
Make `-Wall` clean and drop `-fno-warn-unused-imports`

CPP conditional code sections have been carefully taken into account
while performing this warning cleanup. Most `OPTIONS_GHC` declarations
could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}`
remains in `Posix.Signals`).

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoRefactor & update `unix.cabal` to `cabal-version>=1.10`
Herbert Valerio Riedel [Sat, 12 Oct 2013 11:30:42 +0000 (13:30 +0200)] 
Refactor & update `unix.cabal` to `cabal-version>=1.10`

This also lists the GHC versions this package has been tested to compile
with in the `tested-with` Cabal field.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoMake compatible again for GHC back to 7.4.1
Herbert Valerio Riedel [Sat, 12 Oct 2013 11:24:45 +0000 (13:24 +0200)] 
Make compatible again for GHC back to 7.4.1

By avoiding `import Foreign` this accomplishes backward-compatibility
w.r.t. the `unsafePerformIO` relocation w/o resorting to CPP
conditionals.

Moreover, in order to support base<4.7 this commits needs to reintroduce
a harmless backport of `newFilePath`.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoAdd `dist/` and `*~` to `.gitignore`
Herbert Valerio Riedel [Sat, 12 Oct 2013 11:23:31 +0000 (13:23 +0200)] 
Add `dist/` and `*~` to `.gitignore`

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoAdd `changelog` file and `/Since: 2.7.0.0/` notes
Herbert Valerio Riedel [Sat, 12 Oct 2013 11:21:47 +0000 (13:21 +0200)] 
Add `changelog` file and `/Since: 2.7.0.0/` notes

The changelog file will be shown on Hackage once it's included in the
source tarball.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoDeclare language extensions via `{-# LANGUAGE -#}`
Herbert Valerio Riedel [Sat, 12 Oct 2013 11:01:50 +0000 (13:01 +0200)] 
Declare language extensions via `{-# LANGUAGE -#}`

Only language extensions not active when `-XHaskell2010` is enabled are
declared, this way we can drop many redundant
`{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also
removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoMake sure `HAVE_{SEEK,TELL}DIR` are in scope
Herbert Valerio Riedel [Sat, 12 Oct 2013 08:53:35 +0000 (10:53 +0200)] 
Make sure `HAVE_{SEEK,TELL}DIR` are in scope

This is a follow-up to b8fb0a0a9 which made the module exports of
`tellDirStream` and `seekDirStream` CPP-conditional but didn't
explicitly include `HsUnixConfig.h` which defines the respective CPP
defines.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoUnconditionalize imports in System.Posix.User
Reid Barton [Sun, 29 Sep 2013 23:23:41 +0000 (19:23 -0400)] 
Unconditionalize imports in System.Posix.User

Their use site is now unconditional. Issue #8223.

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoFix library detection of shm* on openSUSE (#8350)
Peter Trommler [Tue, 24 Sep 2013 11:44:54 +0000 (13:44 +0200)] 
Fix library detection of shm* on openSUSE (#8350)

Use the new AC_SERACH_LIBS to check if rt is needed for shm_open
and shm_unlink. This sets LIBS and so the shm_* functions
can be found if librt is indeed required. Passing -lrt through
CFLAGS is not portable.

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoUpdate Git repo URL in `.cabal` file
Herbert Valerio Riedel [Wed, 11 Sep 2013 13:15:01 +0000 (15:15 +0200)] 
Update Git repo URL in `.cabal` file

5 years agoFix two of the unix tests.
Austin Seipp [Sun, 11 Aug 2013 03:18:20 +0000 (22:18 -0500)] 
Fix two of the unix tests.

This is fallout from the fix for T8108.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
5 years agoAdd some extra files to .gitignore
Austin Seipp [Sun, 11 Aug 2013 01:58:25 +0000 (20:58 -0500)] 
Add some extra files to .gitignore

Signed-off-by: Austin Seipp <aseipp@pobox.com>
5 years agoExtract the result of get*_r before we deallocate the auxiliary buffer
Marios Titas [Mon, 8 Jul 2013 07:55:59 +0000 (03:55 -0400)] 
Extract the result of get*_r before we deallocate the auxiliary buffer

Also comes with tests. This closes #8108.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
5 years agoExport SignalInfo(..), SignalSpecificInfo(..); completes #2451
Ian Lynagh [Sun, 21 Jul 2013 20:09:23 +0000 (21:09 +0100)] 
Export SignalInfo(..), SignalSpecificInfo(..); completes #2451

5 years agoFix #7399.
Edward Z. Yang [Sat, 20 Jul 2013 21:15:15 +0000 (14:15 -0700)] 
Fix #7399.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
6 years agoTest cleaning fixes
Ian Lynagh [Thu, 13 Jun 2013 22:15:21 +0000 (23:15 +0100)] 
Test cleaning fixes

6 years agoMove AC_SUBST([EXTRA_LIBS]) later in configure.ac
Ian Lynagh [Tue, 21 May 2013 02:19:05 +0000 (03:19 +0100)] 
Move AC_SUBST([EXTRA_LIBS]) later in configure.ac

I don't think that it matters, but putting it after all the places
that alter EXTRA_LIBS is a little nicer.

6 years agoAdd "deprecated in" comments to deprecated pragmas
Ian Lynagh [Tue, 19 Feb 2013 15:16:58 +0000 (15:16 +0000)] 
Add "deprecated in" comments to deprecated pragmas

6 years agoBump version to 2.7.0.0
Ian Lynagh [Sun, 17 Feb 2013 20:25:16 +0000 (20:25 +0000)] 
Bump version to 2.7.0.0

6 years agoFollow changes in base
Ian Lynagh [Sat, 16 Feb 2013 13:01:47 +0000 (13:01 +0000)] 
Follow changes in base

6 years agoRemove uses of compose(s) in tests
Ian Lynagh [Thu, 14 Feb 2013 14:48:06 +0000 (14:48 +0000)] 
Remove uses of compose(s) in tests

6 years agoSmall testsuite refactoring; no functional change
Ian Lynagh [Thu, 14 Feb 2013 14:10:08 +0000 (14:10 +0000)] 
Small testsuite refactoring; no functional change

6 years agoDon't bother marking unix tests as 'skip' on Windows
Ian Lynagh [Thu, 14 Feb 2013 14:06:24 +0000 (14:06 +0000)] 
Don't bother marking unix tests as 'skip' on Windows

We don't run the unix tests on Windows anyway.

6 years agoFollow changes in the testsuite
Ian Lynagh [Mon, 11 Feb 2013 14:11:21 +0000 (14:11 +0000)] 
Follow changes in the testsuite

6 years agoTerminated has an extra field now
Simon Marlow [Wed, 30 Jan 2013 11:06:31 +0000 (11:06 +0000)] 
Terminated has an extra field now

6 years agocope with missing telldir/seekdir (for Android)
Simon Marlow [Wed, 30 Jan 2013 09:20:47 +0000 (09:20 +0000)] 
cope with missing telldir/seekdir (for Android)

Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>

6 years agocope with missing pw_gecos (for Android)
Simon Marlow [Wed, 30 Jan 2013 09:20:23 +0000 (09:20 +0000)] 
cope with missing pw_gecos (for Android)

Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>

6 years agochange notes
Simon Marlow [Thu, 4 Oct 2012 15:07:27 +0000 (16:07 +0100)] 
change notes

6 years agoIndicate whether a process dumped core in the ProcessStatus
Simon Marlow [Mon, 1 Oct 2012 10:48:14 +0000 (11:48 +0100)] 
Indicate whether a process dumped core in the ProcessStatus

The Bool field of Terminated is new, as is the documentation:

data ProcessStatus
   = Exited ExitCode        -- ^ the process exited by calling
                            -- @exit()@ or returning from @main@
   | Terminated Signal Bool -- ^ the process was terminated by a
                            -- signal, the @Bool@ is @True@ if a core
                            -- dump was produced
   | Stopped Signal         -- ^ the process was stopped by a signal
   deriving (Eq, Ord, Show)

This is an API change, hence will need a major version bump.

6 years agoImport waitpid() with interruptible
Simon Marlow [Mon, 1 Oct 2012 10:46:33 +0000 (11:46 +0100)] 
Import waitpid() with interruptible

6 years agoRename tests to not start with a digit
Ian Lynagh [Fri, 25 Jan 2013 01:29:44 +0000 (01:29 +0000)] 
Rename tests to not start with a digit

6 years agoUse pthread_kill on OS X too
Ian Lynagh [Thu, 17 Jan 2013 19:21:24 +0000 (19:21 +0000)] 
Use pthread_kill on OS X too

Fixes signals004(threaded1,threaded2) on OS X 32.

6 years agoFix some parentheses
Ian Lynagh [Thu, 17 Jan 2013 19:14:13 +0000 (19:14 +0000)] 
Fix some parentheses

I assume that this is what was intended.

6 years agoexecvpe exists on QNX
Stephen Paul Weber [Wed, 12 Dec 2012 00:26:55 +0000 (19:26 -0500)] 
execvpe exists on QNX

6 years agoFix putenv; trac #7342
Ian Lynagh [Sat, 1 Dec 2012 22:31:48 +0000 (22:31 +0000)] 
Fix putenv; trac #7342

We were freeing the string, but the string becomes part of the
environment.

6 years agoBump base lower version to 4.5 (the version GHC 7.4.1 came with)
Ian Lynagh [Fri, 30 Nov 2012 22:45:55 +0000 (22:45 +0000)] 
Bump base lower version to 4.5 (the version GHC 7.4.1 came with)

and remove code to support older versions

6 years agoUpdate dependencies
Ian Lynagh [Fri, 30 Nov 2012 17:56:17 +0000 (17:56 +0000)] 
Update dependencies

6 years agoBump version number following new policy
Ian Lynagh [Fri, 30 Nov 2012 16:40:58 +0000 (16:40 +0000)] 
Bump version number following new policy

We now keep the HEAD version numbers as values which would be suitable
for immediate release.