Stephan Ferraro wrote:
> I can't find man pages about flock and I can't compile my programs which uses 
> flock(...).
> I found something similar called flockfile(). Does this mean flockfile should 
> be used instead of flock?

flockfile isn't related to the old BSD flock.  Instead, it's an MT
primitive for standard IO streams.

What you probably want in a modern program is lockf() or the fcntl()
locking mechanisms.

I don't know what happened to flock on OpenSolaris.  It was (on old
Solaris) in the UCB compatibility package.

-- 
James Carlson         42.703N 71.076W         <carls...@workingcode.com>
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to