[project @ 1999-11-25 16:54:14 by simonmar]
authorsimonmar <unknown>
Thu, 25 Nov 1999 16:54:15 +0000 (16:54 +0000)
committersimonmar <unknown>
Thu, 25 Nov 1999 16:54:15 +0000 (16:54 +0000)
commit0086477cfe554f9c65ae4c2f1e4e19f4e8c063eb
tree506ffebc9496dc64bbc5cf129eea5c2ebbd533c6
parent63b4f50cfaa383118c947445e5afb4fff3cd1c91
[project @ 1999-11-25 16:54:14 by simonmar]
Incremental cleanups & improvements to the I/O subsystem

- Initial fix for problems caused by partial writes
  to non-blocking file descriptors.  To see this bug,
  run ghc/tests/programs/life_space_leak through a pipe.

- remove FILEOBJ_FLUSH, it allegedly has the same meaning
  as FILEOBJ_WRITE.  This fixes a buf in openFd: it erroneously didn't
  set FILEOBJ_FLUSH on writeable file descriptors.

- some ANSIfication
ghc/lib/std/cbits/allocMem.c
ghc/lib/std/cbits/closeFile.c
ghc/lib/std/cbits/fileEOF.c
ghc/lib/std/cbits/fileLookAhead.c
ghc/lib/std/cbits/fileObject.h
ghc/lib/std/cbits/filePutc.c
ghc/lib/std/cbits/flushFile.c
ghc/lib/std/cbits/freeFile.c
ghc/lib/std/cbits/openFile.c
ghc/lib/std/cbits/setBuffering.c
ghc/lib/std/cbits/writeFile.c