NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git] / doc / posix-headers / limits.texi
1 @node limits.h
2 @section @file{limits.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html}
5
6 Gnulib module: gethostname
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 The @code{HOST_NAME_MAX} macro is not defined on some platforms:
12 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 5.1, HP-UX 11,
13 IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, Cygwin 1.5.x, mingw, MSVC 9, Interix 3.5, BeOS.
14 @end itemize
15
16 Portability problems not fixed by Gnulib:
17 @itemize
18 @item
19 The macros @code{LLONG_MIN}, @code{LLONG_MAX}, @code{ULLONG_MAX} are not
20 defined on some platforms:
21 AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1 with gcc.
22 @item
23 The macros @code{WORD_BIT}, @code{LONG_BIT} are not defined on some platforms:
24 glibc 2.11 without @code{-D_GNU_SOURCE}, Cygwin, mingw, MSVC 9.
25 @item
26 The macro @code{SSIZE_MAX} is not defined on some platforms:
27 MSVC 9.
28 @end itemize
29
30 For @code{PATH_MAX}, Gnulib provides a module @code{pathmax} with a header
31 file @code{"pathmax.h"}.  It defines @code{PATH_MAX} to a constant on
32 platforms with a file name length limit.