From owner-freebsd-emulation Sun Jan 10 02:26:04 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA29091 for freebsd-emulation-outgoing; Sun, 10 Jan 1999 02:26:04 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA29069 for ; Sun, 10 Jan 1999 02:25:59 -0800 (PST) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i220.ztm.euronet.nl [194.134.67.21]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id LAA25160; Sun, 10 Jan 1999 11:25:21 +0100 (MET) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.1/8.9.1) with ESMTP id LAA28840; Sun, 10 Jan 1999 11:24:47 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <36987FEF.1CB35E1F@scc.nl> Date: Sun, 10 Jan 1999 11:24:47 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Brian Feldman CC: freebsd-emulation@FreeBSD.ORG Subject: Re: sendmsg() not working?! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Brian Feldman wrote: > There's no real extra functionality, sendmsg in linux is exactly the same, > binary-compatible with that of FreeBSD. When groping through the kernel to > find out why sendmsg() can return EINVAL, I can't seem to find a reason. The only visible difference is the flags field the msghdr struct. Linux has some incompatible defines. Your test program has flags=0 though. > I have the tarchive here, but you need to first add Linux system calls 183 > and 184 to test it out (linux_i386_get_ldt and linux_i386_set_ldt, respectively) > or you won't be able to use the LDT functions. The functions are already > implemented elsewhere, so it's not that hard to add them and recompile/reload > the Linux module. Once you add syscall 183 and 184 (183/get can just be a stub), > let me know and I'll find some place to slap down the (*cough* 9 megabyte) > tar.gz. Sounds like a lot of unnecessary overhead. I've Oracle Application Server here which (as far as I can see) blocks in the sendmsg call. The only thing I can do at that time is killing it. I think I'll use that or use some sort of special test programs (like yours) to investigate. If there is such a need, I can always choose to implement the LDT functionality and ask politely if you could slap down the archive somewhere. I'll keep you informed of any progress... marcel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message