home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / PAX20.ZIP / LIMITS.H < prev    next >
C/C++ Source or Header  |  1990-11-12  |  2KB  |  58 lines

  1. /* $Source: /u/mark/src/pax/RCS/limits.h,v $
  2.  *
  3.  * $Revision: 2.0.0.3 $
  4.  *
  5.  *     limits.h - POSIX compatible defnitions for some of <limits.h>
  6.  *
  7.  * DESCRIPTION
  8.  *
  9.  *     We need to include <limits.h> if this system is being compiled with an
  10.  *     ANSI standard C compiler, or if we are running on a POSIX confomrming
  11.  *     system.  If the manifest constant _POSIX_SOURCE is not defined when
  12.  *     <limits.h> is included, then none of the POSIX constants are defined
  13.  *    and we need to define them here.  It's a bit wierd, but it works.
  14.  *
  15.  *     These values where taken from the IEEE P1003.1 standard, draft 12.
  16.  *     All of the values below are the MINIMUM values allowed by the standard.
  17.  *     Only those values used by PAX are included in this header.
  18.  *
  19.  * AUTHOR
  20.  *
  21.  *     Mark H. Colburn, Open Systems Architects, Inc. (mark@minnetech.mn.org)
  22.  *
  23.  * COPYRIGHT
  24.  *
  25.  *    Copyright (c) 1989 Mark H. Colburn.  All rights reserved.
  26.  *
  27.  *    Redistribution and use in source and binary forms are permitted
  28.  *    provided that the above copyright notice and this paragraph are
  29.  *    duplicated in all such forms and that any documentation,
  30.  *    advertising materials, and other materials related to such
  31.  *    distribution and use acknowledge that the software was developed
  32.  *    by Mark H. Colburn.
  33.  *
  34.  *    THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  35.  *    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  36.  *    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  37.  */
  38.  
  39. #ifndef _PAX_LIMITS_H
  40. #define _PAX_LIMITS_H
  41.  
  42. /* Headers */
  43.  
  44. #ifdef LIMITSH
  45. #   include <limits.h>
  46. #endif /* LIMITSH */
  47.  
  48. #ifndef PATH_MAX
  49. #define PATH_MAX    255    /* Max number of bytes in pathname */
  50. #endif /* PATH_MAX */
  51.  
  52. #ifndef NAME_MAX
  53. /* This should be 32 for BSD systems */
  54. #define NAME_MAX    32    /* Max number of bytes in a filename */
  55. #endif /* NAME_MAX */
  56.  
  57. #endif /* _PAX_LIMITS_H */
  58.