]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
execve.2: point to exec(3) early
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 25 May 2022 19:30:04 +0000 (21:30 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Wed, 25 May 2022 19:34:02 +0000 (21:34 +0200)
Most people actually want exec(3) (or one of its aliases);
the minutiae are a separate, rarer, concern, and execve(2) hijacks
man execve from all the other exec(3) aliases
(similarly to exec(1posix), but it's at least obvious in that case that
 you got the wrong page)

Reported-in: https://twitter.com/NireBryce/status/1529538043039850499
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/execve.2

index 19a8f1dcef9a1ba50b709bbdd171a797f9f4e77b..e47e27d700123d1f0e505527ee60c25f88a477a2 100644 (file)
@@ -66,6 +66,14 @@ The
 .I envp
 array must be terminated by a NULL pointer.
 .PP
+This manual page describes the Linux system call in detail;
+for an overview of the nomenclature and the many, often preferable,
+standardised variants of this function provided by libc,
+including ones that search the
+.B PATH
+environment variable, see
+.BR exec (3).
+.PP
 The argument vector and environment can be accessed by the
 new program's main function, when it is defined as:
 .PP