1/* 2 * config.h -- configure various defines for tcsh 3 * 4 * All source files should #include this FIRST. 5 * 6 * This is the config file for Win32 systems 7 */ 8 9#ifndef _h_config 10#define _h_config 11/****************** System dependant compilation flags ****************/ 12/* 13 * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). 14 */ 15#define POSIX 16 17 18/* 19 * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) 20 * job control facilities. 21 */ 22#undef POSIXJOBS 23 24/* 25 * VFORK This machine has a vfork(). 26 * It used to be that for job control to work, this define 27 * was mandatory. This is not the case any more. 28 * If you think you still need it, but you don't have vfork, 29 * define this anyway and then do #define vfork fork. 30 * I do this anyway on a Sun because of yellow pages brain damage, 31 * [should not be needed under 4.1] 32 * and on the iris4d cause SGI's fork is sufficiently "virtual" 33 * that vfork isn't necessary. (Besides, SGI's vfork is weird). 34 * Note that some machines eg. rs6000 have a vfork, but not 35 * with the berkeley semantics, so we cannot use it there either. 36 */ 37#undef VFORK 38 39/* 40 * BSDJOBS You have BSD-style job control (both process groups and 41 * a tty that deals correctly 42 */ 43#undef BSDJOBS 44 45/* 46 * BSDTIMES You have BSD-style process time stuff (like rusage) 47 * This may or may not be true. For example, Apple Unix 48 * (OREO) has BSDJOBS but not BSDTIMES. 49 */ 50#undef BSDTIMES 51 52/* 53 * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) 54 */ 55#undef BSDLIMIT 56 57/* 58 * TERMIO You have struct termio instead of struct sgttyb. 59 * This is usually the case for SVID systems, where 60 * BSD uses sgttyb. POSIX systems should define this 61 * anyway, even though they use struct termios. 62 */ 63#define TERMIO 64 65/* 66 * SYSVREL Your machine is SYSV based (HPUX, A/UX) 67 * NOTE: don't do this if you are on a Pyramid -- tcsh is 68 * built in a BSD universe. 69 * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V 70 * you are running. Or set it to 0 if you are not SYSV based 71 * 72 * Note: Linux should work with any SYSVREL < 3. 73 */ 74#define SYSVREL 0 75 76/* 77 * YPBUGS Work around Sun YP bugs that cause expansion of ~username 78 * to send command output to /dev/null 79 */ 80#undef YPBUGS 81 82 83#define HAVE_DUP2 1 84#define HAVE_STRUCT_UTMP_UT_HOST 1 85#define HAVE_DIRENT_H 1 86#define PROTOTYPES 1 87#define HAVE_GETCWD 1 88#define HAVE_GETHOSTNAME 1 89#define HAVE_MEMMOVE 1 90#define HAVE_MEMSET 1 91#define HAVE_NICE 1 92#define HAVE_SBRK 1 93#define HAVE_STDLIB_H 1 94#define HAVE_STRSTR 1 95#define HAVE_WCHAR_H 1 96#define GETPGRP_VOID 1 97#define HAVE_DECL_GETPGRP 1 98#define HAVE_STRUCT_DIRENT_D_INO 1 99#define HAVE_STRERROR 1 100 101#define SHORT_STRINGS 102 103#define SIZEOF_WCHAR_T 2 104 105#define RCSID(id) static char *rcsid = (id); 106 107// fake defines 108#define HAVE_SETPGID 1 109/****************** local defines *********************/ 110 111#define _PATH_TCSHELL "/bin/tcsh" 112#define ECHO_STYLE BOTH_ECHO 113 114 115#undef REMOTEHOST 116 117#define CASE_INSENSITIVE 118#define HASHBANG 119#undef NLS_CATALOGS 120 121#define _CRT_SECURE_NO_DEPRECATE 1 122#define _CRT_NONSTDC_NO_DEPRECATE 1 123#include <limits.h> 124#include <ntport.h> 125 126#include "config_f.h" 127#undef REMOTEHOST 128#undef AUTOLOGOUT 129#endif /* _h_config */ 130