aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Process.hsc
Commit message (Collapse)AuthorAge
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Drop bitrotting HUGS supportGravatar Herbert Valerio Riedel2016-01-31
| | | | | It's very unlikely the current `unix` code stands any chance of even remotely work with Hugs...
* More fixes for Safe Haskell bounds under GHC 7.10Gravatar David Terei2014-12-08
|
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Export `forkProcessWithUnmask` from `System.Posix.Process`Gravatar Herbert Valerio Riedel2013-11-08
| | | | | | This is a follow-up to 17192d89e6 which missed that export. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Declare language extensions via `{-# LANGUAGE -#}`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | 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>
* Bump base lower version to 4.5 (the version GHC 7.4.1 came with)Gravatar Ian Lynagh2012-11-30
| | | | and remove code to support older versions
* Provide a raw ByteString version of FilePath and environment APIsGravatar Simon Marlow2011-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Follow change to FFI decls: Import constructors of newtypesGravatar Ian Lynagh2011-10-21
|
* Fix conditional pragma to work with 6.12Gravatar David Terei2011-08-09
|
* Use Safe Haskell when GHC >= 7.2Gravatar David Terei2011-08-03
|
* Fix typos in future process group APIGravatar Favonia2011-05-31
|
* elaborate the deprecation messages, and add commented-out newGravatar Simon Marlow2011-05-23
| | | | versions, for setProcessGroupID and createProcessGroup
* Change the POSIX process group API. (trac #5167)Gravatar Favonia2011-05-23
| | | | | | | | | | | | | | | Make it possible to query the process group of an existing process (through 'getProcessGroupIDOf') and try to make function names more consistent. Here is the full list of API changes in System.Posix.Process in this patch: getProcessGroupID => same getProcessGroupIDOf => new createProcessGroup => deprecated createProcessGroupFor => new joinProcessGroup => same setProcessGroupID => deprecated setProcessGroupIDOf => new
* Improved Unicode support in the light of PEP383Gravatar Max Bolingbroke2011-05-14
|
* Remove unnecessary fromIntegral callsGravatar simonpj@microsoft.com2010-11-16
|
* mention that forkProcess is not supported with +RTS -Nn where n > 1Gravatar Simon Marlow2010-04-30
|
* NetBSD does not have support for symbol versioning, so updated systenGravatar Simon Marlow2009-07-23
| | | | | | | | | | | | | | | | | | functions need to be given a new name, and the header files contain some __asm hackery in order to let the program call the correct function. This mean that you need to use the header files in order to call the correct system functions, which prevents things like "foreign import ccall" from working. Ghc solves this with wrapper functions for some of the renamed functions, but it has not been updated for newer versions of NetBSD that has recently versioned some more functions. The attached patches introduces wrapper functions for all currently NetBSD-versioned functions used in libraries/unix. Solves ~20 testsuite failures. Contributed by: Krister Walfridsson <krister.walfridsson@gmail.com>
* Remove unused importsGravatar Ian Lynagh2009-07-07
|
* Rewrite of signal-handling.Gravatar Simon Marlow2009-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | The API is the same (for now). 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. #2451 is the ticket for the new API. The main purpose of bringing this in now is to fix race conditions in the old signal handling code (#2858). Later we can enable the new API in the HEAD. Implementation differences: - More of the signal-handling is moved into Haskell. We store the table of signal handlers in an MVar, rather than having a table of StablePtrs in the RTS. - In the threaded RTS, the siginfo of the signal is passed down the pipe to the IO manager thread, which manages the business of starting up new signal handler threads. In the non-threaded RTS, the siginfo of caught signals is stored in the RTS, and the scheduler starts new signal handler threads.
* generalise type of executeFile (#2948)Gravatar Simon Marlow2009-01-14
|
* Fix warnings in the unix packageGravatar Ian Lynagh2008-08-21
|
* Avoid using deprecated flagsGravatar Ian Lynagh2008-06-16
|
* Fix some haddock linksGravatar Ian Lynagh2007-11-26
|
* add cross-referencing between posix and process modulesGravatar ijones@syntaxpolice.org2007-08-19
|
* Move System.Posix.Signals from baseGravatar Ian Lynagh2007-07-29
| | | | Also adds System.Posix.Process.Internals in order to make the deps work out.
* expand docs for forkProcessGravatar Simon Marlow2007-03-01
|
* fix markup (#854)Gravatar Ross Paterson2006-08-20
|
* document args to executeFileGravatar Simon Marlow2006-08-09
|
* [project @ 2005-11-10 12:58:32 by simonmar]Gravatar simonmar2005-11-10
| | | | Some docs for System.Posix, from Bj?rn Bringert
* [project @ 2004-12-02 15:57:06 by ross]Gravatar ross2004-12-02
| | | | | Hugs only: replace the CBITS pragma (files relative to cbits) with CFILES (files relative to the root of the package).
* [project @ 2004-10-27 10:51:15 by simonmar]Gravatar simonmar2004-10-27
| | | | | Fix bug in forkProcess: we weren't wrapping the forked IO action in the default exception handler, so exitFailure wasn't working properly.
* [project @ 2004-10-09 07:51:07 by panne]Gravatar panne2004-10-09
| | | | | Unbreak Hugs by moving pPrPr_disableITimers and execvpe to System.Posix.Internals (base package) and use it from System.Posix.Process (unix package).
* [project @ 2004-10-08 18:35:50 by panne]Gravatar panne2004-10-08
| | | | Unbreak Hugs, 2nd try...
* [project @ 2004-10-08 17:48:57 by panne]Gravatar panne2004-10-08
| | | | Unbreak Hugs: execvpe.c has gone
* [project @ 2004-08-19 11:15:51 by simonmar]Gravatar simonmar2004-08-19
| | | | | | | | | Add filenames to all errors where it makes sense. I've added System.Posix.Error with a new family of error-throwing functions, throwErrnoPath*. This seemed to make the most sense: they don't belong in Foreign.C.Error (C by itself has no notion of paths). Fixes: [ 954378 ] getFileStatus does not include the file name in IO-Error
* [project @ 2004-03-09 11:37:14 by simonmar]Gravatar simonmar2004-03-09
| | | | | change the foreign import of waitpid to "safe", so that we can use it in a non-blocking way with the threaded RTS.
* [project @ 2003-10-17 16:48:44 by ross]Gravatar ross2003-10-17
| | | | | | Hugs only: add most of the rest of System.Posix (I wonder why SIG_UNBLOCK and SIG_SETMASK are switched in HsBase.h)
* [project @ 2003-10-01 10:57:44 by wolfgang]Gravatar wolfgang2003-10-01
| | | | | | | | | | | | | | New implementation & changed type signature of forkProcess forkProcess now has the following type: forkProcess :: IO () -> IO ProcessID forkProcessAll has been removed as it is unimplementable in the threaded RTS. forkProcess using the old type (IO (Maybe ProcessID)) was impossible to implement correctly in the non-threaded RTS and very hard to implement in the threaded RTS. The new type signature allows a clean and simple implementation.
* [project @ 2003-08-04 13:26:12 by panne]Gravatar panne2003-08-04
| | | | More import tweaking for Haddock
* [project @ 2003-06-03 11:31:45 by stolz]Gravatar stolz2003-06-03
| | | | waitpid() may return EINTR, so use throwErrnoifMinus1Retry
* [project @ 2003-05-21 15:07:55 by simonmar]Gravatar simonmar2003-05-21
| | | | Revert previous commit, I've fixed Haddock instead.
* [project @ 2003-05-21 14:58:36 by simonmar]Gravatar simonmar2003-05-21
| | | | Flatten the doc structure a bit.
* [project @ 2003-03-09 20:19:28 by panne]Gravatar panne2003-03-09
| | | | Fixed markup confusion ("" vs. '')
* [project @ 2003-03-06 14:23:09 by stolz]Gravatar stolz2003-03-06
| | | | Monad->Control.Monad
* [project @ 2003-02-28 16:46:49 by stolz]Gravatar stolz2003-02-28
| | | | Update comments to reflect new module System.Posix.Env
* [project @ 2003-02-28 12:44:54 by stolz]Gravatar stolz2003-02-28
| | | | Fix 'nice': -1 is a permissible return value in a successful situation
* [project @ 2003-02-28 12:34:45 by stolz]Gravatar stolz2003-02-28
| | | | | | | - Rename System.Posix.Process.forkProcess to forkProcessAll - Move GHC.Conc.forkProcess to System.Posix with type 'Maybe ProcessID' Prompted by: George Russel
* [project @ 2002-12-19 13:52:55 by simonmar]Gravatar simonmar2002-12-19
| | | | | | | | | Fill in some more bits in the new Unix library: specifically the contents of PosixTTY and PosixDB (now System.Posix.Terminal and System.Posix.User respectively). We're now about 95% complete w.r.t. the old posix library. I've identified the reminaing bits to do in System/Posix.hs.
* [project @ 2002-10-08 08:03:02 by wolfgang]Gravatar wolfgang2002-10-08
| | | | | | | | | Make the new Posix bindings compile on Mac OS X. Most notable, Mac OS X lacks *) lchown *) SIGPOLL I don't know of a replacement of either, so they are just left out when they are not detected by configure.