aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
Commit message (Collapse)AuthorAge
* Use CApiFFI for `ptsname(3)` et al for GHC>=8.0Gravatar Herbert Valerio Riedel2016-01-31
| | | | This improves on 2ddf4b2b7bf41f878bc7d8a1afa49126710f524c
* Use more direct CApiFFI for pPrPr_disableITimersGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hsunix_getpw{nam,uid_r}` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hscore_mk{dtemp,stemp,stemps}` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hscore_{set,get}rlimit` wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Avoid redundant prototypes for ptsname(3) et alGravatar Herbert Valerio Riedel2016-01-31
| | | | | This is now possible since we now use `AC_USE_SYSTEM_EXTENSIONS`, which indirectly enables _XOPEN_SOURCE
* Replace `__hsunix_nanosleep` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-31
|
* Remove obsolete windows-related #ifdefsGravatar Herbert Valerio Riedel2016-01-31
| | | | | | We haven't properly supported Windows for some time now, and we wouldn't have any way to test anyway, since GHC doesn't support Cygwin anymore either.
* Replace `__hsunix_getpwent` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_mknod` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_lstat` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Move WCOREDUMP(s) compat `#define` to `HsUnix.h`Gravatar Herbert Valerio Riedel2016-01-30
| | | | Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab
* Replace `<sys/wait.h>` macro wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_times` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_time` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_opendir` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Simplify code via AC_USE_SYSTEM_EXTENSIONSGravatar Herbert Valerio Riedel2015-12-03
| | | | | `AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7) thereby allowing us to remove a few manual `#define`s
* Fix SIGINFO and SIGWINCH.Gravatar Erik de Castro Lopo2014-12-19
| | | | | | | | | | | | It seems these two signals have not been working since at least 2009. Detection of these signals seems to have never been added to the configure.ac script and the code guarded by #ifdef then bit-rotted (the idiom used to handle these signals seems to have been abandoned for something simpler/better in 2009). This fix simply handles these signals the same way the other signals are handled in System/Posix/Signals.hsc. Closes #30 and #31
* Tweak execvpe.h hack (see 256b19184bcb) some moreGravatar Herbert Valerio Riedel2014-12-07
|
* Repeat execvpe(3) prototype (fup to 7bad9d7d52d)Gravatar Herbert Valerio Riedel2014-12-06
| | | | | This is needed in case `<unistd.h>` was included before "execvpe.h" w/o `_GNU_SOURCE` set (on Glibc systems)
* Have "execvpe.h" provide execvpe() againGravatar Herbert Valerio Riedel2014-12-06
| | | | | | Turns out `process` reuses `unix`'s execvpe() implementation, and the refactoring in f24ba78f68b2cbc4f4afadc8dd60fc2935357255 broke process.
* Refactor local `execvpe(3)` implementationGravatar Herbert Valerio Riedel2014-12-06
| | | | | | | | | | | | | | | | | The previous code was prone to conflicts with when the platform happens to expose a `execvpe(3)` implementation in its libc. This commit renames the internal implementation to `__hsunix_execvpe` as well as adding an autoconf-detection for the presence of `execvpe(3)`, in which case `__hsunix_execvpe()` forwards the call to `execvpe(3)`. Moreover, the code has been cleaned up to remove likely bitrotted CPP conditionals. This should fix #22 (This also partially addresses #11 on platforms which have a libc-provided `execvpe(3)`)
* execvpe exists on QNXGravatar Stephen Paul Weber2012-12-15
|
* Move nocldstop from HsBase.h to HsUnix.hGravatar Ian Lynagh2012-02-26
|
* System.Posix.Temp complianceGravatar Deian Stefan2012-01-09
|
* mkstempsGravatar Deian Stefan2012-01-09
|
* forgot to add to previous commitGravatar Deian Stefan2012-01-05
|
* prefer bsd/libutil.h (if available) to libutil.hGravatar Ross Paterson2011-06-29
| | | | libutil.h is deprecated in recent releases of libbsd
* 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>
* Don't put inline'd functions in HsUnix.h; fixes trac #2969Gravatar Ian Lynagh2009-02-11
| | | | | | If they are included into a C file which also has certain symbols defined, then the behaviour of the HsUnix.h functions can change (e.g. lstat can become the 32bit, rather than 64bit, version).
* move some stuff here from System.Directory, now the dependencies are reversedGravatar Simon Marlow2008-08-21
|
* Allow C's unsetenv to return either void or intGravatar Ian Lynagh2008-07-03
| | | | Fixes, and patch from donn in, trac #2352.
* move __hscore_{mkstemp,getrlimit,setrlimit} here from baseGravatar Ross Paterson2008-06-15
|
* Add basic pseudoterminal support.Gravatar Bryan O'Sullivan2007-09-25
|
* Remove redundant include/MakefileGravatar Ian Lynagh2007-08-28
|
* Move System.Posix.Signals from baseGravatar Ian Lynagh2007-07-29
| | | | Also adds System.Posix.Process.Internals in order to make the deps work out.
* add C wrappers for lstat() and mknod(). Fixes #1086.Gravatar Simon Marlow2007-02-26
|
* [project @ 2005-09-20 22:54:33 by ross]Gravatar ross2005-09-20
| | | | make the unix package independent.
* [project @ 2005-09-19 23:24:31 by ross]Gravatar ross2005-09-19
| | | | For compilers other than MSVC and GCC, assume inline has the C99 semantics.
* [project @ 2005-08-04 02:09:36 by wolfgang]Gravatar wolfgang2005-08-04
| | | | | | | Check for RTLD_DEFAULT in dlfcn.h and use it if it is available. (On Mac OS X its value is -2, and using NULL instead does not work.) MERGE TO STABLE
* [project @ 2005-03-08 04:45:38 by wolfgang]Gravatar wolfgang2005-03-08
| | | | | | | | | | | | Mac OS X: Kill HaskellSupport.framework. Instead, look for GMP.framework (a framework-version of libgmp), else look for a normal -lgmp as usual. The other part of HaskellSupport.framework, dlcompat, is no longer needed (as of Mac OS X 10.3, it's included in libSystem). It's enough to just use the normal configure tests for -ldl. MERGE TO STABLE
* [project @ 2005-03-02 16:39:57 by ross]Gravatar ross2005-03-02
| | | | *Config.h files are in include/ (MERGE to STABLE)
* [project @ 2005-01-28 13:36:36 by simonmar]Gravatar simonmar2005-01-28
| | | | | | | Catch up with updates to platform #defines. Generally: use _HOST_ rather than _TARGET_ (except in Cabal where we have to retain compatibility with previous GHC versions).
* [project @ 2004-11-12 14:56:13 by stolz]Gravatar stolz2004-11-12
| | | | | | Fix previous commit: Don't handle Solaris2-flag _POSIX_PTHREAD_SEMANTICS in configure at all but simply #ifdef solaris2_TARGET_OS #define ... it in the header-file.
* [project @ 2004-10-08 12:04:49 by ross]Gravatar ross2004-10-08
| | | | revert previous change, so now these includes don't define PACKAGE_*
* [project @ 2004-10-08 08:42:53 by dons]Gravatar dons2004-10-08
| | | | Tweak the PACKAGE_* #undefs in a couple of other places, too.
* [project @ 2004-10-06 10:13:08 by ross]Gravatar ross2004-10-06
| | | | make the evil PACKAGE_* hacks consistent
* [project @ 2004-09-29 15:50:54 by simonmar]Gravatar simonmar2004-09-29
| | | | | | | | | | | | | | Process reorganisation: the System.Process library moves into base, and System.Cmd is re-implemented in terms of it. Thanks to Krasimir Angelov, we have a version of System.Process that doesn't rely on the unix or Win32 libraries. Normally using unix/Win32 would be the right thing, but since we want to implement System.Cmd on top of this, and GHC uses System.Cmd, we can't introduce a bunch of .hsc dependencies into GHC's bootstrap libraries. So, the new version is larger, but has fewer dependencies. I imagine it shouldn't be too hard to port to other compilers.
* [project @ 2004-09-22 09:14:23 by panne]Gravatar panne2004-09-22
| | | | | | | | | | | | | As a temporary measure, use an ultra-evil sledgehammer method to silence the PACKAGE_FOO clashes. The correct way of doing this would be splitting up HsPACKAGE.h and ghcconfig.h into two parts each: One part would be generated by autoheader and would contain the defines which are needed during package build time only. The other part would contain all kinds of stuff which is needed for using the given package (no PACKAGE_FOO defines here). For an example of this, see the OpenAL package. As an additional benefit, this would keep the namespace much cleaner, because 2nd kind of headers is typically smaller. No time for the real thing currently, hope the current workaround works...
* [project @ 2004-09-15 15:55:45 by stolz]Gravatar stolz2004-09-15
| | | | | | | | | Add System.Posix.Signals.Exts which re-exports S.P.Signals and adds the two signals SIGINFO on (*BSD) and SIGWINCH (most Unices) which are not in POSIX. You should use cpp to test if those are defined before using them. This is encouraged by not providing dummy-definitions on platforms which do not offer that particular flavour.