packages/unix.git
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.

6 years agoAdd comment to .cabal file saying what GHC 7.6.1 shipped with
Ian Lynagh [Fri, 30 Nov 2012 16:00:21 +0000 (16:00 +0000)] 
Add comment to .cabal file saying what GHC 7.6.1 shipped with

6 years agoExport CatchInfo,CatchInfoOnce constructors of Handler
Ian Lynagh [Wed, 31 Oct 2012 15:12:28 +0000 (15:12 +0000)] 
Export CatchInfo,CatchInfoOnce constructors of Handler

This fixes warnings following
    commit 910a642294eb3547d0cbb3d5735ad81b964f137b
    Author: Simon Peyton Jones <simonpj@microsoft.com>
    Date:   Mon Oct 29 23:25:25 2012 +0000
    Do not treat a constructor in a *pattern* as a *use* of that constructor

I'm not sure if this is the right thing to do: In
    commit 1c4608e3b8737dbb9204f850af4d680ccea7d8ec
    Author: Simon Marlow <marlowsd@gmail.com>
    Date:   Thu Feb 19 10:05:32 2009 +0000
    Rewrite of signal-handling.
the commit message says:
    The new implementation has the capability to define signal handlers
    that have access to the siginfo of the signal (#592), but this
    functionality is not exposed in this patch.
but this at least gets validate builds working again, and we can change
it if necessary as part of #2451

6 years agoOnly use unsetenv if HAVE_UNSETENV is defined (fixes #7343)
Simon Hengel [Wed, 17 Oct 2012 22:40:19 +0000 (00:40 +0200)] 
Only use unsetenv if HAVE_UNSETENV is defined (fixes #7343)

6 years agoFix warnings.
Paolo Capriotti [Thu, 6 Sep 2012 10:30:40 +0000 (11:30 +0100)] 
Fix warnings.

6 years agoAdd functions for setting file times with high resolution
Marios Titas [Sun, 12 Aug 2012 19:46:22 +0000 (15:46 -0400)] 
Add functions for setting file times with high resolution

6 years agoBump version to 2.6.0.0 ghc-7.6.1-release unix-2.6.0.0-release
Paolo Capriotti [Tue, 10 Jul 2012 14:44:35 +0000 (15:44 +0100)] 
Bump version to 2.6.0.0

6 years agoFix warnings.
Paolo Capriotti [Wed, 18 Jul 2012 10:51:26 +0000 (11:51 +0100)] 
Fix warnings.

6 years agoExtract high resolution timestamps from FileStatus
Marios Titas [Wed, 13 Jun 2012 06:52:03 +0000 (02:52 -0400)] 
Extract high resolution timestamps from FileStatus

Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com>
6 years agoAdd a WARNING for sleep, and expand documentation.
Paolo Capriotti [Mon, 2 Jul 2012 10:52:39 +0000 (11:52 +0100)] 
Add a WARNING for sleep, and expand documentation.

sleep doesn't really work on GHC because it is always immediately
interrupted by SIGVTALRM used in the RTS.

I explained the problem in a comment and added a WARNING pragma.

usleep and nanosleep have a similar problem, but, since they have better
precision, they can be restarted, so they are not as unusable as sleep.

6 years agoFollow changes in base
Ian Lynagh [Tue, 19 Jun 2012 21:53:55 +0000 (22:53 +0100)] 
Follow changes in base

7 years agouse Control.Monad.void instead of Foreign.void (which is now deprecated)
Simon Marlow [Wed, 25 Apr 2012 09:41:38 +0000 (10:41 +0100)] 
use Control.Monad.void instead of Foreign.void (which is now deprecated)

7 years agoAdd workaround for systems without clearenv.
Paolo Capriotti [Wed, 4 Apr 2012 14:33:53 +0000 (15:33 +0100)] 
Add workaround for systems without clearenv.

7 years agoRe-enable posix005 test (#5648)
Paolo Capriotti [Fri, 30 Mar 2012 18:23:29 +0000 (19:23 +0100)] 
Re-enable posix005 test (#5648)

7 years agoAdd setEnvironment and cleanEnv to System.Posix.Env (#5648)
Paolo Capriotti [Fri, 30 Mar 2012 18:16:39 +0000 (19:16 +0100)] 
Add setEnvironment and cleanEnv to System.Posix.Env (#5648)

7 years agofix documentation for getAnyProcessStatus/getGroupProcessStatus (#5946)
Simon Marlow [Fri, 23 Mar 2012 15:10:17 +0000 (15:10 +0000)] 
fix documentation for getAnyProcessStatus/getGroupProcessStatus (#5946)

7 years agoRemove tabs from System.Posix.Env.hsc.
Paolo Capriotti [Fri, 9 Mar 2012 14:20:01 +0000 (14:20 +0000)] 
Remove tabs from System.Posix.Env.hsc.

7 years agoCopy tests from GHC testsuite (#1161)
Paolo Capriotti [Fri, 9 Mar 2012 11:44:41 +0000 (11:44 +0000)] 
Copy tests from GHC testsuite (#1161)

7 years agoMove nocldstop from HsBase.h to HsUnix.h
Ian Lynagh [Sun, 26 Feb 2012 17:07:32 +0000 (17:07 +0000)] 
Move nocldstop from HsBase.h to HsUnix.h

7 years agoUpdate dependencies
Ian Lynagh [Wed, 22 Feb 2012 19:11:04 +0000 (19:11 +0000)] 
Update dependencies

7 years agoConvert some FFI decls to use capi
Ian Lynagh [Wed, 22 Feb 2012 01:47:27 +0000 (01:47 +0000)] 
Convert some FFI decls to use capi

7 years agoRelax base dependency
Ian Lynagh [Fri, 10 Feb 2012 18:47:55 +0000 (18:47 +0000)] 
Relax base dependency

7 years agoUse error not ioError for consistency.
David Terei [Tue, 10 Jan 2012 01:37:14 +0000 (17:37 -0800)] 
Use error not ioError for consistency.

7 years agoCode cleaning for recent changes
David Terei [Mon, 9 Jan 2012 23:19:34 +0000 (15:19 -0800)] 
Code cleaning for recent changes

7 years agoSystem.Posix.Temp compliance
Deian Stefan [Fri, 6 Jan 2012 07:28:51 +0000 (23:28 -0800)] 
System.Posix.Temp compliance

7 years agomkstemps
Deian Stefan [Fri, 6 Jan 2012 03:38:13 +0000 (19:38 -0800)] 
mkstemps

7 years agoFix validation error
David Terei [Fri, 6 Jan 2012 03:02:27 +0000 (19:02 -0800)] 
Fix validation error

7 years agoCode clean and documentation improvements to Temp.
David Terei [Fri, 6 Jan 2012 02:50:00 +0000 (18:50 -0800)] 
Code clean and documentation improvements to Temp.

7 years agoforgot to add to previous commit
Deian Stefan [Mon, 2 Jan 2012 05:54:52 +0000 (21:54 -0800)] 
forgot to add to previous commit

7 years agofix bugs and added mkdtemp
Deian Stefan [Mon, 2 Jan 2012 05:46:26 +0000 (21:46 -0800)] 
fix bugs and added mkdtemp

7 years agoDon't expose System.Posix.DynamicLinker.Common
Ian Lynagh [Thu, 15 Dec 2011 14:47:03 +0000 (14:47 +0000)] 
Don't expose System.Posix.DynamicLinker.Common

The other .Common modules aren't expose, and we think exposing this
one was a mistake.

7 years agoforkProcess now works with +RTS -N; update docs and tests
Simon Marlow [Tue, 6 Dec 2011 15:20:28 +0000 (15:20 +0000)] 
forkProcess now works with +RTS -N; update docs and tests

7 years agoRoll back the sigset capi changes
Ian Lynagh [Sat, 3 Dec 2011 16:43:18 +0000 (16:43 +0000)] 
Roll back the sigset capi changes

They broken the build on OSX. See #2979.

7 years agoUse capi to define the fcntl FFI imports
Ian Lynagh [Mon, 28 Nov 2011 18:59:18 +0000 (18:59 +0000)] 
Use capi to define the fcntl FFI imports

7 years agoUse capi some more (part of #5480)
Ian Lynagh [Mon, 28 Nov 2011 18:20:04 +0000 (18:20 +0000)] 
Use capi some more (part of #5480)

7 years agoConvert come FFI bindings to use the capi calling convention
Ian Lynagh [Sat, 26 Nov 2011 16:16:51 +0000 (16:16 +0000)] 
Convert come FFI bindings to use the capi calling convention

7 years agoFix Solaris breakage (I hope)
Simon Marlow [Mon, 28 Nov 2011 09:35:36 +0000 (09:35 +0000)] 
Fix Solaris breakage (I hope)

7 years agoFixes for NetBSD
Ian Lynagh [Fri, 25 Nov 2011 01:17:02 +0000 (01:17 +0000)] 
Fixes for NetBSD

Based on a patch from Arnaud Degroote <degroote@NetBSD.org> in
trac #5480.

7 years agoMove openPseudoTerminal into System.Posix.Terminal{.ByteString}
Simon Marlow [Wed, 23 Nov 2011 09:35:29 +0000 (09:35 +0000)] 
Move openPseudoTerminal into System.Posix.Terminal{.ByteString}

It may depend on getSlaveTerminalName if !defined(HAVE_OPENPTY)

7 years agoBump version 2.5.0.0 -> 2.5.1.0 (added RawFilePath API)
Simon Marlow [Thu, 17 Nov 2011 13:25:23 +0000 (13:25 +0000)] 
Bump version 2.5.0.0 -> 2.5.1.0 (added RawFilePath API)

7 years agoProvide a raw ByteString version of FilePath and environment APIs
Simon Marlow [Fri, 11 Nov 2011 16:18:48 +0000 (16:18 +0000)] 
Provide a raw ByteString version of FilePath and environment APIs

The new module System.Posix.ByteString provides exactly the same API
as System.Posix, except that:

  - There is a new type: RawFilePath = ByteString

  - All functions mentioning FilePath in the System.Posix API
    use RawFilePath in the System.Posix.ByteString API

  - RawFilePaths are not subject to Unicode locale encoding and
    decoding, unlike FilePaths.  They are the exact bytes passed to and
    returned from the underlying POSIX API.

  - Similarly for functions that deal in environment
    strings (System.Posix.Env): these use untranslated ByteStrings
    in System.Posix.Environment

  - There is a new function

     System.Posix.ByteString.getArgs :: [ByteString]

    returning the raw untranslated arguments as passed to exec() when
    the program was started.

7 years agoexecuteFile001: omit profiling ways
Simon Marlow [Mon, 21 Nov 2011 14:37:15 +0000 (14:37 +0000)] 
executeFile001: omit profiling ways

The RTS doesn't get a chance to produce the profile output after
executeFile, so tests that check for correct profiling output will fail.

7 years agoAdd a test for #5319
Ian Lynagh [Wed, 16 Nov 2011 18:21:32 +0000 (18:21 +0000)] 
Add a test for #5319