By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,128 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,128 IT Pros & Developers. It's quick & easy.

what is an "update stream"?

P: n/a
When I was reading the man-page of fflush, I came across this statement
---

"The function fflush forces a write of all user-space buffered data for
the given output or update stream via the stream's underlying write
function."

what exactly is an "update stream"?

Dec 24 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"chandanlinster" <ch************@gmail.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
When I was reading the man-page of fflush, I came across this
statement
---

"The function fflush forces a write of all user-space buffered data
for
the given output or update stream via the stream's underlying write
function."

what exactly is an "update stream"?
In my man page, the first "stream" is underlined, meaning it refers to
the argument "stream" in the prototype. i.e. fflush() only affects the
stream you pass to it, not all streams.

It could definitely be clearer.

S

--
Stephen Sprunk "God does not play dice." --Albert Einstein
CCIE #3723 "God is an inveterate gambler, and He throws the
K5SSS dice at every possible opportunity." --Stephen Hawking
--
Posted via a free Usenet account from http://www.teranews.com

Dec 24 '06 #2

P: n/a
"chandanlinster" <ch************@gmail.comwrites:
When I was reading the man-page of fflush, I came across this statement
---

"The function fflush forces a write of all user-space buffered data for
the given output or update stream via the stream's underlying write
function."

what exactly is an "update stream"?
An update stream is a stream opened for updating (i.e., for reading
and writing). This is controlled by the mode argument to fopen();
modes "r+", "w+", and "a+" create update streams.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 24 '06 #3

P: n/a
"Stephen Sprunk" <st*****@sprunk.orgwrites:
"chandanlinster" <ch************@gmail.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
>When I was reading the man-page of fflush, I came across this
statement
---

"The function fflush forces a write of all user-space buffered data
for
the given output or update stream via the stream's underlying write
function."

what exactly is an "update stream"?

In my man page, the first "stream" is underlined, meaning it refers to
the argument "stream" in the prototype. i.e. fflush() only affects
the stream you pass to it, not all streams.
I don't think that answers the question. See my other response.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 24 '06 #4

P: n/a
Thanks everybody for providing the solutions.
Merry Christmas and A happy new year.

Dec 24 '06 #5

P: n/a
On 23 Dec 2006 18:00:24 -0800, "chandanlinster"
<ch************@gmail.comwrote:
>When I was reading the man-page of fflush, I came across this statement
---

"The function fflush forces a write of all user-space buffered data for
the given output or update stream via the stream's underlying write
function."

what exactly is an "update stream"?
An update stream is one that has been opened for update, specifically
if the mode argument in the call to fopen contains a '+' (r+, rb+, a+,
etc).
Remove del for email
Dec 24 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.