summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-08-26 01:54:10 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-08-26 01:54:10 +0000
commit198876b2957c4927bee119d959edcf90dca5326c (patch)
tree4a831d17b19abcb97599a52fc3557d96e9aef824 /lib/libc/sys
parentac2a6151bdd6d28dc4f8c26284cc08a9d15466dd (diff)
Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/Makefile.inc5
-rw-r--r--lib/libc/sys/execve.220
2 files changed, 5 insertions, 20 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index d1513a50240..d89fa346cf4 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.127 2015/08/25 19:58:04 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.128 2015/08/26 01:54:09 guenther Exp $
# $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
@@ -6,7 +6,7 @@
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/sys ${LIBCSRCDIR}/sys
# modules with non-default implementations on at least one architecture:
-SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S \
+SRCS+= Ovfork.S brk.S cerror.S fork.S \
sbrk.S sigpending.S sigprocmask.S sigreturn.S \
sigsuspend.S syscall.S tfork_thread.S
@@ -235,7 +235,6 @@ MLINKS+=clock_gettime.2 clock_getres.2
MLINKS+=clock_gettime.2 clock_settime.2
MLINKS+=dup.2 dup2.2
MLINKS+=dup.2 dup3.2
-MLINKS+=execve.2 exect.2
MLINKS+=fhopen.2 fhstat.2 fhopen.2 fhstatfs.2
MLINKS+=fsync.2 fdatasync.2
MLINKS+=getgid.2 getegid.2
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 61f6b05e7cf..4eb41a96668 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.44 2015/07/28 22:48:31 deraadt Exp $
+.\" $OpenBSD: execve.2,v 1.45 2015/08/26 01:54:09 guenther Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,19 +30,16 @@
.\"
.\" @(#)execve.2 8.3 (Berkeley) 1/24/94
.\"
-.Dd $Mdocdate: July 28 2015 $
+.Dd $Mdocdate: August 26 2015 $
.Dt EXECVE 2
.Os
.Sh NAME
-.Nm execve ,
-.Nm exect
+.Nm execve
.Nd execute a file
.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft int
.Fn execve "const char *path" "char *const argv[]" "char *const envp[]"
-.Ft int
-.Fn exect "const char *path" "char *const argv[]" "char *const envp[]"
.Sh DESCRIPTION
.Fn execve
transforms the calling process into a new process.
@@ -221,14 +218,6 @@ and
.Fa argv
points to the array of character pointers
to the arguments themselves.
-.Pp
-The
-.Fn exect
-function is equivalent to
-.Fn execve
-with the additional property that it executes the file with the process
-tracing facilities enabled (see
-.Xr ptrace 2 ) .
.Sh RETURN VALUES
As the
.Fn execve
@@ -317,9 +306,6 @@ The
.Fn execve
function is expected to conform to
.St -p1003.1-2008 .
-The
-.Fn exect
-function should not be used in portable applications.
.Sh HISTORY
The predecessor of these functions, the former
.Fn exec