blob: 8a933b69721124f8a3f5f13ba25b270884526181 [file] [log] [blame]
Bram Moolenaar9bf703d2019-11-30 19:44:38 +01001/*
2 * os_vms_conf.h. Replaces auto/config.h for VMS
3 */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004
Bram Moolenaar9bf703d2019-11-30 19:44:38 +01005#define CASE_INSENSITIVE_FILENAME // Open VMS is case insensitive
6#define SPACE_IN_FILENAME // There could be space between user and passwd
7#define FNAME_ILLEGAL "|*#?%" // Illegal characters in a file name
8#define BINARY_FILE_IO // Use binary fileio
Bram Moolenaar071d4272004-06-13 20:20:40 +00009#define USE_GETCWD
10#define USE_SYSTEM
Bram Moolenaar88c86eb2019-01-17 17:13:30 +010011#define XPMATTRIBUTES_TYPE XpmAttributes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010013// Define when terminfo support found
Bram Moolenaar071d4272004-06-13 20:20:40 +000014#undef TERMINFO
15
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010016// Define when termcap.h contains ospeed
17// #define HAVE_OSPEED
Bram Moolenaar071d4272004-06-13 20:20:40 +000018
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010019// Define when termcap.h contains UP, BC and PC
20// #define HAVE_UP_BC_PC
Bram Moolenaar071d4272004-06-13 20:20:40 +000021
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010022// Define when termcap.h defines outfuntype
23//#define HAVE_OUTFUNTYPE
Bram Moolenaar071d4272004-06-13 20:20:40 +000024
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010025// Define when __DATE__ " " __TIME__ can be used
Bram Moolenaar071d4272004-06-13 20:20:40 +000026#define HAVE_DATE_TIME
27
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010028// Defined to the size of an int
Bram Moolenaare809a4e2019-07-04 17:35:05 +020029#define VIM_SIZEOF_INT 4
Bram Moolenaar071d4272004-06-13 20:20:40 +000030
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010031// #undef USEBCOPY
Bram Moolenaar071d4272004-06-13 20:20:40 +000032#define USEMEMMOVE
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010033// #undef USEMEMCPY
Bram Moolenaar071d4272004-06-13 20:20:40 +000034
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010035// Define when "man -s 2" is to be used
36// #undef USEMAN_S
Bram Moolenaar071d4272004-06-13 20:20:40 +000037
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010038// Define to empty if the keyword does not work.
39// #undef const
Bram Moolenaar071d4272004-06-13 20:20:40 +000040
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010041// Define to `int' if <sys/types.h> doesn't define.
42// #undef mode_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000043
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010044// Define to `long' if <sys/types.h> doesn't define.
45// #undef off_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000046
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010047// Define to `long' if <sys/types.h> doesn't define.
48// #undef pid_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000049
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010050// Define to `unsigned' if <sys/types.h> doesn't define.
51// #undef size_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000052
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010053// Define to `int' if <sys/types.h> doesn't define.
54// #undef uid_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000055
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010056// Define to `unsigned int' or other type that is 32 bit.
Bram Moolenaar8e469272010-07-28 19:38:16 +020057#define UINT32_T unsigned int
58
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010059// Define to `int' if <sys/types.h> doesn't define.
60// #undef gid_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000061
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010062// Define to `long' if <sys/types.h> doesn't define.
63// #undef ino_t
Bram Moolenaar071d4272004-06-13 20:20:40 +000064
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010065// Define if you have the nanosleep() function.
66// #undef HAVE_NANOSLEEP
Bram Moolenaar071d4272004-06-13 20:20:40 +000067
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010068// Define if you can safely include both <sys/time.h> and <sys/select.h>.
69// #undef SYS_SELECT_WITH_SYS_TIME
Bram Moolenaar071d4272004-06-13 20:20:40 +000070
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010071// Define if struct sigcontext is present
Bram Moolenaar071d4272004-06-13 20:20:40 +000072#define HAVE_SIGCONTEXT
73
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010074// Define if toupper/tolower only work on lower/uppercase characters
75// #define BROKEN_TOUPPER
Bram Moolenaar071d4272004-06-13 20:20:40 +000076
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010077// Define if tgetstr() has a second argument that is (char *)
78// #undef TGETSTR_CHAR_P
Bram Moolenaar071d4272004-06-13 20:20:40 +000079
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010080// Define if you have the sigset() function.
81// #undef HAVE_SIGSET
Bram Moolenaar071d4272004-06-13 20:20:40 +000082
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010083// Define if you have the setpgid() function.
84// #undef HAVE_SETPGID
Bram Moolenaar071d4272004-06-13 20:20:40 +000085
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010086// Define if you have the setsid() function.
87// #undef HAVE_SETSID
Bram Moolenaar071d4272004-06-13 20:20:40 +000088
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010089// Define if you have the sigset() function.
90// #undef HAVE_SIGSET
Bram Moolenaar071d4272004-06-13 20:20:40 +000091
92#define TGETENT_ZERO_ERR
93#define HAVE_GETCWD
94#define HAVE_STRCSPN
95#define HAVE_STRTOL
96#define HAVE_TGETENT
97#define HAVE_MEMSET
Bram Moolenaar071d4272004-06-13 20:20:40 +000098#define HAVE_STRERROR
99#define HAVE_FCHOWN
100#define HAVE_RENAME
101#define HAVE_QSORT
102#define HAVE_FSYNC
103#define HAVE_GETPWUID
104#define HAVE_GETPWNAM
Bram Moolenaar071d4272004-06-13 20:20:40 +0000105#define HAVE_STDLIB_H
106#define HAVE_STRING_H
107#define HAVE_ERRNO_H
108#define HAVE_OPENDIR
109#define HAVE_PUTENV
110#define HAVE_SETENV
111#define HAVE_SETJMP_H
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000112#define HAVE_MATH_H
113#define HAVE_FLOAT_FUNCS
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100114#define HAVE_GETTIMEOFDAY
115#define HAVE_PWD_H
116#define HAVE_NETDB_H
117#define HAVE_DIRENT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118
Bram Moolenaar071d4272004-06-13 20:20:40 +0000119#undef HAVE_SYS_NDIR_H
120#undef HAVE_SYS_DIR_H
121#undef HAVE_NDIR_H
122#undef HAVE_SYS_WAIT_H
123#undef HAVE_UNION_WAIT
124#undef HAVE_SYS_SELECT_H
125#undef HAVE_SYS_UTSNAME_H
126#undef HAVE_SYS_SYSTEMINFO_H
127#undef HAVE_TERMCAP_H
128#undef HAVE_SGTTY_H
129#undef HAVE_SYS_IOCTL_H
130#undef HAVE_TERMIO_H
131#undef HAVE_STROPTS_H
132#undef HAVE_SYS_STREAM_H
133#undef HAVE_SYS_PTEM_H
134#undef HAVE_TERMIOS_H
135#undef HAVE_LIBC_H
136#undef HAVE_SYS_STATFS_H
137#undef HAVE_SYS_POLL_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000138#undef HAVE_FCHDIR
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100139#undef HAVE_LSTAT
Bram Moolenaar467676d2020-12-30 13:14:45 +0100140#undef HAVE_STDINT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100142// Hardware specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000143#ifdef VAX
144#undef HAVE_GETTIMEOFDAY
145#undef HAVE_USLEEP
146#undef HAVE_STRCASECMP
147#undef HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100148#undef HAVE_SIGSETJMP
149#undef HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100150#undef HAVE_XOS_R_H
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100151#define HAVE_NO_LONG_LONG
152#define VIM_SIZEOF_LONG 4
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100153#define LONG_LONG_MIN (-2147483647-1)
154#define LONG_LONG_MAX (2147483647)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100155#define ULONG_LONG_MAX (4294967295U)
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100156#else // AXP and IA64
Bram Moolenaar071d4272004-06-13 20:20:40 +0000157#define HAVE_GETTIMEOFDAY
158#define HAVE_USLEEP
159#define HAVE_STRCASECMP
160#define HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100161#define HAVE_SIGSETJMP
162#define HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100163#define HAVE_XOS_R_H
Bram Moolenaar467676d2020-12-30 13:14:45 +0100164#define HAVE_NO_LONG_LONG
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100165#define VIM_SIZEOF_LONG 8
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100166#define LONG_LONG_MIN (-9223372036854775807-1)
167#define LONG_LONG_MAX (9223372036854775807)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100168#define ULONG_LONG_MAX (18446744073709551615U)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000169#endif
170
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100171// Compiler specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000172#ifdef VAXC
173#undef HAVE_SELECT
174#undef HAVE_FCNTL_H
175#undef HAVE_UNISTD_H
176#undef HAVE_SYS_TIME_H
177#undef HAVE_LOCALE_H
178#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000179#undef DYNAMIC_ICONV
180#undef HAVE_STRFTIME
Bram Moolenaar467676d2020-12-30 13:14:45 +0100181#else // DECC
Bram Moolenaar071d4272004-06-13 20:20:40 +0000182#define HAVE_SELECT
183#define HAVE_FCNTL_H
184#define HAVE_UNISTD_H 1
185#define HAVE_SYS_TIME_H
186#define HAVE_LOCALE_H
187#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000188#undef DYNAMIC_ICONV
189#define HAVE_STRFTIME
190#endif
191
Bram Moolenaar206f0112014-03-12 16:51:55 +0100192#if defined(USE_ICONV)
193#define HAVE_ICONV_H
194#define HAVE_ICONV
195#else
196#undef HAVE_ICONV_H
197#undef HAVE_ICONV
198#endif
199
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100200// GUI support defines
Bram Moolenaar910f66f2006-04-05 20:41:53 +0000201#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK)
Bram Moolenaar9f1983d2022-05-12 20:35:35 +0100202#define X_INCLUDE_GRP_H // To use getgrgid
Bram Moolenaar467676d2020-12-30 13:14:45 +0100203#define XUSE_MTSAFE_API
Bram Moolenaar071d4272004-06-13 20:20:40 +0000204#define HAVE_X11
Bram Moolenaar467676d2020-12-30 13:14:45 +0100205#define WANT_X11
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100206#ifdef HAVE_XPM
207#define HAVE_X11_XPM_H
208#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000209#define USE_FONTSET
210#undef X_LOCALE
211#endif