This project is mirrored from https://github.com/haskell/unix.
Pull mirroring updated .
- 09 Dec, 2014 1 commit
-
-
David Terei authored
-
- 07 Dec, 2014 2 commits
-
-
Herbert Valerio Riedel authored
-
Herbert Valerio Riedel authored
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>
-
- 06 Dec, 2014 10 commits
-
-
Herbert Valerio Riedel authored
This is needed in case `<unistd.h>` was included before "execvpe.h" w/o `_GNU_SOURCE` set (on Glibc systems)
-
Herbert Valerio Riedel authored
Turns out `process` reuses `unix`'s execvpe() implementation, and the refactoring in f24ba78f broke process.
-
Herbert Valerio Riedel authored
-
If `PATH` environment variable contains non directory component, `__hsunix_execvpe()` failed by `ENOTDIR`. This fixes #11 for all platforms.
-
Herbert Valerio Riedel authored
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)`)
-
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
-
Closes #27
-
Herbert Valerio Riedel authored
[skip ci]
-
Herbert Valerio Riedel authored
-
Herbert Valerio Riedel authored
-
- 07 Nov, 2014 1 commit
-
-
Herbert Valerio Riedel authored
`System.Posix.Files.fileAccess` fails inside OS X sandbox
-
- 23 Oct, 2014 1 commit
-
-
Herbert Valerio Riedel authored
-
- 18 Oct, 2014 4 commits
-
-
Herbert Valerio Riedel authored
Fix potential LFS related issues
-
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.
-
Herbert Valerio Riedel authored
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`.
-
Herbert Valerio Riedel authored
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).
-
- 27 Sep, 2014 1 commit
-
-
Herbert Valerio Riedel authored
-
- 26 Sep, 2014 2 commits
-
-
Herbert Valerio Riedel authored
Disable getlogin tests for the moment (#1487)
-
Thomas Miedema authored
-
- 21 Sep, 2014 3 commits
-
-
Clemens Lang authored
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).
-
Clemens Lang authored
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.
-
Clemens Lang authored
-
- 16 Sep, 2014 1 commit
-
-
Herbert Valerio Riedel authored
-
- 10 Sep, 2014 4 commits
-
-
Herbert Valerio Riedel authored
-
Herbert Valerio Riedel authored
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.
-
https://github.com/kgardas/unixHerbert Valerio Riedel authored
Merge branch 'sol-fix-getgrgid_r-v3' of https://github.com/kgardas/unix into kgardas-sol-fix-getgrgid_r-v3 Conflicts: changelog.md
-
kgardas authored
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.
-
- 09 Sep, 2014 1 commit
-
-
Herbert Valerio Riedel authored
-
- 22 Aug, 2014 2 commits
-
-
Herbert Valerio Riedel authored
Ignore test output created by GHC test suite.
-
Edward Z. Yang authored
Signed-off-by:
Edward Z. Yang <ezyang@cs.stanford.edu>
-
- 15 Jul, 2014 1 commit
-
-
GregoryCollins authored
Enable test for getLoginName (Fixes #1487)
-
- 11 Jul, 2014 1 commit
-
-
bos authored
Add haddock comments on RTLD_NEXT and RTLD_DEFAULT
-
- 07 Jul, 2014 1 commit
-
-
Edward Z. Yang authored
Signed-off-by:
Edward Z. Yang <ezyang@cs.stanford.edu>
-
- 04 Jul, 2014 4 commits
-
-
Thomas Miedema authored
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).
-
Thomas Miedema authored
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.
-
Thomas Miedema authored
Related ticket: #8902.
-
Thomas Miedema authored
Fixes #1487. Make use of no_stdin test option, introduced explictly for this purpose in fa52a8c9d8eae5e3fc4c0cf0e5672875e161e05c
-