Print this page
8527 tty buffer/queue sizes should be larger

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/param.h
          +++ new/usr/src/uts/common/sys/param.h
↓ open down ↓ 63 lines elided ↑ open up ↑
  64   64   * specifications required that _POSIX_VDISABLE be defined in <unistd.h>
  65   65   * while still allowing for it's existence in other headers.  With the
  66   66   * introduction of XPG6, _POSIX_VDISABLE can only be defined in <unistd.h>.
  67   67   */
  68   68  #if !defined(_XPG6) || defined(__EXTENSIONS__)
  69   69  #ifndef _POSIX_VDISABLE
  70   70  #define _POSIX_VDISABLE 0       /* Disable special character functions */
  71   71  #endif
  72   72  #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
  73   73  
       74 +/* The actual size of the TTY input queue */
       75 +#define _TTY_BUFSIZ     2048
       76 +
       77 +/*
       78 + * These defines all have their historical value.  The actual size of the tty
       79 + * buffer both for the line-editor in ldterm, and in general, is above as
       80 + * _TTY_BUFSIZ.
       81 + *
       82 + * We leave these defines at their historical value to match the behaviour of
       83 + * BSD and Linux.
       84 + */
  74   85  #ifndef MAX_INPUT
  75   86  #define MAX_INPUT       512     /* Maximum bytes stored in the input queue */
  76   87  #endif
  77      -
  78   88  #ifndef MAX_CANON
  79   89  #define MAX_CANON       256     /* Maximum bytes for canonical processing */
  80   90  #endif
       91 +#define CANBSIZ         256     /* max size of typewriter line  */
       92 +
  81   93  
  82   94  #define UID_NOBODY      60001   /* user ID no body */
  83   95  #define GID_NOBODY      UID_NOBODY
  84   96  #define UID_UNKNOWN     96
  85   97  #define GID_UNKNOWN     UID_UNKNOWN
  86   98  #define UID_DLADM       15
  87   99  #define UID_NETADM      16
  88  100  #define GID_NETADM      65
  89  101  #define UID_NOACCESS    60002   /* user ID no access */
  90  102  
↓ open down ↓ 19 lines elided ↑ open up ↑
 110  122  
 111  123  #define MAXUID          2147483647      /* max user id */
 112  124  
 113  125  #define MAXPROJID       MAXUID          /* max project id */
 114  126  #define MAXLINK         32767   /* max links */
 115  127  
 116  128  #define MINEPHUID       0x80000000u     /* min ephemeral user id */
 117  129  
 118  130  #define NMOUNT          40      /* est. of # mountable fs for quota calc */
 119  131  
 120      -#define CANBSIZ         256     /* max size of typewriter line  */
 121      -
 122  132  #define NOFILE          20      /* this define is here for      */
 123  133                                  /* compatibility purposes only  */
 124  134                                  /* and will be removed in a     */
 125  135                                  /* later release                */
 126  136  
 127  137  /*
 128  138   * These define the maximum and minimum allowable values of the
 129  139   * configurable parameter NGROUPS_MAX.
 130  140   */
 131  141  #define NGROUPS_UMIN    0
↓ open down ↓ 372 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX