From owner-freebsd-hackers@FreeBSD.ORG Thu May 15 02:06:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFBF737B401 for ; Thu, 15 May 2003 02:06:33 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id E93DB43FDD for ; Thu, 15 May 2003 02:06:32 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 90C1A530E; Thu, 15 May 2003 11:06:30 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bogdan TARU References: <20030515092609.P94532-100000@fw.office.icom> From: Dag-Erling Smorgrav Date: Thu, 15 May 2003 11:06:29 +0200 In-Reply-To: <20030515092609.P94532-100000@fw.office.icom> (Bogdan TARU's message of "Thu, 15 May 2003 09:28:57 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@FreeBSD.ORG Subject: Re: linux binary blues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 09:06:34 -0000 Bogdan TARU 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