packages/unix.git
10 years agocatch up with exception changes
Simon Marlow [Sat, 27 Sep 2008 13:54:28 +0000 (13:54 +0000)] 
catch up with exception changes

10 years agoBump version number to 2.3.1.0
Ian Lynagh [Sat, 20 Sep 2008 16:02:48 +0000 (16:02 +0000)] 
Bump version number to 2.3.1.0

10 years agofollow library changes 6_10_branch_has_been_forked
Ian Lynagh [Wed, 3 Sep 2008 22:36:16 +0000 (22:36 +0000)] 
follow library changes

10 years agoadd category field
Ross Paterson [Sun, 24 Aug 2008 00:30:14 +0000 (00:30 +0000)] 
add category field

10 years agoWe now depend on concurrent (split off from base)
Ian Lynagh [Sun, 24 Aug 2008 13:51:58 +0000 (13:51 +0000)] 
We now depend on concurrent (split off from base)

10 years agoFix the build when CONST_SIGPOLL == -1
Ian Lynagh [Sat, 23 Aug 2008 16:03:46 +0000 (16:03 +0000)] 
Fix the build when CONST_SIGPOLL == -1
We were defining, but not using, sigPOLL

10 years agoFix warnings in the unix package
Ian Lynagh [Thu, 21 Aug 2008 12:01:38 +0000 (12:01 +0000)] 
Fix warnings in the unix package

10 years agomove some stuff here from System.Directory, now the dependencies are reversed
Simon Marlow [Thu, 21 Aug 2008 14:47:54 +0000 (14:47 +0000)] 
move some stuff here from System.Directory, now the dependencies are reversed

11 years agoFollow extensible exceptions changes
Ian Lynagh [Mon, 23 Jun 2008 19:31:52 +0000 (19:31 +0000)] 
Follow extensible exceptions changes

11 years agoAllow C's unsetenv to return either void or int
Ian Lynagh [Thu, 3 Jul 2008 19:06:03 +0000 (19:06 +0000)] 
Allow C's unsetenv to return either void or int
Fixes, and patch from donn in, trac #2352.

11 years agoAvoid using deprecated flags
Ian Lynagh [Mon, 16 Jun 2008 14:54:25 +0000 (14:54 +0000)] 
Avoid using deprecated flags

11 years agomove __hscore_{mkstemp,getrlimit,setrlimit} here from base
Ross Paterson [Sun, 15 Jun 2008 22:42:48 +0000 (22:42 +0000)] 
move __hscore_{mkstemp,getrlimit,setrlimit} here from base

11 years agoAdd a test for #2038 (resourceLimit) 2008-05-28
Ian Lynagh [Tue, 20 May 2008 16:30:12 +0000 (16:30 +0000)] 
Add a test for #2038 (resourceLimit)

11 years agoUse the C wrappers for [gs]etrlimit
Ian Lynagh [Tue, 20 May 2008 16:20:48 +0000 (16:20 +0000)] 
Use the C wrappers for [gs]etrlimit
This is for #2038: macros are used in the Linux .h includes to redirect
to a 64-bit version when large file support is enabled.

11 years agoUse the __hscore_mkstemp wrapper from the base package
Ian Lynagh [Tue, 20 May 2008 16:20:39 +0000 (16:20 +0000)] 
Use the __hscore_mkstemp wrapper from the base package
This is for #2038: macros are used in the Linux .h includes to redirect
to a 64-bit version when large file support is enabled.

11 years agosmall doc tweak
Simon Marlow [Thu, 8 May 2008 11:43:48 +0000 (11:43 +0000)] 
small doc tweak

11 years agoadd AC_SYS_LARGEFILE check to configure.ac
jeremy.shaw@linspireinc.com [Wed, 13 Feb 2008 22:36:19 +0000 (22:36 +0000)] 
add AC_SYS_LARGEFILE check to configure.ac
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 ?

