当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 5.3K

fork_ohos_wj / docs
关闭

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
limits-h.md 16.11 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/fork_ohos_wj/docs.git
git@gitee.com:fork_ohos_wj/docs.git
fork_ohos_wj
docs
docs
master

搜索帮助