From 508a587af7c72c21302304c2d8c31e6b40a5c1d5 Mon Sep 17 00:00:00 2001 From: jmc Date: Sat, 24 Sep 2022 15:21:21 +0000 Subject: [PATCH] macro tweaks; from josiah frentsos ok deraadt --- lib/libc/sys/execve.2 | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index 0aaa5c7691c..5d8616b3177 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: execve.2,v 1.56 2022/03/31 17:27:16 naddy Exp $ +.\" $OpenBSD: execve.2,v 1.57 2022/09/24 15:21:21 jmc Exp $ .\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)execve.2 8.3 (Berkeley) 1/24/94 .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: September 24 2022 $ .Dt EXECVE 2 .Os .Sh NAME @@ -58,22 +58,19 @@ with zero data; see .Xr elf 5 . .Pp An interpreter file begins with a line of the form: -.Bd -filled -offset indent -.Sy #!\& -.Em interpreter -.Bq Em arg -.Ed +.Pp +.D1 #! Ar interpreter Op Ar arg .Pp When an interpreter file is passed to .Fn execve , the system instead calls .Fn execve with the specified -.Em interpreter . +.Ar interpreter . If the optional -.Em arg +.Ar arg is specified, it becomes the first argument to the -.Em interpreter , +.Ar interpreter , and the original .Fa path becomes the second argument; @@ -207,9 +204,8 @@ see When a program is executed as a result of an .Fn execve call, it is entered as follows: -.Bd -literal -offset indent -main(int argc, char **argv, char **envp) -.Ed +.Pp +.Dl main(int argc, char **argv, char **envp) .Pp where .Fa argc @@ -291,7 +287,7 @@ is allowed by the imposed maximum The number of bytes in the new process's argument list is larger than the system-imposed limit. The limit in the system as released is 524288 bytes -.Pf ( Dv ARG_MAX ) . +.Pq Dv ARG_MAX . .It Bq Er EFAULT The new process file is not as long as indicated by the size values in its header. @@ -309,7 +305,7 @@ did not contain at least one element. An I/O error occurred while reading from the file system. .It Bq Er ENFILE During startup of an -.Em interpreter , +.Ar interpreter , the system file table was found to be full. .El .Sh SEE ALSO -- 2.20.1