we need it. any reason why it couldn't shouldn't be done?
-a
we need it. any reason why it couldn't shouldn't be done?
-a
In article <Pine.LNX.4.62.0509161558490.31195@harp.ngdc.noaa.gov>,
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:
we need it. any reason why it couldn't shouldn't be done?
ruby 1.8.3 calls clearerr before getc automatically because stdio has
non-portability about that.
ruby 1.9 has no error and EOF flag to clear because it doesn't use
stdio.
--
Tanaka Akira
o.k. - so that should let me read past eof (multiple clients sending data down
pipe one at the time)
but i still can't write past EOF. i want to keep some output pipes open and
simply send EOF down them (close, clearerr) to indicate no more data. any
thought on that?
btw. ever looked at sfio?
cheers.
-a
On Sat, 17 Sep 2005, Tanaka Akira wrote:
In article <Pine.LNX.4.62.0509161558490.31195@harp.ngdc.noaa.gov>,
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:we need it. any reason why it couldn't shouldn't be done?
ruby 1.8.3 calls clearerr before getc automatically because stdio has
non-portability about that.ruby 1.9 has no error and EOF flag to clear because it doesn't use
stdio.
email :: ara [dot] t [dot] howard [at] noaa [dot] gov
phone :: 303.497.6469
Your life dwells amoung the causes of death
Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
In article <Pine.LNX.4.62.0509161632390.31195@harp.ngdc.noaa.gov>,
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:
but i still can't write past EOF. i want to keep some output pipes open and
simply send EOF down them (close, clearerr) to indicate no more data. any
thought on that?
Try it in C. I think it doesn't work.
--
Tanaka Akira
it sure doesn't seem to. but, from the man page:
...
DESCRIPTION
The function clearerr clears the end-of-file and error indicators for
the stream pointed to by stream.
The function feof tests the end-of-file indicator for the stream
pointed to by stream, returning non-zero if it is set. The end-of-file
indicator can only be cleared by the function clearerr.
...
sure sounds like it should. back to researching ;-(
regards.
-a
On Sat, 17 Sep 2005, Tanaka Akira wrote:
In article <Pine.LNX.4.62.0509161632390.31195@harp.ngdc.noaa.gov>,
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:but i still can't write past EOF. i want to keep some output pipes open and
simply send EOF down them (close, clearerr) to indicate no more data. any
thought on that?Try it in C. I think it doesn't work.
email :: ara [dot] t [dot] howard [at] noaa [dot] gov
phone :: 303.497.6469
Your life dwells amoung the causes of death
Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================
In article <Pine.LNX.4.62.0509161705030.31195@harp.ngdc.noaa.gov>,
"Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:
Try it in C. I think it doesn't work.
it sure doesn't seem to. but, from the man page:
Try it.
--
Tanaka Akira