[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-bugs
Subject: documentation/1218: execve(2) says NCARGS is 20480.
From: akr () m17n ! org
Date: 2000-04-28 20:03:09
[Download RAW message or body]
>Number: 1218
>Category: documentation
>Synopsis: execve(2) says that NCARGS is 20480 but actually it is 256 * 1024.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 28 14:00:01 MDT 2000
>Last-Modified:
>Originator: Tanaka Akira
>Organization:
net
>Release: 2.6
>Environment:
System : OpenBSD 2.6
Architecture: OpenBSD.i386
Machine : i386
>Description:
execve(2) says:
[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 20480 bytes (NCARGS in
<sys/param.h>).
But actually NCARGS is 256 * 1024.
>How-To-Repeat:
$ grep NCARGS /usr/include/sys/param.h
#define NCARGS ARG_MAX /* max bytes for an exec function */
$ grep ARG_MAX /usr/include/sys/syslimits.h
#define ARG_MAX (256 * 1024) /* max bytes for an exec function */
$
>Fix:
>Audit-Trail:
>Unformatted:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic