Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:54

0001 // Operating system dependencies.
0002 //
0003 // Define constants:
0004 //
0005 // - ALTSEP
0006 // - DELIM
0007 // - MAXPATHLEN
0008 // - SEP
0009 
0010 #ifndef Py_OSDEFS_H
0011 #define Py_OSDEFS_H
0012 #ifdef __cplusplus
0013 extern "C" {
0014 #endif
0015 
0016 #ifdef MS_WINDOWS
0017 #  define SEP L'\\'
0018 #  define ALTSEP L'/'
0019 #  define MAXPATHLEN 256
0020 #  define DELIM L';'
0021 #endif
0022 
0023 #ifdef __VXWORKS__
0024 #  define DELIM L';'
0025 #endif
0026 
0027 /* Filename separator */
0028 #ifndef SEP
0029 #  define SEP L'/'
0030 #endif
0031 
0032 /* Max pathname length */
0033 #ifdef __hpux
0034 #  include <sys/param.h>
0035 #  include <limits.h>
0036 #  ifndef PATH_MAX
0037 #    define PATH_MAX MAXPATHLEN
0038 #  endif
0039 #endif
0040 
0041 #ifndef MAXPATHLEN
0042 #  if defined(PATH_MAX) && PATH_MAX > 1024
0043 #    define MAXPATHLEN PATH_MAX
0044 #  else
0045 #    define MAXPATHLEN 1024
0046 #  endif
0047 #endif
0048 
0049 /* Search path entry delimiter */
0050 #ifndef DELIM
0051 #  define DELIM L':'
0052 #endif
0053 
0054 #ifdef __cplusplus
0055 }
0056 #endif
0057 #endif   // !Py_OSDEFS_H