From: Joel VanderWerf Date: 2003-01-27T04:17:42+09:00 Subject: Re: solaris porting problem -- flock failure? ts wrote: > "a" == ahoward writes: > > > a> odd that it builds flock when it is not missing on this system? > > flock() is broken on Solaris, this is why ruby emulate it with fcntl() (in > missing/flock.c) On this solaris host, man flock says flock itself is implemented in terms of fcntl locks: flock() applies or removes an advisory lock on the file associated with the file descriptor fd. The compatibility version of flock() has been implemented on top of fcntl(2) locking. It does not provide complete binary compatibility. But it appears ruby is doing its own emulation, just to be safe, I guess.