limits.h

Overview

Related Modules:

UTILS

Description:

Declares commonly used macro values.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value Description
CHAR_MIN   0 Minimum value of type char.
CHAR_MAX   255 Maximum value of type char.
CHAR_BIT   8 Number of bits in type char.
SCHAR_MIN   (-128) Minimum value of type signed char.
SCHAR_MAX   127 Maximum value of type signed char.
UCHAR_MAX   255 Maximum value of type unsigned char.
SHRT_MIN   (-1-0x7fff) Minimum value of type short.
SHRT_MAX   0x7fff Maximum value of type short.
USHRT_MAX   0xffff Maximum value of type unsigned short.
INT_MIN   (-1-0x7fffffff) Minimum value of type int.
INT_MAX   0x7fffffff Maximum value of type int.
UINT_MAX   0xffffffffU Maximum value of type unsigned int.
LONG_MAX0x7fffffffL Maximum value of type long.
LONG_MIN   (-LONG_MAX-1) Minimum value of type long.
LONG_MAX   LONG_MAX Maximum value of type long.
ULONG_MAX   (2ULLONG_MAX+1) Maximum value of type unsigned long.
LLONG_MIN   (-LLONG_MAX-1) Minimum value of type long long.
LLONG_MAX   0x7fffffffffffffffLL Maximum value of type long long.
ULLONG_MAX   (2ULLLLONG_MAX+1) Maximum value of type unsigned long long.
PIPE_BUF   4096 Buffer length of pipe.
NAME_MAX   255 Maximum length of file or directory name.
PATH_MAX   256 Maximum length of the whole file or directory path.
ARG_MAX   4096 Maximum length of parameter arg.
IOV_MAX   1024 Maximum vector number.
WORD_BIT   32 Number of bits in word.
SSIZE_MAX   LONG_MAX Maximum value of type ssize_t.
HOST_NAME_MAX   255 Maximum length of host name.
LONG_BIT   32 Number of bits in long.
MQ_PRIO_MAX   1 Maximum priority number of message queue.
PAGESIZE   4096 Page size.
PAGE_SIZE   PAGESIZE Page size.