Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: open for append

by cmeyer (Pilgrim)
on Aug 25, 2005 at 15:46 UTC ( [id://486595]=note: print w/replies, xml ) Need Help??


in reply to Re: open for append
in thread open for append

Good point. I'll edit my post to say that the C library guarantees that data shall not be overwritten.

-Colin.

WHITEPAGES.COM | INC

Replies are listed 'Best First'.
Re^3: open for append
by merlyn (Sage) on Aug 25, 2005 at 15:53 UTC
    the C library guarantees that data shall not be overwritten
    But it's not the C library either. It's the kernel. The C library doesn't care, and doesn't know that O_APPEND was used. It simply does the write(2) call, and because the open(1) call had O_APPEND, the kernel arranges for write-at-end in an atomic fashion.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://486595]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found