On Thu, Mar 29, 2001 at 09:01:20AM -0600, Gordon Matzigkeit wrote: > >>>>> Joost Witteveen writes: > > JW> i.e., 1073741942, or 2**30+118 (doesn't look very special to me). > JW> As far as I can see, whenever fcntl returns -1, it _should_ set > JW> errno to something more sensible than that. > > Hurd errnos are quite different from Linux errnos, and the errno > you're looking at is quite a sensible one: EOPNOTSUPP (a weaker > version of ENOSYS). File locking is not fully implemented on the > Hurd, and your program is asking for something that the Hurd doesn't > (yet) understand. This is a known bug.
This is almost true. Joost code locks the whole file (l_len == 0), and we support that just fine. dpkg and dselect use this to lock the dpkg status database. So as long as l_len is 0, it should work fine on the Hurd. Marcus -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED] Marcus Brinkmann GNU http://www.gnu.org [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.marcus-brinkmann.de

