home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / posix.h < prev    next >
C/C++ Source or Header  |  1994-10-23  |  2KB  |  64 lines

  1. /* RCS      -- $Header: /u5/dvadura/src/public/dmake/src/RCS/posix.h,v 1.1 1994/10/06 17:42:53 dvadura Exp $
  2. -- SYNOPSIS -- Definition for POSIX conforming defines in dmake.
  3. -- 
  4. -- DESCRIPTION
  5. --    This file is intended to make certain that defines used within dmake
  6. --    for file name lengths, and number of children processes are defined.
  7. --
  8. -- AUTHOR
  9. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  10. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  11. --
  12. -- COPYRIGHT
  13. --      Copyright (c) 1992,1994 by Dennis Vadura.  All rights reserved.
  14. -- 
  15. --      This program is free software; you can redistribute it and/or
  16. --      modify it under the terms of the GNU General Public License
  17. --      (version 1), as published by the Free Software Foundation, and
  18. --      found in the file 'LICENSE' included with this distribution.
  19. -- 
  20. --      This program is distributed in the hope that it will be useful,
  21. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  22. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23. --      GNU General Public License for more details.
  24. -- 
  25. --      You should have received a copy of the GNU General Public License
  26. --      along with this program;  if not, write to the Free Software
  27. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  28. --
  29. -- LOG
  30. --     $Log: posix.h,v $
  31.  * Revision 1.1  1994/10/06  17:42:53  dvadura
  32.  * dmake Release Version 4.0, Initial revision
  33.  *
  34. */
  35.  
  36. /* Define the minimum values that each system requires, and do so only if
  37.  * we have not defined these includes elsewhere.  These should already be
  38.  * defined in <limits.h> if you have a C compiler that is POSIX compliant.
  39.  */
  40. #ifndef _POSIX_NAME_MAX
  41. #define _POSIX_NAME_MAX 14
  42. #endif
  43.  
  44. #ifndef _POSIX_PATH_MAX
  45. #define _POSIX_PATH_MAX 64
  46. #endif
  47.  
  48. #ifndef _POSIX_CHILD_MAX
  49. #define _POSIX_CHILD_MAX 1
  50. #endif
  51.  
  52. /* Now define the actual manifests used in the code. */
  53. #ifndef NAME_MAX
  54. #define NAME_MAX _POSIX_NAME_MAX
  55. #endif
  56.  
  57. #ifndef PATH_MAX
  58. #define PATH_MAX _POSIX_PATH_MAX
  59. #endif
  60.  
  61. #ifndef CHILD_MAX
  62. #define CHILD_MAX _POSIX_CHILD_MAX
  63. #endif
  64.