| Commit message (Collapse) | Author | Age |
|
|
|
| |
Also adds System.Posix.Process.Internals in order to make the deps work out.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It used to return [] on all but the first call.
Patch from an unidentified guest.
|
|
|
|
|
|
|
|
| |
_SC_GETPW_R_SIZE_MAX.
sysconf(3) returns -1 on failure, but this was not handled when checking _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX in System.Posix.User. This made getUserEntryForID, getUserEntryForName, getGroupEntryForID and getGroupEntryForName fail on OS X 10.4.9 on i386. Just checking that unistd.h defines _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX as was done before does not guarantee that sysconf(3) will succeed.
sysconf(3) failure is now handled by using the same default values as were already used when sysconf(3) is not available, or the parameter names are not defined.
|
|
|
|
|
| |
Using CInt makes it much easier to verify that it is right, and we won't
get caught out by possible newtype switches between CInt/Int.
|
| |
|
|
|
|
| |
(of the dubiously exported c_access and c_fcntl_write)
|
| |
|
| |
|
|
|
|
| |
Fixes #1156
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
System.Posix.User was missing pw_gecos and pw_passwd in UserEntry.
I have added them, so now the full struct passwd is represented.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
some Haddock docs, from Isaac Jones.
|
|
|
|
| |
Some docs for System.Posix, from Bj?rn Bringert
|
|
|
|
| |
Fix queryFdOption
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PATH_MAX fixes from Thomas Schwinge.
|
|
|
|
|
| |
Undo previous commit: it breaks when RLIM_INFINITY is defined to an
expression that CPP doesn't understand.
|
|
|
|
|
| |
Warning police (for platforms where all resource limits can be
represented, i.e. RLIM_INFINITY == RLIM_SAVED_MAX == RLIM_SAVED_CUR)
|
|
|
|
|
|
| |
nDoc fixes from Sven Panne. Generally fixing of Haddock links, adding
some signatures, and in some cases exporting type constructors that
are mentioned in the types of exported identifiers.
|
|
|
|
| |
Doc for handleToFd and fdToHandle
|
|
|
|
| |
c_ftruncate is now in System.Posix.Internals
|
|
|
|
|
| |
Hugs only: replace the CBITS pragma (files relative to cbits) with
CFILES (files relative to the root of the package).
|
|
|
|
|
|
|
| |
Fix FFI-funniness, cf.
http://www.haskell.org/pipermail/glasgow-haskell-users/2002-February/003020.html
Noticed by: George Russell (again)
|
|
|
|
| |
More getpw*_r result checks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix getpwnam_r-handling: getpwnam_r returns (always?) 0, you have
to check result* (pppw[0])!
Truss-log from querying first "root", then "" on SunOS 5.9:
<- libc:__posix_getpwnam_r() = 0
"root"
-> libc:__posix_getpwnam_r(0xff1bf8a8, 0xff1bf460, 0xff1bf490, 0x400)
<- libc:__posix_getpwnam_r() = 0
Yes, that's 0 in both cases. (I wasn't even able to elicit an ERANGE btw.)
Reported by: Peter Simons
|
|
|
|
|
| |
Fix bug in forkProcess: we weren't wrapping the forked IO action in
the default exception handler, so exitFailure wasn't working properly.
|
|
|
|
|
| |
- sleep, usleep: make thread-safe
- add Haddock comments
|
|
|
|
|
| |
Unbreak Hugs by moving pPrPr_disableITimers and execvpe to System.Posix.Internals
(base package) and use it from System.Posix.Process (unix package).
|
|
|
|
| |
Unbreak Hugs, 2nd try...
|
|
|
|
| |
Unbreak Hugs: execvpe.c has gone
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement System.Posix.User.getUserEntryFor{ID,Name} on platforms
without reentrant versions of getpw{uid,nam}. This includes all the BSDs.
While I'm here, close getGroupEntryFor* "Result too large" bug on
OpenBSD, mentioned last year:
http://www.haskell.org/pipermail/glasgow-haskell-bugs/2003-September/003601.html
grBufSize was too small, apparently.
Thanks to Ian Lynagh for hint to do the locking.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
Add filenames to all errors where it makes sense. I've added
System.Posix.Error with a new family of error-throwing functions,
throwErrnoPath*. This seemed to make the most sense: they don't
belong in Foreign.C.Error (C by itself has no notion of paths).
Fixes: [ 954378 ] getFileStatus does not include the file name in IO-Error
|
|
|
|
|
|
|
| |
Inverted logic would call dlerror() after a successful dlclose() and
cause a segfault.
Noticed by: abe.egnor At gmail.com
|