blob: df03b15047e1c9141dd461843e5959bb07fb8552 [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 <time.h>.
Bram Moolenaar071d4272004-06-13 20:20:40 +000069#define TIME_WITH_SYS_TIME
70
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010071// Define if you can safely include both <sys/time.h> and <sys/select.h>.
72// #undef SYS_SELECT_WITH_SYS_TIME
Bram Moolenaar071d4272004-06-13 20:20:40 +000073
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010074// Define as the return type of signal handlers (int or void).
Bram Moolenaar071d4272004-06-13 20:20:40 +000075#define RETSIGTYPE void
76
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010077// Define as the command at the end of signal handlers ("" or "return 0;").
Bram Moolenaar071d4272004-06-13 20:20:40 +000078#define SIGRETURN return
79
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010080// Define if struct sigcontext is present
Bram Moolenaar071d4272004-06-13 20:20:40 +000081#define HAVE_SIGCONTEXT
82
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010083// Define if toupper/tolower only work on lower/uppercase characters
84// #define BROKEN_TOUPPER
Bram Moolenaar071d4272004-06-13 20:20:40 +000085
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010086// Define if tgetstr() has a second argument that is (char *)
87// #undef TGETSTR_CHAR_P
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
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010092// Define if you have the setpgid() function.
93// #undef HAVE_SETPGID
Bram Moolenaar071d4272004-06-13 20:20:40 +000094
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010095// Define if you have the setsid() function.
96// #undef HAVE_SETSID
Bram Moolenaar071d4272004-06-13 20:20:40 +000097
Bram Moolenaar9bf703d2019-11-30 19:44:38 +010098// Define if you have the sigset() function.
99// #undef HAVE_SIGSET
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100
101#define TGETENT_ZERO_ERR
102#define HAVE_GETCWD
103#define HAVE_STRCSPN
104#define HAVE_STRTOL
105#define HAVE_TGETENT
106#define HAVE_MEMSET
Bram Moolenaar071d4272004-06-13 20:20:40 +0000107#define HAVE_STRERROR
108#define HAVE_FCHOWN
109#define HAVE_RENAME
110#define HAVE_QSORT
111#define HAVE_FSYNC
112#define HAVE_GETPWUID
113#define HAVE_GETPWNAM
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114#define HAVE_STDLIB_H
115#define HAVE_STRING_H
116#define HAVE_ERRNO_H
117#define HAVE_OPENDIR
118#define HAVE_PUTENV
119#define HAVE_SETENV
120#define HAVE_SETJMP_H
Bram Moolenaarac98e5d2008-09-01 14:51:37 +0000121#define HAVE_MATH_H
122#define HAVE_FLOAT_FUNCS
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100123#define HAVE_GETTIMEOFDAY
124#define HAVE_PWD_H
125#define HAVE_NETDB_H
126#define HAVE_DIRENT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000127
Bram Moolenaar071d4272004-06-13 20:20:40 +0000128#undef HAVE_SYS_NDIR_H
129#undef HAVE_SYS_DIR_H
130#undef HAVE_NDIR_H
131#undef HAVE_SYS_WAIT_H
132#undef HAVE_UNION_WAIT
133#undef HAVE_SYS_SELECT_H
134#undef HAVE_SYS_UTSNAME_H
135#undef HAVE_SYS_SYSTEMINFO_H
136#undef HAVE_TERMCAP_H
137#undef HAVE_SGTTY_H
138#undef HAVE_SYS_IOCTL_H
139#undef HAVE_TERMIO_H
140#undef HAVE_STROPTS_H
141#undef HAVE_SYS_STREAM_H
142#undef HAVE_SYS_PTEM_H
143#undef HAVE_TERMIOS_H
144#undef HAVE_LIBC_H
145#undef HAVE_SYS_STATFS_H
146#undef HAVE_SYS_POLL_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000147#undef HAVE_FCHDIR
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100148#undef HAVE_LSTAT
Bram Moolenaar467676d2020-12-30 13:14:45 +0100149#undef HAVE_STDINT_H
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100151// Hardware specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000152#ifdef VAX
153#undef HAVE_GETTIMEOFDAY
154#undef HAVE_USLEEP
155#undef HAVE_STRCASECMP
156#undef HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100157#undef HAVE_SIGSETJMP
158#undef HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100159#undef HAVE_XOS_R_H
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100160#define HAVE_NO_LONG_LONG
161#define VIM_SIZEOF_LONG 4
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100162#define LONG_LONG_MIN (-2147483647-1)
163#define LONG_LONG_MAX (2147483647)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100164#define ULONG_LONG_MAX (4294967295U)
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100165#else // AXP and IA64
Bram Moolenaar071d4272004-06-13 20:20:40 +0000166#define HAVE_GETTIMEOFDAY
167#define HAVE_USLEEP
168#define HAVE_STRCASECMP
169#define HAVE_STRINGS_H
Bram Moolenaarde5e2c22016-11-04 20:35:31 +0100170#define HAVE_SIGSETJMP
171#define HAVE_ISNAN
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100172#define HAVE_XOS_R_H
Bram Moolenaar467676d2020-12-30 13:14:45 +0100173#define HAVE_NO_LONG_LONG
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100174#define VIM_SIZEOF_LONG 8
Bram Moolenaar82c38fe2021-01-04 10:47:26 +0100175#define LONG_LONG_MIN (-9223372036854775807-1)
176#define LONG_LONG_MAX (9223372036854775807)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100177#define ULONG_LONG_MAX (18446744073709551615U)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178#endif
179
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100180// Compiler specific
Bram Moolenaar071d4272004-06-13 20:20:40 +0000181#ifdef VAXC
182#undef HAVE_SELECT
183#undef HAVE_FCNTL_H
184#undef HAVE_UNISTD_H
185#undef HAVE_SYS_TIME_H
186#undef HAVE_LOCALE_H
187#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000188#undef DYNAMIC_ICONV
189#undef HAVE_STRFTIME
Bram Moolenaar467676d2020-12-30 13:14:45 +0100190#else // DECC
Bram Moolenaar071d4272004-06-13 20:20:40 +0000191#define HAVE_SELECT
192#define HAVE_FCNTL_H
193#define HAVE_UNISTD_H 1
194#define HAVE_SYS_TIME_H
195#define HAVE_LOCALE_H
196#define BROKEN_LOCALE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000197#undef DYNAMIC_ICONV
198#define HAVE_STRFTIME
199#endif
200
Bram Moolenaar206f0112014-03-12 16:51:55 +0100201#if defined(USE_ICONV)
202#define HAVE_ICONV_H
203#define HAVE_ICONV
204#else
205#undef HAVE_ICONV_H
206#undef HAVE_ICONV
207#endif
208
Bram Moolenaar9bf703d2019-11-30 19:44:38 +0100209// GUI support defines
Bram Moolenaar910f66f2006-04-05 20:41:53 +0000210#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK)
Bram Moolenaar467676d2020-12-30 13:14:45 +0100211#define X_INCLUDE_GRP_H // To use getgrgid
212#define XUSE_MTSAFE_API
Bram Moolenaar071d4272004-06-13 20:20:40 +0000213#define HAVE_X11
Bram Moolenaar467676d2020-12-30 13:14:45 +0100214#define WANT_X11
Bram Moolenaar88c86eb2019-01-17 17:13:30 +0100215#ifdef HAVE_XPM
216#define HAVE_X11_XPM_H
217#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218#define USE_FONTSET
219#undef X_LOCALE
220#endif