11 years agoThrow a proper exception if getUserEntryForName fails to find an entry
Ian Lynagh [Tue, 15 Jan 2008 02:05:47 +0000 (02:05 +0000)] 
Throw a proper exception if getUserEntryForName fails to find an entry
Fixes trac #2033.

11 years agoAdd a test getUserEntryForName for trac #1976
Ian Lynagh [Tue, 15 Jan 2008 02:05:40 +0000 (02:05 +0000)] 
Add a test getUserEntryForName for trac #1976

11 years agoprotect against concurrent access to the signal handlers (#1922)
Simon Marlow [Tue, 4 Dec 2007 11:08:39 +0000 (11:08 +0000)] 
protect against concurrent access to the signal handlers (#1922)

11 years agoFix some haddock links
Ian Lynagh [Mon, 26 Nov 2007 18:45:21 +0000 (18:45 +0000)] 
Fix some haddock links

11 years agoThrow a proper exception if getGroupEntryForName fails to find an entry
Ian Lynagh [Sat, 10 Nov 2007 23:58:05 +0000 (23:58 +0000)] 
Throw a proper exception if getGroupEntryForName fails to find an entry
We used to get
 *** Exception: getGroupEntryForName: failed (Success)
Fixes trac #1655

11 years agofix framework failures
Simon Marlow [Mon, 29 Oct 2007 11:46:06 +0000 (11:46 +0000)] 
fix framework failures

11 years agoRemove incorrect comment
Ian Lynagh [Sun, 14 Oct 2007 10:17:56 +0000 (10:17 +0000)] 
Remove incorrect comment

11 years agoSpecify build-type: Configure
Duncan Coutts [Thu, 18 Oct 2007 12:51:27 +0000 (12:51 +0000)] 
Specify build-type: Configure

11 years agoBump version number
Ian Lynagh [Sun, 14 Oct 2007 10:18:06 +0000 (10:18 +0000)] 
Bump version number

11 years agoSupport for 57600 and 115200 baudrates
pweaver@galois.com [Tue, 16 Oct 2007 19:16:31 +0000 (19:16 +0000)] 
Support for 57600 and 115200 baudrates

11 years agoAlso guard the foreign declaration of __hsunix(grant|unlock)pt by HAVE_PTSNAME
Clemens Fruhwirth [Tue, 16 Oct 2007 14:38:46 +0000 (14:38 +0000)] 
Also guard the foreign declaration of __hsunix(grant|unlock)pt by HAVE_PTSNAME

11 years agoAdd basic pseudoterminal support.
Bryan O'Sullivan [Tue, 25 Sep 2007 11:33:30 +0000 (11:33 +0000)] 
Add basic pseudoterminal support.

11 years agocheck for shm_open/shm_unlink (for archs like OpenBSD without them)
Don Stewart [Sun, 16 Sep 2007 02:52:18 +0000 (02:52 +0000)] 
check for shm_open/shm_unlink (for archs like OpenBSD without them)

11 years agoAdd more entries to boring file
Ian Lynagh [Thu, 13 Sep 2007 21:07:21 +0000 (21:07 +0000)] 
Add more entries to boring file

11 years agoAdd a boring file
Ian Lynagh [Thu, 13 Sep 2007 20:46:58 +0000 (20:46 +0000)] 
Add a boring file

11 years agoin pPrPr_disableITimers (who made up that name?) call the RTS to disable the timer
Simon Marlow [Wed, 12 Sep 2007 14:56:47 +0000 (14:56 +0000)] 
in pPrPr_disableITimers (who made up that name?) call the RTS to disable the timer
Since we switched to using timer_create() in the RTS, this function
has been failing to disables the timer interrupts.  This turns out to
be the cause of the random framework failures in the test suite.
Invoking the RTS to turn off the timer signal is the right thing.

11 years agoSuppress some warnings ghc-6_8_branched_2007-09-03
Ian Lynagh [Sun, 2 Sep 2007 19:40:33 +0000 (19:40 +0000)] 
Suppress some warnings

11 years agoRemove redundant include/Makefile
Ian Lynagh [Tue, 28 Aug 2007 20:57:15 +0000 (20:57 +0000)] 
Remove redundant include/Makefile

11 years agoadd cross-referencing between posix and process modules
ijones@syntaxpolice.org [Sun, 19 Aug 2007 07:39:30 +0000 (07:39 +0000)] 
add cross-referencing between posix and process modules

11 years agoget the SIG constants for ourselves, rather than relying on HsBaseConfig.h
Ross Paterson [Sun, 19 Aug 2007 23:31:42 +0000 (23:31 +0000)] 
get the SIG constants for ourselves, rather than relying on HsBaseConfig.h

11 years agoFIX BUILD on OS X: Check for setitimer
Roman Leshchinskiy [Tue, 14 Aug 2007 02:00:33 +0000 (02:00 +0000)] 
FIX BUILD on OS X: Check for setitimer

Fix suggested by Ian Lynagh

11 years agoRemove bits left over from the old build system
Ian Lynagh [Sat, 11 Aug 2007 13:51:34 +0000 (13:51 +0000)] 
Remove bits left over from the old build system

11 years agoMove System.Posix.Signals from base
Ian Lynagh [Sun, 29 Jul 2007 21:56:17 +0000 (21:56 +0000)] 
Move System.Posix.Signals from base
Also adds System.Posix.Process.Internals in order to make the deps work out.

11 years agoMove throwErrnoPath* functions to base:Foreign.C.Error
Ian Lynagh [Sun, 22 Jul 2007 00:29:56 +0000 (00:29 +0000)] 
Move throwErrnoPath* functions to base:Foreign.C.Error

11 years agoGHC.Handle no longer exports openFd
Ian Lynagh [Sun, 22 Jul 2007 00:09:26 +0000 (00:09 +0000)] 
GHC.Handle no longer exports openFd

12 years agodisable the getLoginName test, see #1487
Simon Marlow [Tue, 3 Jul 2007 10:52:24 +0000 (10:52 +0000)] 
disable the getLoginName test, see #1487

12 years agoDon't do "< /dev/null" when running the user001 test
Ian Lynagh [Sat, 23 Jun 2007 20:54:08 +0000 (20:54 +0000)] 
Don't do "< /dev/null" when running the user001 test
It can cause the test to fail.

12 years ago--configure-option and --ghc-option are now provided by Cabal
Ross Paterson [Mon, 4 Jun 2007 11:56:17 +0000 (11:56 +0000)] 
--configure-option and --ghc-option are now provided by Cabal

12 years agoAdd support for named semaphores and shared memory objects
Daniel Franke [Thu, 3 May 2007 22:00:03 +0000 (22:00 +0000)] 
Add support for named semaphores and shared memory objects

12 years agoRemove Makefile and package.conf.in (used in the old build system)
Ian Lynagh [Thu, 24 May 2007 14:26:37 +0000 (14:26 +0000)] 
Remove Makefile and package.conf.in (used in the old build system)

12 years agoWe now depend on process
Ian Lynagh [Wed, 23 May 2007 18:15:44 +0000 (18:15 +0000)] 
We now depend on process

12 years agoWe now depend on directory
Ian Lynagh [Sat, 19 May 2007 16:05:13 +0000 (16:05 +0000)] 
We now depend on directory

12 years agoadd includes: field
Simon Marlow [Thu, 17 May 2007 09:50:25 +0000 (09:50 +0000)] 
add includes: field

12 years agoFix calling getAllUserEntries twice (trac #1279).
Ian Lynagh [Fri, 4 May 2007 10:49:56 +0000 (10:49 +0000)] 
Fix calling getAllUserEntries twice (trac #1279).
It used to return [] on all but the first call.
Patch from an unidentified guest.

12 years agoMake it more obvious that the forkprocess01 test is really working
Ian Lynagh [Wed, 18 Apr 2007 11:45:42 +0000 (11:45 +0000)] 
Make it more obvious that the forkprocess01 test is really working

12 years agoFollow Cabal changes in Setup.hs
Ian Lynagh [Wed, 18 Apr 2007 11:45:10 +0000 (11:45 +0000)] 
Follow Cabal changes in Setup.hs

12 years agoHandle sysconf(3) return value -1 when checking _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_...
bjorn@bringert.net [Mon, 16 Apr 2007 21:48:37 +0000 (21:48 +0000)] 
Handle sysconf(3) return value -1 when checking _SC_GETGR_R_SIZE_MAX and _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.

12 years agoAdded tests/user001.hs which tests all the get* functions in System.Posix.User.
bjorn@bringert.net [Mon, 16 Apr 2007 22:00:12 +0000 (22:00 +0000)] 
Added tests/user001.hs which tests all the get* functions in System.Posix.User.
I added this since I noticed that getUserEntryForID, getUserEntryForName,
getGroupEntryForID and getGroupEntryForName failed on OS X 10.4.9 on i386.

12 years agoFix -Wall warnings
Ian Lynagh [Wed, 11 Apr 2007 00:50:28 +0000 (00:50 +0000)] 
Fix -Wall warnings

12 years agoAdd missing case in removePrefix
Ian Lynagh [Wed, 11 Apr 2007 00:26:04 +0000 (00:26 +0000)] 
Add missing case in removePrefix

12 years agoparse (but don't pass on) options for ./configure
Ian Lynagh [Fri, 6 Apr 2007 15:37:56 +0000 (15:37 +0000)] 
parse (but don't pass on) options for ./configure

12 years agomake Setup suitable for building the libraries with GHC
Ian Lynagh [Sun, 12 Nov 2006 21:47:41 +0000 (21:47 +0000)] 
make Setup suitable for building the libraries with GHC

12 years agoDon't use Fd/FD in foreign decls
Ian Lynagh [Wed, 4 Apr 2007 15:59:30 +0000 (15:59 +0000)] 
Don't use Fd/FD in foreign decls
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.

12 years agoFix C/Haskell type mismatches
Ian Lynagh [Wed, 4 Apr 2007 00:36:25 +0000 (00:36 +0000)] 
Fix C/Haskell type mismatches

12 years agoFollow type changes in base
Ian Lynagh [Tue, 3 Apr 2007 19:52:37 +0000 (19:52 +0000)] 
Follow type changes in base
(of the dubiously exported c_access and c_fcntl_write)

12 years agofix cut-and-pasto in error message
Simon Marlow [Thu, 8 Mar 2007 13:44:18 +0000 (13:44 +0000)] 
fix cut-and-pasto in error message

12 years agoadd tests from GHC testsuite
Simon Marlow [Mon, 5 Mar 2007 14:52:58 +0000 (14:52 +0000)] 
add tests from GHC testsuite

12 years agoexport the file-type modes, so that createDevice can be used
Simon Marlow [Mon, 5 Mar 2007 11:33:16 +0000 (11:33 +0000)] 
export the file-type modes, so that createDevice can be used

12 years agoProvide nanosleep if we have it, and use it to implement usleep
Simon Marlow [Fri, 2 Mar 2007 13:28:18 +0000 (13:28 +0000)] 
Provide nanosleep if we have it, and use it to implement usleep
Fixes #1156

12 years agodon't retry usleep() on EINTR (see #850/#1156)
Simon Marlow [Fri, 2 Mar 2007 11:41:18 +0000 (11:41 +0000)] 
don't retry usleep() on EINTR (see #850/#1156)

12 years agoexpand docs for forkProcess
Simon Marlow [Thu, 1 Mar 2007 15:12:20 +0000 (15:12 +0000)] 
expand docs for forkProcess

12 years agoadd C wrappers for lstat() and mknod(). Fixes #1086.
Simon Marlow [Mon, 26 Feb 2007 11:03:11 +0000 (11:03 +0000)] 
add C wrappers for lstat() and mknod().  Fixes #1086.

12 years agoREADME about building from darcs
Ross Paterson [Sun, 18 Feb 2007 11:02:01 +0000 (11:02 +0000)] 
README about building from darcs

12 years agofix haddock syntax 6_6_release
Simon Marlow [Fri, 8 Sep 2006 11:18:58 +0000 (11:18 +0000)] 
fix haddock syntax

12 years agoDerive Show, Read, and Eq for UserEntry and GroupEntry
John Goerzen [Thu, 31 Aug 2006 14:50:22 +0000 (14:50 +0000)] 
Derive Show, Read, and Eq for UserEntry and GroupEntry

12 years agobump version to 2.0
Simon Marlow [Thu, 31 Aug 2006 14:02:57 +0000 (14:02 +0000)] 
bump version to 2.0

12 years agoFix compilation issues with new getgrent/getpwent code
John Goerzen [Wed, 30 Aug 2006 13:45:17 +0000 (13:45 +0000)] 
Fix compilation issues with new getgrent/getpwent code

12 years agoAdded support for getpwent/getgrent
John Goerzen [Wed, 30 Aug 2006 13:25:50 +0000 (13:25 +0000)] 
Added support for getpwent/getgrent

12 years agoAdded some Haddock docs for UserEntry and GroupEntry
John Goerzen [Tue, 29 Aug 2006 18:59:32 +0000 (18:59 +0000)] 
Added some Haddock docs for UserEntry and GroupEntry

12 years agoAdd missing field gr_passwd to GroupEntry
John Goerzen [Tue, 29 Aug 2006 18:55:36 +0000 (18:55 +0000)] 
Add missing field gr_passwd to GroupEntry

12 years agoWhitespace changes for better alignment in unpackUserEntry
John Goerzen [Tue, 29 Aug 2006 18:53:00 +0000 (18:53 +0000)] 
Whitespace changes for better alignment in unpackUserEntry

12 years agoAdded pw_passwd and pw_gecos fields to UserEntry structure
John Goerzen [Tue, 29 Aug 2006 18:50:51 +0000 (18:50 +0000)] 
Added pw_passwd and pw_gecos fields to UserEntry structure
System.Posix.User was missing pw_gecos and pw_passwd in UserEntry.

I have added them, so now the full struct passwd is represented.

12 years agoincludes -> install-includes
Ross Paterson [Tue, 29 Aug 2006 12:37:44 +0000 (12:37 +0000)] 
includes -> install-includes

12 years agoexclude Setup.hs from build
Ross Paterson [Thu, 24 Aug 2006 18:35:35 +0000 (18:35 +0000)] 
exclude Setup.hs from build

12 years agoadd boilerplate Setup.hs
Ross Paterson [Thu, 24 Aug 2006 11:50:19 +0000 (11:50 +0000)] 
add boilerplate Setup.hs

12 years agoAdded more documentation to System.Posix.Files
Johan Tibell [Sun, 13 Aug 2006 10:23:50 +0000 (10:23 +0000)] 
Added more documentation to System.Posix.Files

12 years agofix markup (#854)
Ross Paterson [Sun, 20 Aug 2006 00:23:22 +0000 (00:23 +0000)] 
fix markup (#854)

12 years agochange test for buildability
Ross Paterson [Sat, 19 Aug 2006 14:48:34 +0000 (14:48 +0000)] 
change test for buildability

Checking for dlfcn.h instead of creat() should make the Cabal build fail
more gracefully under MinGW.

12 years agodocument args to executeFile
Simon Marlow [Wed, 9 Aug 2006 10:45:59 +0000 (10:45 +0000)] 
document args to executeFile

13 years agofix bogosity in getEnvironmentPrim
Simon Marlow [Wed, 31 May 2006 14:46:40 +0000 (14:46 +0000)] 
fix bogosity in getEnvironmentPrim

13 years agoTrack the GHC source tree reoganisation
Simon Marlow [Fri, 7 Apr 2006 04:17:58 +0000 (04:17 +0000)] 
Track the GHC source tree reoganisation

13 years ago[project @ 2005-11-10 13:00:55 by simonmar] Initial_conversion_from_CVS_complete
simonmar [Thu, 10 Nov 2005 13:00:55 +0000 (13:00 +0000)] 
[project @ 2005-11-10 13:00:55 by simonmar]
some Haddock docs, from Isaac Jones.

13 years ago[project @ 2005-11-10 12:58:32 by simonmar]
simonmar [Thu, 10 Nov 2005 12:58:32 +0000 (12:58 +0000)] 
[project @ 2005-11-10 12:58:32 by simonmar]
Some docs for System.Posix, from Bj?rn Bringert

13 years ago[project @ 2005-09-20 22:54:33 by ross] cmm-merge2
ross [Tue, 20 Sep 2005 22:54:33 +0000 (22:54 +0000)] 
[project @ 2005-09-20 22:54:33 by ross]
make the unix package independent.

13 years ago[project @ 2005-09-20 16:35:26 by ross]
ross [Tue, 20 Sep 2005 16:35:26 +0000 (16:35 +0000)] 
[project @ 2005-09-20 16:35:26 by ross]
move RTLD_* tests down to unix package

13 years ago[project @ 2005-09-19 23:24:31 by ross]
ross [Mon, 19 Sep 2005 23:24:31 +0000 (23:24 +0000)] 
[project @ 2005-09-19 23:24:31 by ross]
For compilers other than MSVC and GCC, assume inline has the C99 semantics.

13 years ago[project @ 2005-08-10 10:07:22 by simonmar]
simonmar [Wed, 10 Aug 2005 10:07:22 +0000 (10:07 +0000)] 
[project @ 2005-08-10 10:07:22 by simonmar]
Fix queryFdOption

13 years ago[project @ 2005-08-04 02:09:36 by wolfgang]
wolfgang [Thu, 4 Aug 2005 02:09:36 +0000 (02:09 +0000)] 
[project @ 2005-08-04 02:09:36 by wolfgang]
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

13 years ago[project @ 2005-07-21 12:54:33 by simonmar]
simonmar [Thu, 21 Jul 2005 12:54:33 +0000 (12:54 +0000)] 
[project @ 2005-07-21 12:54:33 by simonmar]
Hack Makefiles so that 'make distclean' works even if the tree has not
been configured, or 'make distclean' has already been run.

This is to solve problems caused by 'make distclean' removing files
that it needs itself - previously we were arranging to remove certain
files right at the end of cleaning, but this is fragile.  So now we
assume that e.g. the X11 library is always enabled when we're
cleaning.

14 years ago[project @ 2005-05-10 10:40:12 by simonmar]
simonmar [Tue, 10 May 2005 10:40:12 +0000 (10:40 +0000)] 
[project @ 2005-05-10 10:40:12 by simonmar]
PATH_MAX fixes from Thomas Schwinge.

14 years ago[project @ 2005-03-23 14:34:21 by ross] arity-anal-branch-point ghc-assoc-branch-point
ross [Wed, 23 Mar 2005 14:34:21 +0000 (14:34 +0000)] 
[project @ 2005-03-23 14:34:21 by ross]
add license files for individual packages

14 years ago[project @ 2005-03-08 16:22:05 by simonmar] nhc98-1-18-release
simonmar [Tue, 8 Mar 2005 16:22:05 +0000 (16:22 +0000)] 
[project @ 2005-03-08 16:22:05 by simonmar]
Undo previous commit: it breaks when RLIM_INFINITY is defined to an
expression that CPP doesn't understand.

14 years ago[project @ 2005-03-08 04:45:38 by wolfgang]
wolfgang [Tue, 8 Mar 2005 04:45:38 +0000 (04:45 +0000)] 
[project @ 2005-03-08 04:45:38 by wolfgang]
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