Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ limits(5-SysV) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

LIMITS(5-SysV)  —  NEWS-OS Programmer’s Manual

名称

limits − インプリメンテーション固有の定数用のヘッダファイル

形式

#include <limits.h>
#include <float.h>
#include <sys/limits.h>

解説

ヘッダファイル <limits.h> は、提案されている ANSI C 規格により要求されるような整数型のサイズを指定します。 ヘッダファイル <float.h> は、提案されている ANSI C 規格により要求されるような浮動タイプの特性を 指定します。 <float.h> に現れるべき long double を参照する定数は、指定されません。 なぜならば、RISC NEWS は、long double をインプリメントしないからです。 ヘッダファイル <sys/limits.h> は、オペレーティングシステムの特定のインプリメンテーションにより 課せられる絶対値制限のリストです。 ファイル中のすべての値は、10 進数で指定されます。 ファイル <limits.h> は以下を含みます。

#defineCHAR_BIT8/∗ # of bits in a “char” ∗/
#defineSCHAR_MIN(-128)/∗ min integer value of a “signed char” ∗/
#defineSCHAR_MAX(+127)/∗ max integer value of a “signed char” ∗/
#defineUCHAR_MAX255/∗ max integer value of an “unsigned char” ∗/
#defineCHAR_MIN0/∗ min integer value of a “char” ∗/
#defineCHAR_MAX255/∗ max integer value of a “char” ∗/
#defineSHRT_MIN(-32768)/∗ min decimal value of a “short” ∗/
#defineSHRT_MAX(+32767)/∗ max decimal value of a “short” ∗/
#defineUSHRT_MAX65535/∗ max decimal value of an “unsigned short” ∗/
#defineINT_MIN(-2147483648)/∗ min decimal value of an “int” ∗/
#defineINT_MAX(+2147483647)/∗ max decimal value of a “int” ∗/
#defineUINT_MAX4294967295/∗ max decimal value of an “unsigned int” ∗/
#defineLONG_MIN(-2147483648)/∗ min decimal value of a “long” ∗/
#defineLONG_MAX(+2147483647)/∗ max decimal value of a “long” ∗/
#defineULONG_MAX4294967295/∗ max decimal value of an “unsigned long” ∗/
 #defineUSI_MAX4294967295/∗ max decimal value of an “unsigned” ∗/
#defineWORD_BIT32/∗ # of bits in a “word” or “int” ∗/

ファイル <float.h> は以下を含みます。

#defineFLT_RADIX2/∗ radix of exponent representation ∗/
#defineFLT_ROUNDS1/∗ addition rounds (>0 implemention-defined) ∗/
/∗ number of base-FLT_RADIX digits in the floating point mantissa ∗/
#defineFLT_MANT_DIG24
#defineDBL_MANT_DIG53
/∗ minimum positive floating-point number x such that 1.0 + x ≠ 1.0 ∗/
#defineFLT_EPSILON1.19209290e-07
#defineDBL_EPSILON2.2204460492503131e-16
/∗ number of decimal digits of precision ∗/
#define FLT_DIG6
#define DBL_DIG15
/∗ minimum negitive integer such that FLT_RADIX raised to that power minus 1
is a normalized floating point number ∗/
#define FLT_MIN_EXP-125
#define DBL_MIN_EXP-1021
/∗ minimum normalized positive floating-point number ∗/
#define FLT_MIN1.17549435e-38
#define DBL_MIN2.225073858507201e-308
/∗ minimum negative integer such that 10 raised to that power is in the range of
normalized floating-point numbers ∗/
#define FLT_MIN_10_EXP-37
#define DBL_MIN_10_EXP-307
/∗ maximum integer such that FLT_RADIX raised to that power minus 1 is a
representable finite floating-point number ∗/
#defineFLT_MAX_EXP+128
#defineDBL_MAX_EXP+1024
/∗ maximum representable finite floating-point number ∗/
#define FLT_MAX3.40282347e+38
#define DBL_MAX1.797693134862316e+308
/∗ maximum integer such that 10 raised to that power is in the range of representable
finite floating-point numbers ∗/
#define FLT_MAX_10_EXP+38
#define DBL_MAX_10_EXP+308

ファイル <sys/limits.h> は以下を含みます。

#defineARG_MAX5120/∗ max length of arguments to exec ∗/
#defineCHILD_MAX25/∗ max # of processes per user id ∗/
#defineCLK_TCK100/∗ # of clock ticks per second ∗/
#defineFCHR_MAX1048576/∗ max size of a file in bytes ∗/
#defineLINK_MAX32767/∗ max # of links to a single file ∗/
#defineNAME_MAX14/∗ max # of characters in a file name ∗/
#defineOPEN_MAX20/∗ max # of files a process can have open ∗/
#definePASS_MAX8/∗ max # of characters in a password ∗/
#definePATH_MAX256/∗ max # of characters in a path name ∗/
#definePID_MAX30000/∗ max value for a process ID ∗/
#definePIPE_BUF5120/∗ max # bytes atomic in write to a pipe ∗/
#definePIPE_MAX5120/∗ max # bytes written to a pipe in a write ∗/
#defineSHRT_MAX32767/∗ max decimal value of a “short” ∗/
#defineSHRT_MIN-32767/∗ min decimal value of a “short” ∗/
#defineSTD_BLK1024/∗ # bytes in a physical I/O block ∗/
#defineSYS_NMLN9/∗ # of chars in uname-returned strings ∗/
#defineUID_MAX30000/∗ max value for a user or group ID ∗/

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026