aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* 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.
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Retry process execution in case of ENOTDIRGravatar Iku Iwasa2014-12-06
| | | | | | | If `PATH` environment variable contains non directory component, `__hsunix_execvpe()` failed by `ENOTDIR`. This fixes #11 for all platforms.
* 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)`)
* Do not blindly add libdl to extra librariesGravatar Igor Pashev2014-12-06
| | | | | | | | On some systems dlopen() is available without libdl (illumos, solaris). Sometimes libdl.so cannot be loaded by runtime linker, see https://ghc.haskell.org/trac/ghc/ticket/8713 Closes #8
* Tighten Safe Haskell bounds, fixes new warning in GHC 7.10.Gravatar David Terei2014-12-06
| | | | Closes #27
* Kill spurious line from changelogGravatar Herbert Valerio Riedel2014-12-06
| | | [skip ci]
* fixup Travis CI jobGravatar Herbert Valerio Riedel2014-12-06
|
* Update Travis CI JobGravatar Herbert Valerio Riedel2014-12-06
|
* Merge pull request #18 from neverpanic/masterGravatar Herbert Valerio Riedel2014-11-07
|\ | | | | `System.Posix.Files.fileAccess` fails inside OS X sandbox
* | Add hackage-shield to README.mdGravatar Herbert Valerio Riedel2014-10-23
| |
* | Merge pull request #5 from hvr/pr-LFSGravatar Herbert Valerio Riedel2014-10-18
|\ \ | | | | | | Fix potential LFS related issues
| * | fix _FILE_OFFSET_BITS redefined warning on Solaris/x86Gravatar Karel Gardas2014-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Use CAPI FFI imports for `truncate`Gravatar Herbert Valerio Riedel2014-10-18
| | | | | | | | | | | | | | | 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`.
| * | Use correct POSIX offset-type for tell/seekdirGravatar Herbert Valerio Riedel2014-10-18
|/ / | | | | | | | | | | | | | | | | | | | | | | 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).
* | Replace obsolete `defaultUserHooks` by `autoconfUserHooks`Gravatar Herbert Valerio Riedel2014-09-27
| |
* | Merge pull request #19 from thomie/masterGravatar Herbert Valerio Riedel2014-09-26
|\ \ | | | | | | Disable getlogin tests for the moment (#1487)
| * | Disable getlogin tests for the moment (#1487)Gravatar Thomas Miedema2014-09-26
|/ /
| * Accept EPERM as valid error code for access(2)Gravatar Clemens Lang2014-09-21
| | | | | | | | | | | | | | 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).
| * Unify accepted errno flags for accessGravatar Clemens Lang2014-09-21
| | | | | | | | | | | | | | 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.
| * Unify whitespace in System/Posix/Files/ByteStringGravatar Clemens Lang2014-09-21
|/
* Update config.{guess,sub} to GNU automake 1.14.1Gravatar Herbert Valerio Riedel2014-09-16
|
* Relax upper bound to allow `time-1.5`Gravatar Herbert Valerio Riedel2014-09-10
|
* Use import list for `Data.Time.Clock.POSIX`Gravatar Herbert Valerio Riedel2014-09-10
| | | | | 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.
* Merge branch 'sol-fix-getgrgid_r-v3' of https://github.com/kgardas/unix into ↵Gravatar Herbert Valerio Riedel2014-09-10
|\ | | | | | | | | | | | | kgardas-sol-fix-getgrgid_r-v3 Conflicts: changelog.md
| * fix getGroupEntryForID/Name on SolarisGravatar Karel Gardas2014-09-10
| | | | | | | | | | | | | | | | | | 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.
* | Bump `base` constraint for AMPGravatar Herbert Valerio Riedel2014-09-09
| |
* | Merge pull request #10 from ezyang/ezyang-devGravatar Herbert Valerio Riedel2014-08-23
|\ \ | |/ |/| Ignore test output created by GHC test suite.
| * Ignore test output created by GHC test suite.Gravatar Edward Z. Yang2014-08-22
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* | Merge pull request #1 from thomie/masterGravatar Gregory Collins2014-07-15
|\ \ | | | | | | Enable test for getLoginName (Fixes #1487)
* \ \ Merge pull request #2 from thomie/T8902Gravatar Bryan O'Sullivan2014-07-11
|\ \ \ | |_|/ |/| | Add haddock comments on RTLD_NEXT and RTLD_DEFAULT
* | | Ignore interp.stderr/stdout.Gravatar Edward Z. Yang2014-07-07
| | | | | | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
| * | Deprecate function `haveRtldLocal`Gravatar Thomas Miedema2014-07-04
| | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | Remove unnecessary checks for RTLD_NOW and RTLD_GLOBALGravatar Thomas Miedema2014-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Add haddock comments on RTLD_NEXT and RTLD_DEFAULTGravatar Thomas Miedema2014-07-04
|/ / | | | | | | Related ticket: #8902.
| * Enable test for getLoginNameGravatar Thomas Miedema2014-07-04
|/ | | | | | | Fixes #1487. Make use of no_stdin test option, introduced explictly for this purpose in fa52a8c9d8eae5e3fc4c0cf0e5672875e161e05c
* Merge https://github.com/haskell/unixGravatar Herbert Valerio Riedel2014-06-27
|\
* | add testsuite-related gitignore entriesGravatar Herbert Valerio Riedel2014-06-26
| |
| * Update URLs to point to GitHubGravatar Herbert Valerio Riedel2014-04-28
|/
* Typo in commentGravatar Gabor Greif2014-03-23
|
* Merge branch 'ghc-7.8'Gravatar Herbert Valerio Riedel2014-03-22
|\ | | | | | | | | | | | | Re-unite branches which diverged for now good reason Conflicts: changelog.md
| * Update changelog and prepare for 2.7.0.1 releaseGravatar Herbert Valerio Riedel2014-03-22
| | | | | | | | Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
| * fix getFileStatus: interrupted (Interrupted system call) build failure on ↵Gravatar Karel Gardas2014-02-28
| | | | | | | | | | | | | | | | | | | | | | 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)
* | fix getFileStatus: interrupted (Interrupted system call) build failure on ↵Gravatar Karel Gardas2014-02-28
| | | | | | | | | | | | | | | | | | 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>
| * M-x delete-trailing-whitespace & M-x untabifyGravatar Herbert Valerio Riedel2014-02-28
| | | | | | | | | | | | Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> (cherry picked from commit 86d798975357c55fd0e5303c83f09844411c3837)
| * Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)Gravatar Alain O'Dea2014-02-28
| | | | | | | | | | | | | | | | | | | | | | | | 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)
| * Convert `changelog` to markdown formatGravatar Herbert Valerio Riedel2014-02-28
| | | | | | | | | | | | Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> (cherry picked from commit 4a08984afe5390d91f10f9b1caf7365e6a93595b)
* | M-x delete-trailing-whitespace & M-x untabifyGravatar Herbert Valerio Riedel2014-02-06
| | | | | | | | Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* | Handle EROFS/ETXTBSY as permission denied in `fileAccess` (re #8741)Gravatar Alain O'Dea2014-02-06
| | | | | | | | | | | | | | | | | | | | 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>
* | Convert `changelog` to markdown formatGravatar Herbert Valerio Riedel2014-02-02
|/ | | | Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>