sync master with lastest vba changes
[ooovba.git] / dmake / posix.h
blobd1c4f3e7443d4253e449036be04058b4877e38d2
1 /* RCS $Id: posix.h,v 1.3 2006-04-20 12:01:40 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Definition for POSIX conforming defines in dmake.
5 --
6 -- DESCRIPTION
7 -- This file is intended to make certain that defines used within dmake
8 -- for file name lengths, and number of children processes are defined.
9 --
10 -- AUTHOR
11 -- Dennis Vadura, dvadura@dmake.wticorp.com
13 -- WWW
14 -- http://dmake.wticorp.com/
16 -- COPYRIGHT
17 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
18 --
19 -- This program is NOT free software; you can redistribute it and/or
20 -- modify it under the terms of the Software License Agreement Provided
21 -- in the file <distribution-root>/readme/license.txt.
23 -- LOG
24 -- Use cvs log to obtain detailed change logs.
27 /* Define the minimum values that each system requires, and do so only if
28 * we have not defined these includes elsewhere. These should already be
29 * defined in <limits.h> if you have a C compiler that is POSIX compliant.
31 #ifndef _POSIX_NAME_MAX
32 #define _POSIX_NAME_MAX 14
33 #endif
35 #ifndef _POSIX_PATH_MAX
36 #define _POSIX_PATH_MAX 64
37 #endif
39 #ifndef _POSIX_CHILD_MAX
40 #define _POSIX_CHILD_MAX 1
41 #endif
43 /* Now define the actual manifests used in the code. */
44 #ifndef NAME_MAX
45 #define NAME_MAX _POSIX_NAME_MAX
46 #endif
48 #ifndef PATH_MAX
49 #define PATH_MAX _POSIX_PATH_MAX
50 #endif
52 #ifndef CHILD_MAX
53 #define CHILD_MAX _POSIX_CHILD_MAX
54 #endif
56 /* FIXME! This is a very big hammer, these values should be set to
57 * sensible values in the architecture dependent sysintf.h files. */
58 #if NAME_MAX < 255
59 #undef NAME_MAX
60 #define NAME_MAX 255
61 #endif
63 #if PATH_MAX < 1024
64 #undef PATH_MAX
65 #define PATH_MAX 1024
66 #endif