From: minyard@crchh453.bnr.ca (Corey Minyard) Subject: Re: File locking under Linux Date: 30 Sep 1992 21:16:09 GMT
In article <TALVOLA.92Sep30092239@qin.Berkeley.EDU>, talvola@qin.Berkeley.EDU (Erik Talvola) writes:
|>
|> Anyway, ignoring that problem, my main concern is about file locking. There
|> seems to be some support in Linux (there is a struct file_lock), but how
|> do you use it? Neither flock() or lockf() is defined, and both cbzone and
|> tetris use one of those (mainly flock() I guess). Is there some Posix
|> way to do file locking which isn't BSD or SYSV? Anyway, if someone could
|> give me a replacement for flock() in Linux terms, I would appreciate it.
You have to use fcntl() locking right now. I assume the library people are
planning to add flock() or lockf() at a later date.
|>
|> -- Erik
|>
|> --
|> +----------------------------+
|> ! Erik Talvola | "It's just what we need... a colossal negative
|> ! talvola@qin.berkeley.edu | space wedgie of great power coming right at us
|> ! ...!ucbvax!qin!talvola | at warp speed." -- Star Drek
Corey Minyard
minyard@bnr.ca