| Commit message (Collapse) | Author | Age |
... | |
|
|
|
| |
Hugs only: add handleToFd
|
|
|
|
|
|
| |
Hugs only: add most of the rest of System.Posix
(I wonder why SIG_UNBLOCK and SIG_SETMASK are switched in HsBase.h)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New implementation & changed type signature of forkProcess
forkProcess now has the following type:
forkProcess :: IO () -> IO ProcessID
forkProcessAll has been removed as it is unimplementable in the threaded RTS.
forkProcess using the old type (IO (Maybe ProcessID)) was impossible to
implement correctly in the non-threaded RTS and very hard to implement
in the threaded RTS.
The new type signature allows a clean and simple implementation.
|
|
|
|
| |
No reason we can't support sys/mman.h: move it to the ToDo section.
|
|
|
|
|
|
|
| |
Untested fix for Solaris to get the right versions of getgrnam_r and
friends.
I'd appreciate it if someone with a Solaris build could test this.
|
|
|
|
|
|
|
|
| |
Kill mktemp: it causes link warnings whenever someone uses -package
unix on Linux & FreeBSD at least, and is bogus anyway.
mktemp is still used to implement mkstemp when !GLASGOW_HASKELL and
!HUGS. Why is this?
|
|
|
|
| |
fileExist should not throw an exception if the file does not exist.
|
|
|
|
|
|
|
|
| |
#ifdef's for the _PC_SYNC_IO, _PC_ASYNC_IO, _PC_FILESIZEBITS,
_PC_SYMLINK_MAX.
These 4 symbols are not universal: FreeBSD and Linux and the only
OS's that appear to have them at the moment.
|
|
|
|
| |
Implement pathconf()/fpathconf() wrappers.
|
|
|
|
| |
Export TerminalAttributes abstractly
|
|
|
|
| |
More import tweaking for Haddock
|
|
|
|
|
| |
Export Module (abstractly), otherwise the user is unable to write
signatures involving this type. Improves Haddock hyperlinks, too.
|
|
|
|
| |
jiggle to make System.Posix.Directory work for Hugs
|
|
|
|
| |
Sendfile is gone
|
|
|
|
|
| |
Revert last commit (remove "network" dependency again),
as it was already fixed in a different way and I forgot to update... :-(
|
|
|
|
|
| |
Add package "network" to the list of dependencies, as it is needed by Sendfile.
Fixes a link error when starting "ghci -package unix".
|
|
|
|
|
|
| |
Remove Network.Sendfile at request of Volker Stolz. We currently have
some build problems with it (it depends on both unix and network
packages). It might come back at some point in the future.
|
|
|
|
|
| |
- Use the right fdToHandle
- some minor -Wall cleaning
|
|
|
|
| |
Move Network.Sendfile into the unix package to fix the build.
|
|
|
|
|
|
|
|
| |
Move System.Sendfile to Network.Sendfile:
- Linux can sendfile() to a fd, but BSD couldn't
- sendfile() on Linux is probably now disabled on most builds because of
the LARGEFILE issue
=> Change API to use type Socket
|
|
|
|
| |
Obsolete
|
|
|
|
| |
Haddock: Add link to 'handleToFd'
|
|
|
|
| |
Hook up System.Posix.Temp.
|
|
|
|
| |
waitpid() may return EINTR, so use throwErrnoifMinus1Retry
|
|
|
|
| |
cvs ignorance for splits and way=p
|
|
|
|
| |
Can't use sendfile() with LARGEFILES on Linux
|
|
|
|
| |
No longer pertinent
|
|
|
|
|
| |
/me slaps haddock with a large piece of trout.
Someone please remind me of running 'make html' before committing.
|
|
|
|
|
|
|
| |
Throw in mktemp() as well, as the non-GHC/Hugs case
was essentially that. Advantage: At least on FreeBSD
the linker will print out a warning whenever you use
mktemp().
|
|
|
|
| |
Hugs only: use fdToHandle (like GHC)
|
|
|
|
| |
Hugs only: make fdToHandle available
|
|
|
|
|
|
| |
Return file name as well
Suggested by: Martin Norb?ck
|
|
|
|
|
|
|
| |
Add mkstemp() wrapper, including (unsafe) fallback for non-GHCs
(fdToHandle required).
Suggested by: Martin Sj?gren
|
|
|
|
| |
Need flags here as well.
|
|
|
|
| |
fix type error
|
|
|
|
| |
No (un)setenv until SUSv3 (e.g. Solaris 2.9). (fallback untested)
|
|
|
|
|
|
| |
Solaris2 needs _POSIX_PTHREAD_SEMANTICS for the getpw*_r() prototypes.
Make libraries/unix/Makefile use a new variable unix_SRC_HSC2HS_OPTS
which we configure in mk/config.mk.
|
|
|
|
| |
Revert previous commit, I've fixed Haddock instead.
|
|
|
|
| |
Flatten the doc structure a bit.
|
|
|
|
| |
cvs ignorance is bliss
|
|
|
|
|
| |
- My fault, so take ownership
- Strip unnecessary #include while here
|
|
|
|
|
|
| |
Rename per-package configuration files from $(PACKAGE).conf.* to
package.conf.*, making them easier to find (since each package is
in a separate directory anyway).
|
|
|
|
| |
Look for 'bracket' in the right place
|
|
|
|
|
|
|
|
|
|
| |
Now that we have auto packages, it makes sense to keep all the
interfaces for hierarchical libraries in the same directory tree. So
now, instead of putting interfaces for package P in $libdir/imports/P,
we put them all in $libdir/imports.
Interfaces for old non-auto non-hierarchical packages now go in
$libdir/hslibs-imports/P for package P.
|
|
|
|
| |
Move dlfcn.h to the "supported" list.
|
|
|
|
|
|
|
|
|
| |
- move System.DL to System.Posix.DynamicLinker
- take ownership
There's a compiler warning when passing the 'const char*' result from
dlerror() to peekCString (discarded qualifier). Does an FFI-expert know
how to get rid of this warning?
|
|
|
|
| |
add the DL modules (or whatever they're called) to Hugs
|
|
|
|
| |
Add #ifdefs for RLIMIT_AS and RLIM_SAVED_*, which are not defined on Mac OS X.
|
|
|
|
| |
extra #include's
|
|
|
|
| |
list modules that don't yet work with Hugs.
|