Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2003 11:06:29 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Bogdan TARU <bgd@icomag.de>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: linux binary blues
Message-ID:  <xzpaddoa8a2.fsf@flood.ping.uio.no>
In-Reply-To: <20030515092609.P94532-100000@fw.office.icom> (Bogdan TARU's message of "Thu, 15 May 2003 09:28:57 %2B0200 (CEST)")
References:  <20030515092609.P94532-100000@fw.office.icom>

next in thread | previous in thread | raw e-mail | index | archive | help
Bogdan TARU <bgd@icomag.de> writes:
>                              As about the third parameter to semget, as
> far as I can read in semget(2) the third parameter (flag) is an integer,
> not a pointer?

0xbfsomething is definitely a pointer to a stack variable.  You're
probably using kdump instead of linux_kdump; syscall 221 is semget in
FreeBSD but fcntl64 in Linux.  The first argument is the fd (notice
that it's 3 which is the result of the preceding open call; open is
syscall 5 in both FreeBSD and Linux, so this one is correct), the
second is the operation (6 == F_SETLK in Linux), and the third is the
argument (for F_SETLK, a pointer to a struct flock).

I recommend 'pkg_add -r linux_kdump'.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpaddoa8a2.fsf>