OpenBSD CVS

CVS log for src/sys/sys/limits.h


[BACK] Up to [local] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 30 20:21:10 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, HEAD
Changes since 1.9: +14 -8 lines
Diff to previous 1.9 (colored)

Further standards compliance fixes: export LONG_BIT, WORD_BIT, and
NL_{ARG,LANG,MSG,SET,TEXT}MAX with newer POSIX.
Hide {FLT,DBL}_{DIG,MAX,MIN} and {PASS,TMP,NL_N}_MAX with newer XPG.
Make _POSIX_NGROUPS_MAX and _POSIX_OPEN_MAX conditional on the POSIX
version, like _POSIX_TZNAME_MAX already is.
Add some more _POSIX_* and _XOPEN_* 'specified' limits.

ok kettenis@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 26 16:12:42 2012 UTC (11 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +20 -31 lines
Diff to previous 1.8 (colored)

create new machine/_float.h which is namespace clean.  create a new
MI float.h which pulls in and defines the values that are needed from
there, and repair sys/limits.h so that it defines the values it needs
as well (depending on POSIX version, XPG version, etc).  guenther has
a more exact selection of that coming for limits.h.
this also fixes a few mistakes for the vax.
reviewed by kettenis and guenther.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 27 19:54:35 2009 UTC (14 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Move MB_LEN_MAX into the machine-independent sys/limits.h header,
rather than defining it separately for each architecture.
Also set it to 4, to accommodate for future UTF-8 support (rfc3629).

Diff by stsp, committing to catch the libc major bump

ok kettenis@, guenther@

Revision 1.7 / (download) - annotate - [select for diffs], Mon May 7 15:29:44 2007 UTC (17 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

UCHAR_MAX and USHRT_MAX should not have a 'U' suffix.
That is only needed for constants that would not fit in a signed int.
This is also consistent with UINT8_MAX and UINT16_MAX.
Fixes PR 5467, submitted by ikz isr.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:23 2005 UTC (18 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.5: +6 -5 lines
Diff to previous 1.5 (colored)

First step in include files overhaul.  Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE.  Also fix several namespace
pollution issues, including the byte order defines.  OK deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 16 13:10:57 2004 UTC (19 years, 8 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored)

Rely upon __LP64__ to choose {U,}LONG_{MIN,MAX} values, rather than a
homegrown define.
ok deraadt@

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:32:33 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync UBC branch to -current

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 11 14:46:41 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, SMP_SYNC_B, SMP_SYNC_A, SMP, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Branch point for: UBC
Changes since 1.3: +20 -17 lines
Diff to previous 1.3 (colored)

Avoid multiple definitions of macros in float.h and limits.h.  This
is a long-standing problem that recently showed up on vax because
due to some indirection cpp no longer believes the definitions are
equivalent (though they really are).  From espie@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 24 22:32:57 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.2: +0 -5 lines
Diff to previous 1.2 (colored)

revert, sys/param.h will need fixing first.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 24 21:57:09 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)

Make this not directly usable from userland.
ok millert@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 24 21:53:12 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN

Introduce a new file, machine/internal_types.h, to hold that specific arch
type characteristics.

internal_types.h will contain only settings invisible from standard C, e.g.,
in the __* or _[A-Z]* namespace, and be reused by files like limits.h.

This allows us to shorten machine/limits.h greatly, as all the common defines
are now in sys/limits.h, plus a small stub in internal_types.h.

Tested on all arches as far as I know.
Approved after discussion with art, millert, deraadt, and others.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.