file system query

Tanner Andrews tanner at ki4pv.UUCP
Sat May 4 01:30:39 AEST 1985


Opening for append using [see] fopen(3) does not cause anything
of great magic to happen to the op system.  The basic procedure
involved is:
	(1) open file
	(2) seek to end
	(3) fill buffer and write to file in current position

Consider the case for more than one process happening at once:
Of course, if you have two people that open the file and seek to
the end, both will seek to the SAME end.  Then, when they start
their output, the output will go to the same place.  The guy that
gets there LAST wins, of course.

Of course you may get the same effect by using [see] open(2) and
[see] lseek(2) to the end of the file, then writing.  The result
still probably isn't what you had in mind.
-- 
<standard disclaimers apply, copies upon request>	Tanner Andrews, KI4PV



More information about the Comp.unix mailing list