1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-16 01:22:18 +03:00
Files
gnulib/doc/posix-headers/limits.texi
Paul Eggert 0d12d16ab3 limits-h: new module
This adds ISO/IEC TS 18661-1:2014 support to limits.h.
* MODULES.html.sh: Add limits-h,and move size_max to stdint section.
* doc/posix-headers/limits.texi: Document new module.
* lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
* modules/limit-h-tests, tests/test-limits-h.c: New files.
2016-09-16 00:46:11 -07:00

40 lines
1.3 KiB
Plaintext

@node limits.h
@section @file{limits.h}
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html}
Gnulib module: gethostname
Portability problems fixed by Gnulib:
@itemize
@item
The @code{HOST_NAME_MAX} macro is not defined on some platforms:
Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 5.1, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, Cygwin 1.5.x, mingw, MSVC 9, Interix 3.5, BeOS.
@item
Macros like @code{CHAR_WIDTH} are not defined on some platforms:
glibc 2.24, many others.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
The macros @code{LLONG_MIN}, @code{LLONG_MAX}, @code{ULLONG_MAX} are not
defined on some platforms:
AIX 5.1, HP-UX 11, IRIX 6.5, OpenVMS, OSF/1 5.1 with gcc.
@item
The macros @code{WORD_BIT}, @code{LONG_BIT} are not defined on some platforms:
glibc 2.11 without @code{-D_GNU_SOURCE}, Cygwin, mingw, MSVC 9.
@item
The macro @code{SSIZE_MAX} has the wrong type,
albeit with the correct value:
32-bit glibc 2.24 (on some architectures), Cygwin 2.5.2.
@item
The macro @code{SSIZE_MAX} is not defined on some platforms:
MSVC 9.
@end itemize
For @code{PATH_MAX}, Gnulib provides a module @code{pathmax} with a header
file @code{"pathmax.h"}. It defines @code{PATH_MAX} to a constant on
platforms with a file name length limit.