Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 1999 14:14:34 -0500 (EST)
From:      Brian Feldman <green@unixhelp.org>
To:        Marcel Moolenaar <marcel@scc.nl>
Cc:        freebsd-emulation@FreeBSD.ORG
Subject:   Re: sendmsg() not working?!
Message-ID:  <Pine.BSF.4.05.9901091401480.304-100000@janus.syracuse.net>
In-Reply-To: <36973111.31497B15@scc.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901091401480.304-100000>