LIMITS(5) — NEWS-OS Programmer’s Manual
NAME
limits − header files for implementation-specific constants
SYNOPSIS
#include < limits.h>
#include < float.h>
#include < sys/limits.h>
DESCRIPTION
The header file < limits.h> specifies the sizes of intergral types as required by the proposed ANSI C standard. The header file < float.h> specifies the characteristics of floating types as required by the proposed ANSI C standard. The constants that refer to long doubles that should appear in < float.h> are not specified because RISC NEWS does not implement long doubles. The header file < sys/limits.h> is a list of magnitude limitations imposed by a specific implementation of the operating system. All values in the files are specified in decimal. The file < limits.h> contains:
#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” ∗/
The file < float.h> contains:
#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
The file < sys/limits.h> contains:
#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