diff options
author | peter <peter@FreeBSD.org> | 1996-08-24 03:35:13 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-24 03:35:13 +0000 |
commit | ccfe8b12a953b62cb2f4d604a888d40bd0524026 (patch) | |
tree | e445def06ceb7710db7fdab532d9fa7760c1d139 /sys | |
parent | 8451e2f0fc6ff7a4beb55f818a36fdec290c8b43 (diff) | |
download | FreeBSD-src-ccfe8b12a953b62cb2f4d604a888d40bd0524026.zip FreeBSD-src-ccfe8b12a953b62cb2f4d604a888d40bd0524026.tar.gz |
The socketpair(0 syscall is bogusly returning the fd numbers through
the primary and secondary return codes, causing it to not behave as
documented. This probably originates from the ancient BSD kernels that
had pipe(2) implemented by socketpair(2), there are no binaries left that
we can run that do this.
Pointed out by: Robert Withrow <witr@rwwa.com>, PR#731
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index a560b2f..cb93ca9 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 - * $Id: uipc_syscalls.c,v 1.17 1996/05/09 20:14:59 wollman Exp $ + * $Id: uipc_syscalls.c,v 1.18 1996/07/11 16:32:02 wollman Exp $ */ #include "opt_ktrace.h" @@ -370,8 +370,10 @@ socketpair(p, uap, retval) goto free4; } error = copyout((caddr_t)sv, (caddr_t)uap->rsv, 2 * sizeof (int)); +#if 0 /* old pipe(2) syscall compatability, unused these days */ retval[0] = sv[0]; /* XXX ??? */ retval[1] = sv[1]; /* XXX ??? */ +#endif return (error); free4: ffree(fp2); |