aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Unistd.hsc
Commit message (Collapse)AuthorAge
* Convert /since/ to @since syntaxGravatar Herbert Valerio Riedel2016-04-19
|
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hsunix_nanosleep` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Be more explicit in WARNING what will be thrownGravatar Herbert Valerio Riedel2014-12-15
|
* Add since-annotations to new fileSync opsGravatar Herbert Valerio Riedel2014-12-15
|
* More fixes for Safe Haskell bounds under GHC 7.10Gravatar David Terei2014-12-08
|
* Wrap fsync(2) and fdatasync(2)Gravatar Herbert Valerio Riedel2014-12-07
| | | | | | | | | | | | | | This adds two new functions in `System.Posix.Unistd` - `fileSynchronise` (aka `fsync(2)`), and - `fileSynchroniseDataOnly` (aka `fdatasync(2)`) This is based on part of #7 and has been heavily refactored from its original patch submission by Ricardo Catalinas Jiménez. This also bumps version to 2.7.1.0 as a minor version bump is now needed. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Make `-Wall` clean and drop `-fno-warn-unused-imports`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | 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>
* 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
* Add a WARNING for sleep, and expand documentation.Gravatar Paolo Capriotti2012-07-02
| | | | | | | | | | 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.
* Fix conditional pragma to work with 6.12Gravatar David Terei2011-08-09
|
* Use Safe Haskell when GHC >= 7.2Gravatar David Terei2011-08-03
|
* 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>
* Tweak an internal detailGravatar Ian Lynagh2009-03-04
| | | | | | We now use an EmptyDataDecl rather than recursive newtype as an argument to Ptr. As well as being prettier, this also avoids an infinite loop bug in haddock (trac #3066).
* Fix warnings in the unix packageGravatar Ian Lynagh2008-08-21
|
* Avoid using deprecated flagsGravatar Ian Lynagh2008-06-16
|
* Provide nanosleep if we have it, and use it to implement usleepGravatar Simon Marlow2007-03-02
| | | | Fixes #1156
* don't retry usleep() on EINTR (see #850/#1156)Gravatar Simon Marlow2007-03-02
|
* [project @ 2004-10-15 09:42:02 by simonmar]Gravatar simonmar2004-10-15
| | | | | - sleep, usleep: make thread-safe - add Haddock comments
* [project @ 2003-08-04 13:26:12 by panne]Gravatar panne2003-08-04
| | | | More import tweaking for Haddock
* [project @ 2003-04-11 10:11:23 by ross]Gravatar ross2003-04-11
| | | | rename GHC.Posix as System.Posix.Internals
* [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-11 14:25:25 by stolz]Gravatar stolz2002-10-11
| | | | 'usleep' nightmare: Sometimes return type is void, sometimes int.
* [project @ 2002-09-12 16:38:21 by simonmar]Gravatar simonmar2002-09-12
| | | | More POSIX bits... we're getting there.
* [project @ 2002-09-06 14:34:15 by simonmar]Gravatar simonmar2002-09-06
Partial rewrite of the POSIX library. The main purpose of this sweep is to remove the last dependencies of the compiler on hslibs. When I've committed the associated compiler changes, only the 'base' package will be required to bootstrap the compiler. Additionally to build GHCi, the 'readline' and 'unix' packages will be required. The new POSIX library lives mostly in libraries/unix, with a few bits required for compiler bootstrapping in libraries/base. The 'base' package is mostly free of hsc2hs code to make bootstrapping from HC files easier, but the 'unix' package will use hsc2hs liberally. The old POSIX library continues to provide more-or-less the same interface as before, although some of the types are more correct now (previously lots of POSIX types were just mapped to Int). The new interface is largely the same as the old, except that some new functionality from the latest POSIX spec has been added (eg. symbolic links). So far, the new POSIX library has signal support, directory/file operations and lots of stuff from unistd.h. The module names are: System.Posix The main dude, exports everything System.Posix.Types All the POSIX types, using the same naming scheme as Foreign.C.Types, Eg. CUid, COff, etc. Many of these types were previously exported by GHC.Posix. Additionally exports the "nicer" names used by the old POSIX library for compatibility (eg. ProcessID == CPid, FileMode == CMode, etc.) All reasonable instances are derived for these types. System.Posix.Signals Signal support, contains most of which was in PosixProcPrim before. The RTS interface to the signal handling support has been rationalised slightly. System.Posix.Directory Directory support, most were in PosixFiles before. System.Posix.Files File operations, most were in PosixFiles before. System.Posix.Unistd (for want of a better name) Miscellaneous bits that mostly come from the unistd.h header file. PosixProcEnv before. The rest of the library should pan out like so: System.Posix.IO System.Posix.Error (maybe) System.Posix.Process System.Posix.Terminal (I've no doubt broken Win32 support, but I'm checking the build at the moment).