Date: Mon, 14 Oct 1996 02:11:49 +0200 (MET DST) From: Tor Egge <tegge@itea.ntnu.no> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/1791: syslimits.h does not allow overriding default value of ARG_MAX Message-ID: <199610140011.CAA03168@skarven.itea.ntnu.no> Resent-Message-ID: <199610140020.RAA13322@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1791 >Category: misc >Synopsis: syslimits.h does not allow overriding default value of ARG_MAX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 13 17:20:01 PDT 1996 >Last-Modified: >Originator: Tor Egge >Organization: Norwegian University of Science and Technology, Trondheim, Norway >Release: FreeBSD 2.2-CURRENT i386 >Environment: FreeBSD skarven.itea.ntnu.no 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Fri Oct 11 23:58:42 1996 root@skarven.itea.ntnu.no:/usr/src/sys/compile/SKARVEN i386 >Description: It is not possible to specify an alternative value of ARG_MAX in the kernel config file, since /usr/src/sys/sys/syslimits.h defines ARG_MAX even if it was defined. >How-To-Repeat: Compile a kernel where one line in the kernel config file says options ARG_MAX=262144 >Fix: Only define ARG_MAX if it is not already defined. Index: syslimits.h =================================================================== RCS file: /export/ftpsearch3/cvs/src/sys/sys/syslimits.h,v retrieving revision 1.6 diff -c -r1.6 syslimits.h *** syslimits.h 1994/12/03 17:36:37 1.6 --- syslimits.h 1996/10/11 21:28:38 *************** *** 37,43 **** --- 37,45 ---- #ifndef _SYS_SYSLIMITS_H_ #define _SYS_SYSLIMITS_H_ + #ifndef ARG_MAX #define ARG_MAX 65536 /* max bytes for an exec function */ + #endif #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610140011.CAA03168>