| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
| |
It's very unlikely the current `unix` code stands any chance of even
remotely work with Hugs...
|
|
|
|
| |
Closes #27
|
|
|
|
|
|
|
|
|
| |
Only language extensions not active when `-XHaskell2010` is enabled are
declared, this way we can drop many redundant
`{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also
removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas.
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
| |
and remove code to support older versions
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
If the argument doesn't terminate in capital Xs, the C mkstemp will simply bomb out
with zero warning. This was not documented.
By arbitrarily sticking a bunch of Xes at the end of all arguments, we guarantee that
this exception will not be thrown, the type signature will not change, and no existing
code can break (since if it was manually avoiding the exception by adding "XXX" itself,
the temp files will now be simply 3 random characters longer, nothing worse).
|
|
|
|
| |
returned String actually is
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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?
|
|
|
|
|
| |
/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)
|
|
|
|
|
|
| |
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
|