Hello!
I need to get the file descriptors of some handles, but the handles should not
be modified. They should not be closed by the operation.
I guess, that the handle gets closed for a reason. But I'm using the revealed
file descriptors in a way which should pose no problems for the integrity
On Saturday 01 October 2011 08:30:40 Volker Wysk wrote:
If anyone can point out to me, how this non-blocking handleToFd function
should be made, I would be grateful.
This should be non-CLOSING handleToFd function. Sorry.
Volker
___
On 1 October 2011 08:30, Volker Wysk p...@volker-wysk.de wrote:
1.
data FD = FD {
fdFD :: {-# UNPACK #-} !CInt,
fdIsNonBlocking :: {-# UNPACK #-} !Int
}
What is that exclamation mark?
That's a strictness annotation and is haskell98/2010: