diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-07 07:17:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-07 07:17:57 +0000 |
commit | 4e96377228ca04c54bdc4aec8116d85f74e15834 (patch) | |
tree | 2bc8d849fde3727add9392d8f2a95f71c02fed16 /lib/libc/sys | |
parent | a7879e1dacba108b617cc911081400e53cca0155 (diff) |
replacement pipe() system call; copies data into place inside kernel, so
that EFAULT return value is possible
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/Lint_pipe.c | 17 | ||||
-rw-r--r-- | lib/libc/sys/Makefile.inc | 10 |
2 files changed, 5 insertions, 22 deletions
diff --git a/lib/libc/sys/Lint_pipe.c b/lib/libc/sys/Lint_pipe.c deleted file mode 100644 index df07e3e95b3..00000000000 --- a/lib/libc/sys/Lint_pipe.c +++ /dev/null @@ -1,17 +0,0 @@ -/* $OpenBSD: Lint_pipe.c,v 1.1 1998/02/08 22:45:10 tholo Exp $ */ -/* $NetBSD: Lint_pipe.c,v 1.1 1997/11/06 00:52:59 cgd Exp $ */ - -/* - * This file placed in the public domain. - * Chris Demetriou, November 5, 1997. - */ - -#include <unistd.h> - -/*ARGSUSED*/ -int -pipe(filedes) - int filedes[2]; -{ - return (0); -} diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 2d88002a700..91a714f31e3 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.29 1999/05/22 21:27:21 weingart Exp $ +# $OpenBSD: Makefile.inc,v 1.30 1999/06/07 07:17:56 deraadt Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -6,16 +6,16 @@ .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/sys ${LIBCSRCDIR}/sys # modules with non-default implementations on at least one architecture: -SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S \ +SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S \ sbrk.S sigpending.S sigprocmask.S sigreturn.S \ sigsuspend.S syscall.S LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ - Lint_pipe.c Lint_sbrk.c \ + Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ Lint_sigsuspend.c Lint_syscall.c DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ - Lint_pipe.c Lint_sbrk.c \ + Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ Lint_sigsuspend.c Lint_syscall.c @@ -43,7 +43,7 @@ ASM= accept.o access.o acct.o adjtime.o bind.o chdir.o chflags.o chmod.o \ mount.o mprotect.o msgctl.o msgget.o msgrcv.o msgsnd.o msync.o \ munlock.o munmap.o nanosleep.o nfssvc.o \ ntp_gettime.o ntp_adjtime.o \ - open.o pathconf.o poll.o profil.o quotactl.o \ + open.o pathconf.o pipe.o poll.o profil.o quotactl.o \ read.o readlink.o readv.o reboot.o recvfrom.o recvmsg.o rename.o \ revoke.o rfork.o \ rmdir.o select.o semconfig.o semget.o semop.o sendmsg.o sendto.o \ |