blob: 7de117c704327dfe88c02efacee915f094820603 [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
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100113#define HAVE_GETTIMEOFDAY
114#define HAVE_PWD_H
115#define HAVE_NETDB_H
116#define HAVE_DIRENT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000117
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118#undef HAVE_SYS_NDIR_H
119#undef HAVE_SYS_DIR_H
120#undef HAVE_NDIR_H
121#undef HAVE_SYS_WAIT_H
122#undef HAVE_UNION_WAIT
123#undef HAVE_SYS_SELECT_H
124#undef HAVE_SYS_UTSNAME_H
125#undef HAVE_SYS_SYSTEMINFO_H
126#undef HAVE_TERMCAP_H
127#undef HAVE_SGTTY_H
128#undef HAVE_SYS_IOCTL_H
129#undef HAVE_TERMIO_H
130#undef HAVE_STROPTS_H
131#undef HAVE_SYS_STREAM_H
132#undef HAVE_SYS_PTEM_H
133#undef HAVE_TERMIOS_H
134#undef HAVE_LIBC_H
135#undef HAVE_SYS_STATFS_H
136#undef HAVE_SYS_POLL_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000137#undef HAVE_FCHDIR
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100138#undef HAVE_LSTAT
Bram Moolenaar467676d2020-12-30 13:14:45 +0100139#undef HAVE_STDINT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000140
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100141// Hardware specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000142#ifdef VAX
143#undef HAVE_GETTIMEOFDAY
144#undef HAVE_USLEEP
145#undef HAVE_STRCASECMP
146#undef HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100147#undef HAVE_SIGSETJMP
148#undef HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100149#undef HAVE_XOS_R_H
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100150#define HAVE_NO_LONG_LONG
151#define VIM_SIZEOF_LONG 4
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100152#define LONG_LONG_MIN (-2147483647-1)
153#define LONG_LONG_MAX (2147483647)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100154#define ULONG_LONG_MAX (4294967295U)
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100155#else // AXP and IA64
Bram Moolenaar071d4272004-06-13 20:20:40 +0000156#define HAVE_GETTIMEOFDAY
157#define HAVE_USLEEP
158#define HAVE_STRCASECMP
159#define HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100160#define HAVE_SIGSETJMP
161#define HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100162#define HAVE_XOS_R_H
Bram Moolenaar467676d2020-12-30 13:14:45 +0100163#define HAVE_NO_LONG_LONG
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100164#define VIM_SIZEOF_LONG 8
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100165#define LONG_LONG_MIN (-9223372036854775807-1)
166#define LONG_LONG_MAX (9223372036854775807)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100167#define ULONG_LONG_MAX (18446744073709551615U)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000168#endif
169
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100170// Compiler specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000171#ifdef VAXC
172#undef HAVE_SELECT
173#undef HAVE_FCNTL_H
174#undef HAVE_UNISTD_H
175#undef HAVE_SYS_TIME_H
176#undef HAVE_LOCALE_H
177#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178#undef DYNAMIC_ICONV
179#undef HAVE_STRFTIME
Bram Moolenaar467676d2020-12-30 13:14:45 +0100180#else // DECC
Bram Moolenaar071d4272004-06-13 20:20:40 +0000181#define HAVE_SELECT
182#define HAVE_FCNTL_H
183#define HAVE_UNISTD_H 1
184#define HAVE_SYS_TIME_H
185#define HAVE_LOCALE_H
186#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000187#undef DYNAMIC_ICONV
188#define HAVE_STRFTIME
189#endif
190
Bram Moolenaar206f0112014-03-12 16:51:55 +0100191#if defined(USE_ICONV)
192#define HAVE_ICONV_H
193#define HAVE_ICONV
194#else
195#undef HAVE_ICONV_H
196#undef HAVE_ICONV
197#endif
198
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100199// GUI support defines
Bram Moolenaar910f66f2006-04-05 20:41:53 +0000200#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK)
Bram Moolenaar9f1983d2022-05-12 20:35:35 +0100201#define X_INCLUDE_GRP_H // To use getgrgid
Bram Moolenaar467676d2020-12-30 13:14:45 +0100202#define XUSE_MTSAFE_API
Bram Moolenaar071d4272004-06-13 20:20:40 +0000203#define HAVE_X11
Bram Moolenaar467676d2020-12-30 13:14:45 +0100204#define WANT_X11
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100205#ifdef HAVE_XPM
206#define HAVE_X11_XPM_H
207#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000208#define USE_FONTSET
209#undef X_LOCALE
210#endif