root/include/limits.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LIMITS_H
   2 #define _LIMITS_H
   3 
   4 #define RAND_MAX 0x7ffffffd     /* don't ask - see rand.c */
   5 
   6 #define CHAR_BIT 8
   7 #define MB_LEN_MAX 1
   8 
   9 #define SCHAR_MIN (-128)
  10 #define SCHAR_MAX 127
  11 
  12 #define UCHAR_MAX 255U
  13 
  14 #ifdef __CHAR_UNSIGNED__
  15 #define CHAR_MIN 0
  16 #define CHAR_MAX UCHAR_MAX
  17 #else
  18 #define CHAR_MIN SCHAR_MIN
  19 #define CHAR_MAX SCHAR_MAX
  20 #endif
  21 
  22 #define SHRT_MIN (-32768)
  23 #define SHRT_MAX 32767
  24 
  25 #define USHRT_MAX 65535U
  26 
  27 #define INT_MIN (-2147483648)
  28 #define INT_MAX 2147483647
  29 
  30 #define UINT_MAX 4294967295U
  31 
  32 #define LONG_MIN (-2147483648)
  33 #define LONG_MAX 2147483647
  34 
  35 #define ULONG_MAX 4294967295U
  36 
  37 /*
  38  * Why are these different from the section below?  -- TYT
  39  */
  40 #define _POSIX_ARG_MAX 40960    /* exec() may have 40K worth of args */
  41 #define _POSIX_CHILD_MAX   6    /* a process may have 6 children */
  42 #define _POSIX_LINK_MAX    8    /* a file may have 8 links */
  43 #define _POSIX_MAX_CANON 255    /* size of the canonical input queue */
  44 #define _POSIX_MAX_INPUT 255    /* you can type 255 chars ahead */
  45 #define _POSIX_NAME_MAX   14    /* a file name may have 14 chars */
  46 #define _POSIX_NGROUPS_MAX 32   /* supplementary group IDs are optional */
  47 #define _POSIX_OPEN_MAX   16    /* a process may have 16 files open */
  48 #define _POSIX_PATH_MAX  255    /* a pathname may contain 255 chars */
  49 #define _POSIX_PIPE_BUF  512    /* pipes writes of 512 bytes must be atomic */
  50 
  51 #define NGROUPS_MAX       32    /* supplemental group IDs are available */
  52 #define ARG_MAX        40960    /* # bytes of args + environ for exec() */
  53 #define CHILD_MAX        999    /* no limit :-) */
  54 #define OPEN_MAX          20    /* # open files a process may have */
  55 #define LINK_MAX         127    /* # links a file may have */
  56 #define MAX_CANON        255    /* size of the canonical input queue */
  57 #define MAX_INPUT        255    /* size of the type-ahead buffer */
  58 #define NAME_MAX         255    /* # chars in a file name */
  59 #define PATH_MAX        1024    /* # chars in a path name */
  60 #define PIPE_BUF        4095    /* # bytes in atomic write to a pipe */
  61 
  62 #endif

/* [previous][next][first][last][top][bottom][index][help] */