* Re: Locked highscore file [not found] <vhin1w2fa16.fsf@grotte.ifi.uio.no> @ 1999-08-09 0:00 ` Aidan Skinner 0 siblings, 0 replies; only message in thread From: Aidan Skinner @ 1999-08-09 0:00 UTC (permalink / raw) On 08 Aug 1999 19:37:57 +0200, Jan Kroken <jankr@nntp.ifi.uio.no> wrote: >Lock the file Aquire a Write_Lock on the file using Posix.File_Locking.Set_Lock or Wait_To_Set_Lock. >Read the entries and merge them with my local score table >Write the new table to the file Open the file, read it. Write it, you have you the only acces to the file. >unlock the file use Posix.File_Locking.Set_Lock with Lock.Lock = Unlock. This should be possible with any system that has a posix implementation available. - Aidan -- Gimme money, gimme sex, gimme UNIX and root access. http://www.skinner.demon.co.uk/aidan/ ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-08-09 0:00 UTC | newest] Thread overview: (only message) (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <vhin1w2fa16.fsf@grotte.ifi.uio.no> 1999-08-09 0:00 ` Locked highscore file Aidan Skinner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox