| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
|
| |
This follows the scheme suggested in #24
This fixes #55
|
|
|
|
|
|
|
|
| |
This attempts a simpler and hopefully more robust test for `fdatasync(2)`
See 94d8824bae10c9d91f56c1aee9c45a90136a1770 / #42 for the previous attempt.
This hopefully addresses #52 in a better way than #53
|
|
|
|
|
| |
This non-standard flag was used previously by GHC's build-system to set the `CC` variable.
See https://phabricator.haskell.org/D1608 for more details
|
|
|
|
|
|
|
|
|
| |
This is a follow-up tweak to
5740003e06f0c585460501514f3352f5e105c98c
It's better to move AC_USE_SYSTEM_EXTENSIONS
after `AC_PROG_CC` as this avoids triggering
edundant tests
|
|
|
|
|
| |
`AC_USE_SYSTEM_EXTENSIONS` takes care of defining feature_test_macros(7)
thereby allowing us to remove a few manual `#define`s
|
|
|
|
|
| |
Some versions of OS X have fdatasync in the headers but don't include implementations in the standard library. This leads to a compile failure in configure.ac when using AC_CHECK_FUNCS.
This change explicitly attempts to compile a file containing a call to fdatasync and properly sets the AC_CHECK_FUNCS flags depending on the result of compilation.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds two new functions in `System.Posix.Unistd`
- `fileAdvise` (aka `posix_fadvise(2)`), and
- `fileAllocate` (aka `posix_fallocate(2)`)
This is based in part on #7 and has been heavily refactored from its
original patch submission by Ricardo Catalinas Jiménez.
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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`.
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Related ticket: #8902.
|
|
|
|
|
|
|
|
|
| |
Use the new AC_SERACH_LIBS to check if rt is needed for shm_open
and shm_unlink. This sets LIBS and so the shm_* functions
can be found if librt is indeed required. Passing -lrt through
CFLAGS is not portable.
Signed-off-by: Austin Seipp <austin@well-typed.com>
|
|
|
|
|
| |
I don't think that it matters, but putting it after all the places
that alter EXTRA_LIBS is a little nicer.
|
|
|
|
| |
Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
|
|
|
|
| |
Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
|
| |
|
|
|
|
| |
Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com>
|
| |
|
| |
|
|
|
|
| |
libutil.h is deprecated in recent releases of libbsd
|
| |
|
| |
|
| |
|
|
|
|
| |
leaving out Windows-specific hacks
|
| |
|
| |
|
|
|
|
|
|
| |
This should make my openbsd build slave happy when SplitObjs=NO.
May be useful for other BSDs and even Linux, regardless wether you
need -pthread or -lpthread. Time will tell...
|
|
|
|
| |
Fixes, and patch from donn in, trac #2352.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As explained in this thread:
http://www.haskell.org/pipermail/haskell-cafe/2008-February/039549.html
getSymbolicLinkStatus (and possibly other functions) return completely
bogus results. This is because hsc2hs returns the offsets for stat64,
but the library is built such that it calls the 32 bit lstat call.
I copied the AC_SYS_LARGEFILE from ghc's configure.ac. So, I believe
the library should now properly autodetect whether your system has
large file support and do the right thing more often. I suspect that
this would still be buggy if ghc was built without large file support,
but the library was built with it enabled. However, as long as
AC_SYS_LARGEFILE returns the same results for 'ghc' and 'unix', things
should be ok ?
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix suggested by Ian Lynagh
|
|
|
|
| |
Fixes #1156
|
| |
|
| |
|
|
|
|
|
| |
Checking for dlfcn.h instead of creat() should make the Cabal build fail
more gracefully under MinGW.
|
|
|
|
| |
make the unix package independent.
|
|
|
|
| |
move RTLD_* tests down to unix package
|
|
|
|
| |
add Cabal package descriptions
|
|
|
|
| |
Push down more feature-tests
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Push some unixisms from toplvl into package:
usleep, SunOS-handling, getpw*
|
|
|
|
|
|
|
|
| |
Make autoupdate 2.52 happy, mainly by using the new formats of AC_INIT and
AC_OUTPUT. This has the nice side effect that all "packages" have now a name, a
version, a bug-report address, and a tar name, yielding better output with
"configure --help=recursive". Nuked an unused AC_STRUCT_ST_BLKSIZE test on the
way.
|