From: simonmar Date: Tue, 23 Nov 1999 14:36:31 +0000 (+0000) Subject: [project @ 1999-11-23 14:36:31 by simonmar] X-Git-Tag: Approximately_9120_patches~5509 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a4e2cc7721b8da806b8bbd6981e0b3ab76e43faa;p=ghc-hetmet.git [project @ 1999-11-23 14:36:31 by simonmar] ANSIfication --- diff --git a/ghc/lib/std/cbits/fileObject.h b/ghc/lib/std/cbits/fileObject.h index deca1b0..b0a3100 100644 --- a/ghc/lib/std/cbits/fileObject.h +++ b/ghc/lib/std/cbits/fileObject.h @@ -13,6 +13,19 @@ typedef struct _IOFileObject { int fd; void* buf; + + int bufStart; /* offset of start of data waiting to + be written. This may be non-zero in + the case where we wrote out some of the + buffer, and then blocked. + + NOTE: this field should be non-zero *only* + when we just blocked on a call to writeBuffer, + and we're going to restart the call when + we unblock. It should be zero at all other + times. + */ + int bufWPtr; /* points to next position to write, bufRPtr >= bufWPtr <= bufSize.