HP-UX Reference (11i v2 04/09) - 5 Miscellaneous Topics (vol 9)

l
limits(5) limits(5)
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 com-
ponent
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
excluding the null terminator
PATH_MAX 1023 +*
Max value for a process ID
PID_MAX 30000 +
Max number of bytes atomic in write to a
pipe
PIPE_BUF 8192 +*
Max number of bytes writable to a pipe in
one write
PIPE_MAX INT_MAX +
Max number of simultaneous processes on
system
PROC_MAX 84 +-*
Max integer value of a signed char
SCHAR_MAX 127 =
Min integer value of a signed char
SCHAR_MIN -128 =
Max decimal value of a short
SHRT_MAX 32767 +
Min decimal value of a short
SHRT_MIN -32768 -
Number of bytes in a physical I/O block
STD_BLK 512 +
Max process ID of system processes
SYSPID_MAX 4+-*
Length of strings returned by uname(2)
SYS_NMLN 8+*
Max number of files open on system
SYS_OPEN 120 +-*
Max number of unique names generated by
tmpnam(3S)
TMP_MAX 17576 +
Max integer value of an unsigned char
UCHAR_MAX 255 =
Smallest unattainable value for a user or
group ID
UID_MAX 2147483647 +
Max decimal value of an unsigned int
UINT_MAX 4294967295 +
Max decimal value of an unsigned long
ULONG_MAX 4294967295 +
Max decimal value of an unsigned short
USHRT_MAX 65535 +
Max decimal value of an unsigned int
USI_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 2147483647 user 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.
Section 5170 Hewlett-Packard Company 2 HP-UX 11i Version 2: September 2004