home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / ansi / limits.h < prev    next >
C/C++ Source or Header  |  1995-01-23  |  2KB  |  50 lines

  1. /* Copyright (c) 1992 NeXT Computer, Inc. */
  2.  
  3. #ifndef _ANSI_LIMITS_H
  4. #define _ANSI_LIMITS_H
  5.  
  6. #include <standards.h>
  7.  
  8. #include <ansi/machine/limits.h>
  9.  
  10. #ifdef _POSIX_SOURCE
  11. #define ARG_MAX        40960  /* Length of arguments to    */ 
  12.                    /* exec (include environ)    */
  13. #define CHILD_MAX    100    /* processes per uid         */
  14. #define OPEN_MAX    256    /* open files per process    */
  15. #define MAX_CANON    256    /* bytes    in a terminal       */
  16.                    /* canonical input line.     */
  17. #define MAX_INPUT    512    /* Minimum number of bytes   */
  18.                     /* for which space will be   */
  19.                    /* available in a terminal   */
  20.                         /* input queue.                 */
  21. #define LINK_MAX    32767  /* File's link count.        */    
  22. #define NAME_MAX    255    /* Bytes in a file name      */
  23. #define NGROUPS_MAX    16     /* Number of simultaneous    */  
  24.                            /* supplementary group IDs   */
  25.                    /* per process.              */
  26. #define PATH_MAX    1024   /* Bytes in a pathname       */  
  27. #define PIPE_BUF    4096   /* Bytes that can be written */
  28.                    /* atomically to a pipe.     */
  29. #define SSIZE_MAX    INT_MAX    /* Value that can be stored */
  30.                     /* in object of type ssize_t.*/ 
  31. #define STREAM_MAX    256    /* Open streams per process  */
  32. #define TZNAME_MAX    50     /* bytes for time zone name  */    
  33.  
  34. #define _POSIX_ARG_MAX        4096
  35. #define _POSIX_CHILD_MAX    6
  36. #define _POSIX_LINK_MAX        8
  37. #define _POSIX_MAX_CANON    255
  38. #define _POSIX_MAX_INPUT    255
  39. #define _POSIX_NAME_MAX        14
  40. #define _POSIX_NGROUPS_MAX    0
  41. #define _POSIX_OPEN_MAX        16
  42. #define _POSIX_PATH_MAX        255
  43. #define _POSIX_PIPE_BUF        512
  44. #define _POSIX_SSIZE_MAX    32767
  45. #define _POSIX_STREAM_MAX    8
  46. #define _POSIX_TZNAME_MAX    3
  47. #endif /* _POSIX_SOURCE */
  48.  
  49. #endif /* _ANSI_LIMITS_H */
  50.