Name | Description | Minimum acceptable value | Typical value |
---|---|---|---|
CHAR_BIT | bits in a char | 8 | 8 |
CHAR_MAX | max value of char | (see later) | 127 |
CHAR_MIN | min value of char | (see later) | 128 |
SCHAR_MAX | max value of signed char | 127 | 127 |
SCHAR_MIN | min value of signed char | 127 | 128 |
UCHAR_MAX | max value of unsigned char | 255 | 255 |
INT_MAX | max value of int | 32,767 | 2,147,483,647 |
INT_MIN | min value of int | 32,767 | 2,147,483,648 |
UINT_MAX | max value of unsigned int | 65,535 | 4,294,967,295 |
SHRT_MIN | min value of short | 32,767 | 32,768 |
SHRT_MAX | max value of short | 32,767 | 32,767 |
USHRT_MAX | max value of unsigned short | 65,535 | 65,535 |
LONG_MAX | max value of long | 2,147,483,647 | 2,147,483,647 |
LONG_MIN | min value of long | 2,147,483,647 | 2,147,483,648 |
ULONG_MAX | max value of unsigned long | 4,294,967,295 | 4,294,967,295 |
LLONG_MAX | max value of long long | 9,223,372,036,854,775,807 | 9,223,372,036,854,775,807 |
LLONG_MIN | min value of long long | 9,223,372,036,854,775,807 | 9,223,372,036,854,775,808 |
ULLONG_MAX | max value of unsigned long long | 18,446,744,073,709,551,615 | 18,446,744,073,709,551,615 |
MB_LEN_MAX | max number of bytes in a multibyte character constant | 1 | 16 |
Name | Description: minimum acceptable value for | Value |
---|---|---|
_POSIX_ARG_MAX | exec函数的参数长度 | 4,096 |
_POSIX_CHILD_MAX | 每个实际用户ID的子进程数 | 25 |
_POSIX_HOST_NAME_MAX | gethostname函数返回的主机名最大长度 | 255 |
_POSIX_LINK_MAX | 指向一个文件的链接数 | 8 |
_POSIX_LOGIN_NAME_MAX | 登陆名的最大长度 | 9 |
_POSIX_MAX_CANON | 终端规范输入队列的字节数 | 255 |
_POSIX_MAX_INPUT | 终端输入队列的可用空间 | 255 |
_POSIX_NAME_MAX | 文件名中的字节数,不包括终止字符null | 14 |
_POSIX_NGROUPS_MAX | 每个进程同时的添加组ID数 | 8 |
_POSIX_OPEN_MAX | 每个进程的打开文件数 | 20 |
_POSIX_PATH_MAX | 路径名中的字节数,包括终止字符null | 256 |
_POSIX_PIPE_BUF | 能原子地写到管道的字节数 | 512 |
_POSIX_RE_DUP_MAX | 使用间隔表示法\{m,n\}时,regexec和regcomp函数允许的基本正则表达式的重复出现次数 | 255 |
_POSIX_SSIZE_MAX | 能存储在ssize_t对象中的值 | 32,767 |
_POSIX_STREAM_MAX | 一个进程能同时打开的标准I/O流数 | 8 |
_POSIX_SYMLINK_MAX | 符号链接中的字节数 | 255 |
_POSIX_SYMLOOP_MAX | 在解析路径名时,可遍历的符号链接数 | 8 |
_POSIX_TTY_NAME_MAX | 终端设备名长度,包括终止字符null | 9 |
_POSIX_TZNAME_MAX | 时区名字节数 | 6 |