Module Name: src Committed By: christos Date: Mon Sep 16 11:03:08 UTC 2019
Modified Files: src/lib/libc/sys: execve.2 Log Message: merge the two E2BIG entries (wiz) To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/lib/libc/sys/execve.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/execve.2 diff -u src/lib/libc/sys/execve.2:1.43 src/lib/libc/sys/execve.2:1.44 --- src/lib/libc/sys/execve.2:1.43 Mon Sep 16 00:54:23 2019 +++ src/lib/libc/sys/execve.2 Mon Sep 16 07:03:08 2019 @@ -1,4 +1,4 @@ -.\" $NetBSD: execve.2,v 1.43 2019/09/16 04:54:23 wiz Exp $ +.\" $NetBSD: execve.2,v 1.44 2019/09/16 11:03:08 christos Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)execve.2 8.5 (Berkeley) 6/1/94 .\" -.Dd September 11, 2019 +.Dd September 16, 2019 .Dt EXECVE 2 .Os .Sh NAME @@ -257,13 +257,6 @@ The system call will fail and return to the calling process if: .Bl -tag -width Er -.It Bq Er E2BIG -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 262144 bytes -.Dv ( NCARGS -in -.Ao Pa sys/param.h Ac ) . .It Bq Er EACCES Search permission is denied for a component of the path prefix, the new process file is not an ordinary file, @@ -316,7 +309,12 @@ file that is currently open for writing .It Bq Er E2BIG The number of bytes in the new process' argument list is larger than the system-imposed limit. -This limit is specified by the +The default compile time limit is 262144 bytes and is specified +in the variable +.Dv NCARGS +in +.Ao Pa sys/param.h Ac +and get be read from the .Xr sysctl 3 MIB variable .Dv KERN_ARGMAX .