[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: O_APPEND, file locking...
>>>>> On Fri, 23 Jul 93 20:35:44 CES, Juergen Lock <nox@jelal.north.de> said:
|> quick question: on what filesystems does O_APPEND (or fopen (.. "a"))
|> work with > 1 processes writing to the same file? i doubt it does on
|> GEMDOSfs, but on others? reason i ask is should i put locking code
|> around simple one-line fprintfs to logfiles.. i would rather not :-)
It works with every filesystem, because MiNT translates it to
lseek(SEEK_END) + write, atomically.
----------------------------------------------------------------------
Andreas Schwab "And now for something
schwab@ls5.informatik.uni-dortmund.de completely different"