summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-09 16:53:45 +0000
committerbde <bde@FreeBSD.org>1997-04-09 16:53:45 +0000
commit8c5b669d734fddf7f8d8e0ab0ff8dbda2c5faafc (patch)
tree9fd31f39efcff0e9e9ccc4dcdd6d0b0adc5b5df3 /sys
parent0317bbaa7a792ec028e75ff59bd83b28e0e18e1a (diff)
downloadFreeBSD-src-8c5b669d734fddf7f8d8e0ab0ff8dbda2c5faafc.zip
FreeBSD-src-8c5b669d734fddf7f8d8e0ab0ff8dbda2c5faafc.tar.gz
Removed support for OLD_PIPE. <sys/stat.h> is now missing the hack that
supported nameless pipes being indistinguishable from fifos. We're not going back.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_descrip.c8
-rw-r--r--sys/kern/sys_pipe.c5
-rw-r--r--sys/kern/uipc_syscalls.c56
-rw-r--r--sys/sys/pipe.h6
4 files changed, 4 insertions, 71 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index a5c6d94..5f62309 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
- * $Id$
+ * $Id: kern_descrip.c,v 1.37 1997/02/22 09:39:03 peter Exp $
*/
#include <sys/param.h>
@@ -429,11 +429,9 @@ ofstat(p, uap, retval)
error = soo_stat((struct socket *)fp->f_data, &ub);
break;
-#ifndef OLD_PIPE
case DTYPE_PIPE:
error = pipe_stat((struct pipe *)fp->f_data, &ub);
break;
-#endif
default:
panic("ofstat");
@@ -481,11 +479,9 @@ fstat(p, uap, retval)
error = soo_stat((struct socket *)fp->f_data, &ub);
break;
-#ifndef OLD_PIPE
case DTYPE_PIPE:
error = pipe_stat((struct pipe *)fp->f_data, &ub);
break;
-#endif
default:
panic("fstat");
@@ -521,9 +517,7 @@ fpathconf(p, uap, retval)
return (EBADF);
switch (fp->f_type) {
-#ifndef OLD_PIPE
case DTYPE_PIPE:
-#endif
case DTYPE_SOCKET:
if (uap->name != _PC_PIPE_BUF)
return (EINVAL);
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 5beac60..53e1345 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -16,11 +16,9 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: sys_pipe.c,v 1.26 1997/03/23 03:36:24 bde Exp $
+ * $Id: sys_pipe.c,v 1.27 1997/03/24 11:52:26 bde Exp $
*/
-#ifndef OLD_PIPE
-
/*
* This file contains a high-performance replacement for the socket-based
* pipes scheme originally used in FreeBSD/4.4Lite. It does not support
@@ -1104,4 +1102,3 @@ pipeclose(cpipe)
free(cpipe, M_TEMP);
}
}
-#endif
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index 2db7778..09156f0 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.23 1997/03/23 03:36:32 bde Exp $
+ * $Id: uipc_syscalls.c,v 1.24 1997/03/31 12:30:01 davidg Exp $
*/
#include "opt_ktrace.h"
@@ -1063,60 +1063,6 @@ getsockopt(p, uap, retval)
return (error);
}
-#ifdef OLD_PIPE
-/* ARGSUSED */
-int
-pipe(p, uap, retval)
- struct proc *p;
- struct pipe_args /* {
- int dummy;
- } */ *uap;
- int retval[];
-{
- register struct filedesc *fdp = p->p_fd;
- struct file *rf, *wf;
- struct socket *rso, *wso;
- int fd, error;
-
- error = socreate(AF_UNIX, &rso, SOCK_STREAM, 0, p);
- if (error)
- return (error);
- error = socreate(AF_UNIX, &wso, SOCK_STREAM, 0, p);
- if (error)
- goto free1;
- error = falloc(p, &rf, &fd);
- if (error)
- goto free2;
- retval[0] = fd;
- rf->f_flag = FREAD | FWRITE;
- rf->f_type = DTYPE_SOCKET;
- rf->f_ops = &socketops;
- rf->f_data = (caddr_t)rso;
- error = falloc(p, &wf, &fd);
- if (error)
- goto free3;
- wf->f_flag = FREAD | FWRITE;
- wf->f_type = DTYPE_SOCKET;
- wf->f_ops = &socketops;
- wf->f_data = (caddr_t)wso;
- retval[1] = fd;
- error = unp_connect2(wso, rso);
- if (error)
- goto free4;
- return (0);
-free4:
- ffree(wf);
- fdp->fd_ofiles[retval[1]] = 0;
-free3:
- ffree(rf);
- fdp->fd_ofiles[retval[0]] = 0;
-free2:
- (void)soclose(wso);
-free1:
- (void)soclose(rso);
- return (error);
-}
-#endif
/*
* Get socket name.
*/
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h
index 3b75819..82e7b5c 100644
--- a/sys/sys/pipe.h
+++ b/sys/sys/pipe.h
@@ -18,14 +18,12 @@
* 5. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id$
+ * $Id: pipe.h,v 1.8 1997/02/22 09:45:40 peter Exp $
*/
#ifndef _SYS_PIPE_H_
#define _SYS_PIPE_H_
-#ifndef OLD_PIPE
-
#ifndef KERNEL
#include <sys/time.h> /* for struct timeval */
#include <sys/select.h> /* for struct selinfo */
@@ -114,6 +112,4 @@ struct pipe {
int pipe_stat __P((struct pipe *pipe, struct stat *ub));
#endif
-#endif /* !OLD_PIPE */
-
#endif /* !_SYS_PIPE_H_ */
OpenPOWER on IntegriCloud