1 /*************************************************************************** 2 JSPICE3 adaptation of Spice3f4 - Copyright (c) Stephen R. Whiteley 1994 3 Copyright 1990 Regents of the University of California. All rights reserved. 4 Author: 1993 Stephen R. Whiteley 5 **************************************************************************** 6 * Configuration Header for MSDOS 7 ****************************************************************************/ 8 9 #define DIR_CWD "." 10 #define DIR_PATHSEP "\\" 11 #define DIR_TERM '\\' 12 #define TEMPFORMAT "%s%d.tmp" 13 #define AVAIL_MFB 14 15 #if __NDPC__ || __GNUC__ 16 /* Microway NDPC 3.2 */ 17 /* djgpp GNU C / GO32 */ 18 19 #define HAVE_CTYPE_H /* <ctype.h>, iswhite( ), etc. */ 20 #define HAVE_ACCESS /* access( ) */ 21 #define HAVE_BCOPY /* bcopy( ), bzero( ) */ 22 #define HAVE_CHDIR /* for tree filesystems, chdir( ) */ 23 #define HAVE_CLEARERR /* clearerr( ), should be in stdio */ 24 #define HAVE_DUP2 /* dup2(a, b) for shifting file descrs. */ 25 #define HAVE_FTIME /* ftime() */ 26 #define HAVE_GETCWD /* getcwd(buf, size) */ 27 #define HAVE_GETENV /* getenv( ) */ 28 #define HAVE_GETPID /* getpid( ) to identify processes */ 29 #define HAVE_ISATTY /* isatty( ) */ 30 #define HAVE_PERROR /* perror( ) defined by standard '.h's */ 31 #define HAVE_QSORT /* qsort( ) exists */ 32 #define HAVE_SETJMP /* setjmp( ), longjmp( ) */ 33 #define HAVE_SIGNAL /* signal( ), kill( ) */ 34 #define HAVE_SRANDOM /* srandom( ) and random( ) */ 35 #define HAVE_STAT /* stat( ) returns info on files */ 36 #define HAVE_STDLIB /* #include <stdlib.h> for libc defs */ 37 #define HAVE_STRCHR /* strchr( ) instead of index( ) */ 38 #define HAVE_SYSTEM /* system( ), execute system command */ 39 #define HAVE_TIMES /* times( ) */ 40 #define HAVE_UNLINK /* unlink( ), for removing files */ 41 42 #if __NDPC__ 43 #define HAVE_DOSDIRS /* Emulate opendir, etc. */ 44 #define random rand 45 #define srandom srand 46 #define kill(pid,sig) raise(sig) 47 #endif 48 49 #if __GNUC__ 50 #define HAVE_GETTIMEOFDAY /* gettimeofday() */ 51 #define HAVE_SYS_DIR_H /* <sys/dir.h> */ 52 #define HAVE_GETRUSAGE /* getrusage( ) */ 53 #define HAVE_DOSRLIMIT /* Use (special) _memavl( ) */ 54 #endif 55 56 #define TIOCSTI 1 57 #define RETSIGTYPE void 58 59 #else 60 An Error! 61 #endif 62