Mercurial > hg > xemacs-beta
comparison src/sysfile.h @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | 74fd4e045ea6 |
children | de805c49cfc1 |
comparison
equal
deleted
inserted
replaced
403:9f011ab08d48 | 404:2f8bb876ab1d |
---|---|
22 | 22 |
23 #ifndef INCLUDED_sysfile_h_ | 23 #ifndef INCLUDED_sysfile_h_ |
24 #define INCLUDED_sysfile_h_ | 24 #define INCLUDED_sysfile_h_ |
25 | 25 |
26 #include <errno.h> | 26 #include <errno.h> |
27 #include <limits.h> | |
27 | 28 |
28 #ifndef WINDOWSNT | 29 #ifndef WINDOWSNT |
29 #include <sys/errno.h> /* <errno.h> does not always imply this */ | 30 #include <sys/errno.h> /* <errno.h> does not always imply this */ |
30 #endif | 31 #endif |
31 | 32 |
204 #endif | 205 #endif |
205 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */ | 206 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */ |
206 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) | 207 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) |
207 #endif | 208 #endif |
208 | 209 |
210 /* Client .c files should simply use `PATH_MAX'. */ | |
211 #ifndef PATH_MAX | |
212 # if defined (_POSIX_PATH_MAX) | |
213 # define PATH_MAX _POSIX_PATH_MAX | |
214 # elif defined (MAXPATHLEN) | |
215 # define PATH_MAX MAXPATHLEN | |
216 # else | |
217 # define PATH_MAX 1024 | |
218 # endif | |
219 #endif | |
220 | |
221 /* MAXPATHLEN is deprecated, but, as of this writing, still used. */ | |
209 #ifndef MAXPATHLEN | 222 #ifndef MAXPATHLEN |
210 /* in 4.1, param.h fails to define this. */ | 223 # define MAXPATHLEN 1024 |
211 #define MAXPATHLEN 1024 | 224 #endif |
212 #endif /* not MAXPATHLEN */ | |
213 | 225 |
214 #ifndef X_OK | 226 #ifndef X_OK |
215 # define X_OK 01 | 227 # define X_OK 01 |
216 #endif | 228 #endif |
217 | 229 |