Date: Wed, 12 Dec 2001 19:11:38 +0100 From: Willem van Engen <wvengen@stack.nl> To: freebsd-emulation@freebsd.org Subject: Re: flexlm: works with linux_base-6, fails with linux_base-7 Message-ID: <20011212191138.47c477fc.wvengen@stack.nl>
next in thread | raw e-mail | index | archive | help
On Wed, 12 Dec 2001 08:59:39 -0500 (EST) "Andrew Gallatin" <gallatin@cs.duke.edu> wrote: > > Willem van Engen writes: > > > I don't see anything obvious either. Are you sure that the > > > bsd_flock contains the same thing in the linux_base-6 case? > > Acutally no, there is a difference. I got lost in printf %[l][l]x stuff. > > > > linux_base-7: > > linux(2810): fcntl64(4, 00000006, *) > > > fcntl_bsd(4, F_SETLK, flock) > > > bsd.l_start = 0, lin.l_start = 0 > > > bsd.l_len = bfbff15000000000, lin.l_len = bfbff15000000000 > > > bsd.l_pid= 280cbc80, lin.l_pid = 280cbc80 > > > bsd.l_type= 3, lin.l_type = 1 > > > bsd.l_whence= 1, lin.l_whence = 1 > > linux_base-6: > > linux(2801): fcntl(4, 00000006, *) > > > fcntl_bsd(4, F_SETLK, flock) > > > bsd.l_start = 0, lin.l_start = 0 > > > bsd.l_len = 0, lin.l_len = 0 > > > bsd.l_pid= 0, lin.l_pid = 0 > > > bsd.l_type= 3, lin.l_type = 1 > > > bsd.l_whence= 1, lin.l_whence = 1 > > I think that linux ignores at least the pid field & replaces it with > the pid of the current process. I haven't looked at the guts of their > flock to see if they ignore len as well. I think if you zero those 2 > fields in linux_to_bsd_flock64, you'll be fine. Yep, this hack works! (well, matlab doens't run yet but the license manager does). Thanks a lot, now I can at least use it! - Willem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011212191138.47c477fc.wvengen>