HP-UX Reference (11i v2 07/12) - 5 Miscellaneous (vol 9)
l
limits(5) limits(5)
Number of bits in a long
LONG_BIT 32 +
Max decimal value of a long
LONG_MAX
2147483647 +
Min decimal value of a long
LONG_MIN -2147483648 -
Max number of bytes in terminal canonical input
line
MAX_CANON 512 +*
Max number of bytes in terminal input queue
MAX_CHAR MAX_INPUT =*
Max number of bytes in terminal input queue
MAX_INPUT 512 +*
Max number of bytes in a path name component
NAME_MAX 14 +*
Max value of "digits" in calls to the NLS printf(3S)
and scanf(3S) functions
NL_ARGMAX 9=
Max message number in an NLS message catalog
NL_MSGMAX 32767 +
Max set number in an NLS message catalog
NL_SETMAX 255 +
Max number of bytes in an NLS message string
NL_TEXTMAX 8192 +
Max number of supplementary groups per process
NGROUPS_MAX 20 +
Max number of files a process can have open
OPEN_MAX 60 +*
Max number of chars in a password
PASS_MAX
8+
Max number of characters in a path name exclud-
ing the null terminator
PATH_MAX 1023 +*
Max value for a process IDPID_MAX 30000 +
Max number of bytes atomic in write to a pipePIPE_BUF 8192 +*
Max number of bytes writable to a pipe in one
write
PIPE_MAX INT_MAX +
Max number of simultaneous processes on systemPROC_MAX 84 +-*
Max integer value of a signed char
SCHAR_MAX 127 =
Min integer value of a signed charSCHAR_MIN -128 =
Max decimal value of a shortSHRT_MAX 32767 +
Min decimal value of a shortSHRT_MIN -32768 -
Number of bytes in a physical I/O blockSTD_BLK 512 +
Max process ID of system processesSYSPID_MAX 4+-*
Length of strings returned by uname(2)
SYS_NMLN 8+*
Max number of files open on systemSYS_OPEN 120
+-*
Max number of unique names generated by
tmpnam(3S)
TMP_MAX 17576 +
Max integer value of an unsigned charUCHAR_MAX 255 =
Smallest unattainable value for a user or group
ID
UID_MAX 2147483647 +
Max decimal value of an unsigned intUINT_MAX 4294967295 +
Max decimal value of an unsigned longULONG_MAX 4294967295 +
Max decimal value of an unsigned shortUSHRT_MAX 65535 +
Max decimal value of an unsigned intUSI_MAX UINT_MAX =*
Number of bits in a "word" (int)WORD_BIT 32 +
EXAMPLES
UID_MAX has an HP-UX value of 2147483647 +, which means that on all HP-UX systems the smallest
unattainable value for a user or group ID is at least 2147483647. A particular system might be capable of
supporting more than 2147483647user or group IDs, in which case its <limits.h> file sets UID_MAX to
a higher value; however, any application assuming such a higher value is not guaranteed to be portable to
all HP-UX systems.
AUTHOR
limits was developed by HP.
HP-UX 11i Version 2: December 2007 Update − 2 − Hewlett-Packard Company 207