From owner-freebsd-bugs Sun Oct 13 17:20:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA13340 for bugs-outgoing; Sun, 13 Oct 1996 17:20:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA13322; Sun, 13 Oct 1996 17:20:02 -0700 (PDT) Resent-Date: Sun, 13 Oct 1996 17:20:02 -0700 (PDT) Resent-Message-Id: <199610140020.RAA13322@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, tegge@itea.ntnu.no Received: from istind.itea.unit.no (istind.itea.unit.no [129.241.190.12]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA12886 for ; Sun, 13 Oct 1996 17:12:07 -0700 (PDT) Received: from skarven.itea.ntnu.no (tegge@skarven.itea.ntnu.no [129.241.190.13]) by istind.itea.unit.no (8.6.12/1.9.AHJ) with ESMTP id AAA26269 for ; Mon, 14 Oct 1996 00:11:50 GMT Received: (from tegge@localhost) by skarven.itea.ntnu.no (8.7.6/8.7.3) id CAA03168; Mon, 14 Oct 1996 02:11:49 +0200 (MET DST) Message-Id: <199610140011.CAA03168@skarven.itea.ntnu.no> Date: Mon, 14 Oct 1996 02:11:49 +0200 (MET DST) From: Tor Egge Reply-To: tegge@itea.ntnu.no To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/1791: syslimits.h does not allow overriding default value of ARG_MAX Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: