| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
GHC bits for new library organisation.
|
|
|
|
| |
wibble
|
|
|
|
|
|
|
| |
- fix bug in setSocketOption__ which meant that trying to set
SO_REUSEADDR on Linux (and possibly other OS's) didn't work.
- add rudimentary non-blocking connect support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cleanup of non-blocking I/O
- file descriptors are now always set to non-blocking mode.
- we don't do an inputReady operation on descriptors before
attempting to read from them any more.
- the non-blocking flag on Handles has gone.
- the {set,clear}[Conn]NonBlockingFlag() functions have gone.
- the socket operations have been made to work properly with threads:
accept is now non-blocking (it does a threadWaitRead instead of
blocking), and the file descriptors returned by accept are set to
non-blocking mode.
Win32 will need some adjustments, no doubt.
|
|
|
|
|
| |
Recent CPP-related wibblement meant that _WIN32 wasn't defined when
the pre-proc was run (cf. -undef usage.) Avoid the use of _WIN32
|
|
|
|
| |
Cygwin B19 compatibility fixes
|
|
|
|
| |
Don't use WinSock under cygwin
|
|
|
|
| |
switch over to using Winsock on the _WIN32 side
|
|
|
|
| |
makeForeignObj --> mkForeignObj
|
|
|
|
| |
finalise/finalize changes.
|
|
|
|
| |
'errors' caught by -fwarn-type-defaults
|
|
|
|
| |
boundsOfByteArray --> boundsOfMutableByteArray
|
|
|
|
| |
Remove unnecessary imports
|
|
|
|
| |
H98 changes for non-cygwin targets.
|
|
|
|
| |
-syslib misc meets Haskell 98.
|
|
|
|
| |
Move 4.01 onto the main trunk.
|
|
|
|
| |
Import list updates
|
|
|
|
| |
add (disabled) SO_REUSEPORT socket option.
|
|
|
|
| |
socketToHandle changed to use new IO impl
|
|
|
|
|
|
|
|
| |
Added support for setting and getting socket options:
data SocketOption
getSocketOption :: Socket -> SocketOption -> IO Int
setSocketOption :: Socket -> SocketOption -> Int -> IO ()
|
|
|
|
| |
Drop -syslib posix deps
|
|
|
|
| |
New functions: SocketPrim.recvFrom and SocketPrim.sendTo
|
|
|
|
|
| |
iNADDR_ANY: it's a HostAddress, so convert it to network
byte order.
|
|
|
|
| |
cygwin32 mods
|
|
|
|
| |
cleaned up a little; clarified the byte ordering of host addresses and port numbers
|
|
|
|
| |
update for alpha/osf3.
|
|
Library re-organisation:
All libraries now live under ghc/lib, which has the following structure:
ghc/lib/std -- all prelude files (libHS.a)
ghc/lib/std/cbits
ghc/lib/exts -- standard Hugs/GHC extensions (libHSexts.a)
-- available with '-fglasgow-exts'
ghc/lib/posix -- POSIX library (libHSposix.a)
ghc/lib/posix/cbits -- available with '-syslib posix'
ghc/lib/misc -- used to be hslibs/ghc (libHSmisc.a)
ghc/lib/misc/cbits -- available with '-syslib misc'
ghc/lib/concurrent -- Concurrent libraries (libHSconc.a)
-- available with '-concurrent'
Also, several non-standard prelude modules had their names changed to begin
with 'Prel' to reduce namespace pollution.
Addr ==> PrelAddr (Addr interface available in 'exts')
ArrBase ==> PrelArr
CCall ==> PrelCCall (CCall interface available in 'exts')
ConcBase ==> PrelConc
GHCerr ==> PrelErr
Foreign ==> PrelForeign (Foreign interface available in 'exts')
GHC ==> PrelGHC
IOHandle ==> PrelHandle
IOBase ==> PrelIOBase
GHCmain ==> PrelMain
STBase ==> PrelST
Unsafe ==> PrelUnsafe
UnsafeST ==> PrelUnsafeST
|