From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 3 10:57:16 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52B6316A4CE; Tue, 3 Feb 2004 10:57:16 -0800 (PST) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B37643D54; Tue, 3 Feb 2004 10:57:13 -0800 (PST) (envelope-from walter@pelissero.de) Received: from daemon.home.loc (62.246.41.30) by webmail.tiscali.de (6.7.019) id 400E9485004E1240; Tue, 3 Feb 2004 19:57:11 +0100 Received: from hyde.home.loc (hyde.home.loc [10.0.0.2]) by daemon.home.loc (8.12.10/8.12.8) with ESMTP id i13IuPIV077459; Tue, 3 Feb 2004 19:56:25 +0100 (CET) (envelope-from wcp@hyde.home.loc) Received: from hyde.home.loc (localhost [127.0.0.1]) by hyde.home.loc (8.12.9/8.12.8) with ESMTP id i13IuPU5081892; Tue, 3 Feb 2004 19:56:25 +0100 (CET) (envelope-from wcp@hyde.home.loc) Received: (from wcp@localhost) by hyde.home.loc (8.12.9/8.12.6/Submit) id i13IuPI5081889; Tue, 3 Feb 2004 19:56:25 +0100 (CET) (envelope-from wcp) Message-ID: <16415.61145.783013.602178@hyde.home.loc> Date: Tue, 3 Feb 2004 19:56:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Walter C. Pelissero" To: freebsd-questions@freebsd.org, freebsd-emulation@freebsd.org In-Reply-To: <200401291747.i0THlLL04725@clunix.cl.msu.edu> References: <16409.17392.62258.191839@hyde.home.loc> <200401291747.i0THlLL04725@clunix.cl.msu.edu> X-Mailer: VM 7.16 under Emacs 21.3.50.1 X-Attribution: WP X-For-Spammers: blacklistme@pelissero.de cc: walter@pelissero.de Subject: Re: Acu Cobol 6.0 for Linux X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: walter@pelissero.de List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 18:57:16 -0000 I tried linux_kdump (from ports) and things seem to clarify a bit. I concentrated on acushare, which is the daemon that supervises inter-process locking (locking on file access) and licence verification. Whereas acushare seems to start properly, an attempt to kill it through the recommended means (not with kill(1)), yields an IPC error. On Linux strace on the daemon process shows: msgrcv(256, {1, "\254\1\0\0\6\0\0\0\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}, 100, 1, MSG_NOERROR) = 12 getpid() = 376 getuid32() = -1 ENOSYS (Function not implemented) msgctl(256, IPC_STAT, 0xbffffa54) = 0 msgsnd(256, {428, "x\1\0\0\6\0\0\0\6\0\0\0"}, 12, 0) = 0 That is, msgrcv returns a 12 bytes long message and the daemon answers. On FreeBSD, on the other hand: 75838 acushare RET linux_ipc 12/0xc 75838 acushare CALL linux_getpid 75838 acushare RET linux_getpid 75838/0x1283e 75838 acushare CALL linux_ipc(0xe,0x50000,0x102,0,0xbfbff444,0) 75838 acushare RET linux_ipc -1 errno 22 Invalid argument 75838 acushare CALL linux_time(0xbfbff49c) 75838 acushare RET linux_time 1075830865/0x401fe051 75838 acushare CALL write(0,0x2806f000,0x4a) 75838 acushare GIO fd 0 wrote 74 bytes "acushare: 2004-02-03 18:54:25: Error replying to test message from run\ cbl " That is, linux_ipc (possibly a catch-all name for the Linux IPC functions family), returns a 12 bytes long message, but when it is supposed to do the msgctl it fails miserably with an errno 22. I couldn't make sense out of the six arguments to linux_ipc shown in the kdump. Does anyone know how to interprete them? -- walter pelissero http://www.pelissero.de