linux_connect() is broken

2001-01-21 Thread Adrian Chadd
Hi, Martin Blapp ([EMAIL PROTECTED]) and I have been poking at a seemingly broken linux_connect() in the linux emulation suite. Now I'm actually curious, because there's a little voodoo going on which I don't quite understand and I'd appreciate some clued people explaining it. * inside a syscal

RE: linux_connect() is broken

2001-01-21 Thread Martin Blapp
Also have a look at: http://www.FreeBSD.org/cgi/cvsweb.cgi/syssrc/sys/compat/ linux/common/linux_socket.c?rev=1.21.2.2 &content-type=text/x-cvsweb-markup&cvsroot=netbsd (Add these three lines together) There is a comment form linux_connect(): */ * We should only let this call succeed once p

Re: linux_connect() is broken

2001-01-21 Thread Dag-Erling Smorgrav
Adrian Chadd <[EMAIL PROTECTED]> writes: > * inside a syscall, if I return (value); what happens? errno gets set to that value, and if it's non-zero, the userland syscall code returns -1 to the caller. > * inside a syscall, if I set p->p_retval[0] to something, and then > return (value); what