1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
limits-h.md 16.57 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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_MAX   0x7fffffffL

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   (2UL*LONG_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   (2ULL*LLONG_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.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助