473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

what is an "update stream"?

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
5 3206
"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
"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
"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
Thanks everybody for providing the solutions.
Merry Christmas and A happy new year.

Dec 24 '06 #5
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
A beginner in this area, I have been able to read a record from a MySQL database and populate an HTML form (wow!). Now, my goal is to allow the user to edit the contents of the form and then...
8
by: RC | last post by:
In my Access 2002 form, I have a combo box and on the AfterUpdate event I use DoCmd.RunSQL ("UPDATE .... to update records in a table. When it starts to run I get a message "You are about to...
2
by: Bob Rock | last post by:
I already found an alternative way to accomplish this (using ReadBytes), still I'd like to understand why I'm getting and error reading a text file using the following method. The exception is...
2
by: Claus - Arcolutions | last post by:
I got a word document as a stream, and I want to get the text from the word document. But I cant seem to find anything to use for that purpose. The "Microsoft office ?.object" com reference, only...
1
by: Michael Stock | last post by:
Hi all, hopefully someone can tell me how to do this for a web server in C#: We have images in a folder you can't access over the net. So everytime we need to display an image from this folder,...
2
by: CVerma | last post by:
I'm using an html input control (System.web.UI.HTMLControls.HTMLInputFile) to upload files such as msword, excel, jpg, and pdf. I have the encType property set in the form:...
7
by: semedao | last post by:
Hi, I am using cryptostream on both sides on tcp connection that pass data. I am also use asyc socket , so , the data that recieved in the callback method not always have the length of the buffer...
5
by: StephQ | last post by:
At the moment I have a void member function (of a given class) that takes as input an obj of class type ofstream and write some debug information to it using the << operator. I would like to...
4
by: =?utf-8?B?Qm9yaXMgRHXFoWVr?= | last post by:
Hello, (sorry to begin with Java in a Python list ;-) in Java, when I want to pass input to a function, I pass "InputStream", which is a base class of any input stream. In Python, I found...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.