From owner-freebsd-emulation Sat Jan 9 11:15:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29928 for freebsd-emulation-outgoing; Sat, 9 Jan 1999 11:15:11 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29917 for ; Sat, 9 Jan 1999 11:15:09 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id OAA01254; Sat, 9 Jan 1999 14:14:35 -0500 (EST) Date: Sat, 9 Jan 1999 14:14:34 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Marcel Moolenaar cc: freebsd-emulation@FreeBSD.ORG Subject: Re: sendmsg() not working?! In-Reply-To: <36973111.31497B15@scc.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 9 Jan 1999, Marcel Moolenaar wrote: > Brian Feldman wrote: > > > > I'm working on getting WINE to play properly, using clone() and all, > > but after resolving how to set the LDT (I added two new LINUX syscalls instead > > of trying to fix the current Linux ldt syscall's stub), I run into a new block: > > sendmsg() returns EINVAL (!) for some reason. > > Do you have version 1.14 of linux_socket.c? The latest commit added the > functionality for sendmsg and recvmsg. Of course, I am using the very latest of everything. (Running 3.0-CURRENT). 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. > > I have a suspicious eye set on sendmsg and recvmsg myself, but that's for > another reason :-) > > > I've got all the code in an archive if anyone wants to try it, and I'm > > including the output with my instrumentation added to it as well. > > If you do have version 1.14 of linux_socket.c than I'll definitely want to > try it. Could you send me enough info in that case so I can set it up? 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. > > marcel > Brian Feldman _ __ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message