From: matz@... (Yukihiro Matsumoto) Date: 2003-12-09T21:52:36+09:00 Subject: Re: RCR - 'struct flock*' wrapper for rb_io_fcntl Hi, In message "Re: RCR - 'struct flock*' wrapper for rb_io_fcntl" on 03/12/09, nobu.nokada@softhome.net writes: |> |Rather, wouldn't IO#lock/lock? methods be better? |> |> I don't think so. They would be confusing with IO#flock. | |Then, how about replacing IO#flock by fcntl()? Can you be more specific? Removing IO#flock? Or something else? I think flock cannot be replaced by fcntl, because on most platform, flock(2) and file lock by fcntl(2) are independent. IO#flock should be implemented by flock(2) to ensure interoperability. matz.