DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

limits(FP)


limits -- header file for implementation-specific constants

Syntax

#include <limits.h>

Description

The <limits.h> header file defines a list of macros that represent magnitude limitations imposed by the specific implementation of the operating system. All values are specified in decimal.
   #define  ATEXIT_MAX   37              /* max functions registered with atexit */
   #define  BC_BASE_MAX  2147483647      /* max obase values allowed by bc utility */
   #define  BC_DIM_MAX   2048            /* max elements in array in bc */
   #define  BC_SCALE_MAX 99              /* max scale value allowed by bc */
   #define  BC_STRING_MAX 1000           /* max length of string constant accepted by bc */
   #define  CHARCLASS_NAME_MAX 14        /* max number of bytes in a character class name */
   #define  CHAR_BIT     8               /* max # of bits in a "char"  */
   #define  CHAR_MAX     SCHAR_MAX       /* max value of a "char"  */
   #define  CHAR_MIN     SCHAR_MIN       /* min value of a "char"  */
   #define  COLL_WEIGHTS_MAX 6           /* max number of weights assigned to LC_COLLATE
   					 order keyword in locale definition */
   #define  DBL_DIG      15              /* decimal digits of precision  */
   #define  DBL_MAX      1.7976931348623157E+308 /* max value of a "double"  */
   #define  DBL_MIN      2.2250738585072014E-308 /* min normalized double precision number */
   #define  EXPR_NEST_MAX 127             /* max number of expressions within parentheses
   					  for expr utility */
   #define  FCHR_MAX     1048576         /* max size of a file in bytes  */
   #define  FLT_DIG      6               /* decimal digits of precision  */
   #define  FLT_MAX      ((float)3.40282347E+38F) /* max value of a "float"  */
   #define  FLT_MIN      ((float)1.17549435E-38F) /* min normalized floating point number */
   #define  INT_MAX      2147483647      /* max value of an "int"  */
   #define  INT_MIN      (-INT_MAX-1)    /* min value of an "int"  */
   #define  LINE_MAX     2048            /* max length of input line to utility */
   #define  LOGNAME_MAX  8               /* max characters in a login name  */
   #define  LONG_BIT     32              /* # of bits in a "long"  */
   #define  LONG_MAX     2147483647L     /* max value of a "long int"  */
   #define  LONG_MIN     (-LONG_MAX-1)   /* min value of a "long int"  */
   #define  MAX_CANON    256             /* max bytes in canonical line  */
   #define  MAX_INPUT    256             /* max size of a char input buffer  */
   #define  NGROUPS_MAX  8               /* max number of group ids per process */
   #define  NL_ARGMAX    32767           /* max positional parameter index  */
   #define  NL_LANGMAX   255             /* max bytes in a LANG name  */
   #define  NL_MSGMAX    32767           /* max message number  */
   #define  NL_NMAX      1               /* max bytes in N-to-1 mapping chars  */
   #define  NL_SETMAX    255             /* max set number  */
   #define  NL_TEXTMAX   2048            /* max set number  */
   #define  NZERO        20              /* default process priority  */
   #define  PAGESIZE     4096            /* Size in bytes of a page */
   #define  PAGE_SIZE    PAGESIZE        /* Same as PAGESIZE */
   #define  PASS_MAX     80              /* max characters in a password  */
   #define  PID_MAX      30000           /* max value for a process ID  */
   #define  PIPE_MAX     5120            /* max bytes written to a pipe  */
   #define  RE_DUP_MAX   255             /* max number of repeated occurrences of a reg
   					 expression using interval notation */
   #define  SCHAR_MAX    127             /* max value of a "signed char"  */
   #define  SCHAR_MIN    (-128)          /* min value of a "signed char"  */
   #define  SHRT_MAX     32767           /* max value of a "short int"  */
   #define  SHRT_MIN     (-32768)        /* min value of a "short int"  */
   #define  SSIZE_MAX    INT_MAX         /* max value of an "ssize_t"  */
   #define  STD_BLK      1024            /* bytes in a physical I/O block  */
   #define  SYSPID_MAX   1               /* max pid of system processes  */
   #define  SYS_NMLN     9               /* old size of utsname elements  */
   #define  TMP_MAX      17576           /* 26 * 26 * 26  */
   #define  TZNAME_MAX   50              /* max bytes in time zone name  */
   #define  UCHAR_MAX    255             /* max value of an "unsigned char"  */
   #define  UID_MAX      60000           /* max value for a user or group ID  */
   #define  UINT_MAX     4294967295U     /* max value of an "unsigned int"  */
   #define  ULONG_MAX    4294967295UL    /* max value of an "unsigned long int"  */
   #define  USHRT_MAX    65535           /* max value of an "unsigned short int"  */
   #define  USI_MAX      4294967295      /* max decimal value of an "unsigned"  */
   #define  WORD_BIT     32              /* # of bits in a "word" or "int"  */

© 2003 File Formats for Programming (FP)
SCO OpenServer Release 5.0.7 -- 11 February 2003