Home | History | Annotate | Download | only in include
History log of /src/sys/arch/mips/include/limits.h
RevisionDateAuthorComments
 1.29  16-Mar-2024  christos make all QUAD constants look the same.
 1.28  26-Jul-2020  simonb #define<tab>
Nuke trailing whitespace.
 1.27  21-Jan-2019  dholland Fix wrong scoping of {U,}LLONG_MAX. More cases, not just amd64.
PR 53298 from Roberto E. Vargas Caballero.
 1.26  21-Apr-2014  matt branches: 1.26.26; 1.26.28;
Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
 1.25  11-Apr-2013  christos branches: 1.25.4; 1.25.8;
add missing SSIZE_MIN
 1.24  28-Mar-2012  christos branches: 1.24.2;
- Normalize inclusion protection (remove)
- Move CHAR_{MIN,MAX} to a common file.
- Fix broken comments
 1.23  07-Jun-2010  tnozaki branches: 1.23.8; 1.23.12;
1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
prepareing for next libc major crunk.
4. bump libc minor version.
 1.22  17-Oct-2007  garbled branches: 1.22.20; 1.22.40; 1.22.42;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.21  31-Aug-2007  drochner Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
 1.20  11-Dec-2005  christos branches: 1.20.30; 1.20.38; 1.20.44; 1.20.48; 1.20.50;
merge ktrace-lwp.
 1.19  07-Aug-2003  agc branches: 1.19.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.18  28-Apr-2003  bjh21 branches: 1.18.2;
Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.17  30-Nov-2002  simonb Standardise on #ifdef _MIPS_<header>_H_ for multiple inclusion tests.
 1.16  03-Nov-2002  thorpej Add LP64 limits.
 1.15  04-May-2001  simonb branches: 1.15.8;
Be consistent with limit constants:
- use "U" suffix for unsigned constants
- use "L" suffix for long constants
- use "UL" suffix for unsigned long constants
- use hexadecimal instead of decimal

Fixes build problems with vi (now that warnings/errors are enabled) on
mips, powerpc and arm platforms.
 1.14  08-Aug-2000  tshiozak branches: 1.14.2;
Preparation for the future introduction of multibyte locale.
- MB_LEN_MAX is increased to 32.
- To ensure binary compatibility for old executables
under multibyte locale, versioned setlocale is added.
- __mb_len_cur definision is added in setlocale.c
and enable it in stdlib.h .
It is also important for multibyte locale stuffs,
but I just forgot.
 1.13  07-Mar-2000  kleink branches: 1.13.2; 1.13.4;
Define ISO C99 (unsigned) long long (min, max) symbols.
VS: ----------------------------------------------------------------------
 1.12  06-Aug-1998  kleink branches: 1.12.14;
_POSIX_SOURCE -> _POSIX_C_SOURCE
 1.11  21-Feb-1998  jonathan Pull up duplicated CPP definitions from float.h rev 1.10:
>DBL_MIN and DBL_MAX were less precise than they should have been.
 1.10  09-Jan-1998  perry multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom)
 1.9  19-Mar-1996  jonathan branches: 1.9.16;
Remove pmax-specific CLK_TICK to prepare for moving to sys/arch/mips.
 1.8  28-Mar-1995  jtc KERNEL -> _KERNEL
 1.7  15-Nov-1994  dean put #ifdef KERNEL around CLK_TCK define
 1.6  26-Oct-1994  cgd new RCS ID format.
 1.5  05-Oct-1994  jtc Add constants required by XPG3
 1.4  27-May-1994  glass bsd 4.4-lite pmax port as ported to NetBSD
 1.3  27-May-1994  glass upgrade to bsd 4.4-lite code base. only mod is rcsids
 1.2  14-Jan-1994  deraadt some pmax updating (Terry Friedrichsen is helping on this now).
 1.1  12-Oct-1993  deraadt branches: 1.1.1;
Initial revision
 1.1.1.1  12-Oct-1993  deraadt pmax code from <ralphc@pyramid.com> & <rick@snowhite.cis.uoguelph.ca>
 1.9.16.1  10-May-1998  mycroft Pull up 1.11, per request of mhitch.
 1.12.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.13.4.1  09-Aug-2000  tshiozak pull up the following changes (approved by thorpej):
> cvs rdiff -r1.9 -r1.10 basesrc/include/locale.h
> cvs rdiff -r1.45 -r1.46 basesrc/include/stdlib.h
> cvs rdiff -r1.16 -r1.17 basesrc/lib/libc/locale/Makefile.inc
> cvs rdiff -r1.17 -r1.18 basesrc/lib/libc/locale/setlocale.c
> cvs rdiff -r0 -r1.2 basesrc/lib/libc/locale/setlocale_sb.c
> cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/alpha/include/limits.h
> cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/arm26/include/limits.h
> cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/arm32/include/limits.h
> cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/i386/include/limits.h
> cvs rdiff -r1.12 -r1.13 syssrc/sys/arch/m68k/include/limits.h
> cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/mips/include/limits.h
> cvs rdiff -r1.10 -r1.11 syssrc/sys/arch/pc532/include/limits.h
> cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/powerpc/include/limits.h
> cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/sh3/include/limits.h
> cvs rdiff -r1.11 -r1.12 syssrc/sys/arch/sparc/include/limits.h
> cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/sparc64/include/limits.h
> cvs rdiff -r1.9 -r1.10 syssrc/sys/arch/vax/include/limits.h
>
> Outline:
>
> Preparation for the future introduction of multibyte locale.
> - MB_LEN_MAX is increased to 32.
> - To ensure binary compatibility for old executables
> under multibyte locale, versioned setlocale is added.
> - __mb_len_cur definision is added in setlocale.c
> and enable it in stdlib.h .
> It is also important for multibyte locale stuffs,
> but I just forgot.
 1.13.2.1  28-May-2000  minoura Citrus Project XPG4DL, an implementation of I18N (locale) framework,
is imported.
 1.14.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.15.8.3  11-Dec-2002  thorpej Sync with HEAD.
 1.15.8.2  11-Nov-2002  nathanw Catch up to -current
 1.15.8.1  04-May-2001  nathanw file limits.h was added on branch nathanw_sa on 2002-11-11 22:00:28 +0000
 1.18.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1  03-Aug-2004  skrll Sync with HEAD
 1.19.16.1  03-Sep-2007  yamt sync with head.
 1.20.50.1  06-Nov-2007  matt sync with HEAD
 1.20.48.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.20.44.1  03-Sep-2007  skrll Sync with HEAD.
 1.20.38.1  03-Oct-2007  garbled Sync with HEAD
 1.20.30.1  09-Oct-2007  ad Sync with head.
 1.22.42.1  03-Jul-2010  rmind sync with head
 1.22.40.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.22.20.1  11-Aug-2010  yamt sync with head.
 1.23.12.1  05-Apr-2012  mrg sync to latest -current.
 1.23.8.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.23.8.1  17-Apr-2012  yamt sync with head
 1.24.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.2.1  23-Jun-2013  tls resync from head
 1.25.8.1  10-Aug-2014  tls Rebase.
 1.25.4.1  18-May-2014  rmind sync with head
 1.26.28.1  10-Jun-2019  christos Sync with HEAD
 1.26.26.1  26-Jan-2019  pgoyette Sync with HEAD

RSS XML Feed