Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


SCO UNIX multiple users to write with a regular paper, how to write procedures?

If that, how can we ensure that no conflict of writing paper, and write the content is not lost? It would be better if a simple example, the next first Thank you!

SCO UNIX multiple users to write with a regular paper, how to write procedures?

O_APPEND.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Upstairs, O_APPEND What does this mean?

SCO UNIX multiple users to write with a regular paper, how to write procedures?

2 open man. You find O_APPEND.
Atomic operation. And the i-node of the document. Wrote the paper are written each end user.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Open documents using open, the contents can only write to write, read only used as read? Fprintf and fscanf can use?

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Not ah. I/O series using standard Solaris fwrite function.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Basic file with open read write. . .
I/O using standard Solaris fread fwrite fprintf. . . .

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Solaris O_APPEND parameters not only be open, I was open open, or Solaris open?

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Open

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Open opened, the document can not be used to write fprintf?

SCO UNIX multiple users to write with a regular paper, how to write procedures?

"A" pattern of using Solaris to open the document, and to use open O_APPEND What is the difference between open documents? Like tail are additional write in the paper.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

+ Can be used. ~

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Do you mean to say, to write a pattern using Solaris open documents, articles, I would be able to meet the demand? If the answer is yes, write documents fprintf to pay attention to what is not, to re-position paper tail? Fprintf function call when positioning system or automatic document tail end of the latest document?

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Fprintf is a buffer that can be locked into a process that guarantees more information interfere with each other.
The easy way is to use open/close/read/write, consuming method is fopen/fclose/fread/fwrite/fprintf/fflush/fcntl.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Thank you for your explanation, I would like to learn.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Like FH put it.
I would suggest that you open close read write.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

Fcntl flock or bars used in written documents must be whether there are lock-Lane.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

PMWS. .
Open function carrying atomic operation O_APPEND. A simple multi-oh.

SCO UNIX multiple users to write with a regular paper, how to write procedures?

O_APPEND atomic operation is moved to open the paper and paper atomic operation is the end of the process, it does not mean it is time to write the atom

SCO UNIX multiple users to write with a regular paper, how to write procedures?

-->
APUE have said 3.11.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com