summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/execve.2
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-26 01:54:08 +0000
committerguenther <guenther@openbsd.org>2015-08-26 01:54:08 +0000
commitb3b7ef2e4e6be9caa31c33f1642745eba9e6b35d (patch)
tree81be9910dee3a3339f55d5edfa25d7c588d02bb8 /lib/libc/sys/execve.2
parentReplace clock_gettime UPTIME with MONOTONIC to improve worm portability. (diff)
downloadwireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.tar.xz
wireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.zip
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/execve.2')
-rw-r--r--lib/libc/sys/execve.220
1 files changed, 3 insertions, 17 deletions
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