From bms@spc.org  Wed Dec 26 23:14:28 2001
Return-Path: <bms@spc.org>
Received: from bigboy.spc.org (dolly.good1.com [195.206.69.225])
	by hub.freebsd.org (Postfix) with ESMTP id 6AB3B37B419
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Dec 2001 23:14:28 -0800 (PST)
Received: from kiowa.dek.spc.org (adsl-217-154-12-3.mistral.co.uk [217.154.12.3])
	by bigboy.spc.org (Postfix) with ESMTP id 90CEB3132
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Dec 2001 07:16:03 +0000 (GMT)
Received: by kiowa.dek.spc.org (Postfix, from userid 1001)
	id 737992102C; Thu, 27 Dec 2001 07:14:27 +0000 (GMT)
Message-Id: <20011227071427.737992102C@kiowa.dek.spc.org>
Date: Thu, 27 Dec 2001 07:14:27 +0000 (GMT)
From: Bruce M Simpson <bms@spc.org>
Reply-To: Bruce M Simpson <bms@spc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: <limits.h> does not contain MAXINT on CURRENT
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         33227
>Category:       misc
>Synopsis:       <limits.h> does not contain MAXINT on CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 26 23:20:00 PST 2001
>Closed-Date:    Fri Dec 28 15:18:54 PST 2001
>Last-Modified:  Fri Dec 28 15:20:16 PST 2001
>Originator:     Bruce M Simpson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kiowa.dek.spc.org 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Mon Dec 24 04:57:54 GMT 2001 root@kiowa.dek.spc.org:/usr/src/sys/i386/compile/KIOWA i386

>Description:
	<limits.h> does not contain MAXINT. This definition still resides
	in <values.h> which is marked as depracated.

>How-To-Repeat:
	Try compiling an application which uses <values.h> as it requires
	MAXINT. When patched to use <limits.h> instead of <values.h>, it
	will not pick up the MAXINT definition, which is still in <values.h>.

	An example of such an application is GNU Font Editor (gfe).

>Fix:
	None. Over to include file maintainer?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Fri Dec 28 15:18:54 PST 2001 
State-Changed-Why:  
<limits.h> is not supposed to contain MAXINT (or MAXanything, for that matter); 
any program which expects otherwise is erroneous.  The maximum value for an 
integer is spelled INT_MAX in Standard C, and this value *is* defined in 
<limits.h>. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33227 
>Unformatted:
