Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2002 09:01:36 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Tim Robbins <tjr@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib calloc.c
Message-ID:  <20020804050136.GB11158@nagual.pp.ru>
In-Reply-To: <20020804045801.GA11158@nagual.pp.ru>
References:  <200208040411.g744Bmue027996@freefall.freebsd.org> <20020804143921.A95134@dilbert.robbins.dropbear.id.au> <20020804045801.GA11158@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 04, 2002 at 08:58:03 +0400, Andrey A. Chernov wrote:
> On Sun, Aug 04, 2002 at 14:39:21 +1000, Tim Robbins wrote:
> > On Sat, Aug 03, 2002 at 09:11:48PM -0700, Andrey A. Chernov wrote:
> > 
> > > ache        2002/08/03 21:11:48 PDT
> > > 
> > >   Modified files:
> > >     lib/libc/stdlib      calloc.c 
> > >   Log:
> > >   Nonexistent SIZE_MAX -> SIZE_T_MAX
> > 
> > -CURRENT has a SIZE_MAX in <machine/limits.h>:
> > 	/* Limit of size_t. */
> > 	#define SIZE_MAX        UINT_MAX
> > 
> > I think this is a C99 feature that hasn't been MFC'd. Anyway, I guess
> > using SIZE_T_MAX will make it easier to MFC the calloc.c change..
> 
> I don't have this in recently CVSupped -current. I got compilation error
> on calloc.c. Moreover, I just check out -current sys_i386_include/limits.h
> on freefall and no SIZE_MAX there.

Strangely I found SIZE_MAX in sys_i386_include/_stdint.h but apparently 
this file is not included into limits.h

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020804050136.GB11158>