From owner-freebsd-emulation Sat Dec 15 21: 8:43 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id 9980037B417 for ; Sat, 15 Dec 2001 21:08:40 -0800 (PST) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.6/8.11.4) with ESMTP id fBG58eQ45791; Sat, 15 Dec 2001 21:08:40 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.6) id fBG597C05549; Sat, 15 Dec 2001 21:09:07 -0800 (PST) (envelope-from marcel) Date: Sat, 15 Dec 2001 21:09:07 -0800 From: Marcel Moolenaar To: Andrew Gallatin Cc: Willem van Engen , freebsd-emulation@FreeBSD.ORG Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 Message-ID: <20011215210907.A5211@dhcp01.pn.xcllnt.net> References: <20011210115204.6ddde325.wvengen@stack.nl> <15382.5752.295875.987980@grasshopper.cs.duke.edu> <20011211184131.0425b1fd.wvengen@stack.nl> <15382.23861.710621.118157@grasshopper.cs.duke.edu> <20011212142154.2fcf4740.wvengen@stack.nl> <15383.25291.595785.323779@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15383.25291.595785.323779@grasshopper.cs.duke.edu> User-Agent: Mutt/1.3.21i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Dec 12, 2001 at 08:59:39AM -0500, Andrew Gallatin wrote: > > Willem van Engen writes: [snip] > > > > linux_base-7: > > > bsd.l_len = bfbff15000000000, lin.l_len = bfbff15000000000 > > > bsd.l_pid= 280cbc80, lin.l_pid = 280cbc80 > > linux_base-6: > > > bsd.l_len = 0, lin.l_len = 0 > > > bsd.l_pid= 0, lin.l_pid = 0 > > Hopefully, Marcel will have some idea of what the "right" thing to do > here is. The l_pid field can savely be set to 0 in linux_to_bsd_flock*. It's only used for F_GETLK and hence needs to be copied in the other direction. I'm wondering if the l_len field is valid. I expect a value of 0 to be used to lock to EOF. Willem, I have to ask: is the printf you added valid? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message