/* autoconf.h.in -- System-dependent configuration information */ #ifndef AUTOCONF_H #define AUTOCONF_H #include "copyright.h" /* --------------------------------------------------------------------------- * Configuration section: * * These defines are written by the configure script. * Change them if need be */ /* Define if we have stdlib.h et al */ #undef STDC_HEADERS /* Define if we have string.h instead of strings.h */ #undef USG /* Define if we have unistd.h */ #undef HAVE_UNISTD_H /* Define if we have memory.h and need it to get memcmp et al */ #undef NEED_MEMORY_H /* Decl for pid_t */ #undef pid_t /* signal() return type */ #define RETSIGTYPE void /* Define if we have vfork.h */ #undef HAVE_VFORK_H /* Define if vfork is broken */ #undef vfork /* Define if wait3 exists and works */ #undef HAVE_WAIT3 /* Define if struct tm is not in time.h */ #undef TM_IN_SYS_TIME /* Define if struct tm has a timezone member */ #undef HAVE_TM_ZONE /* Define if tzname[] exists */ #undef HAVE_TZNAME /* Define if setrlimit exists */ #undef HAVE_SETRLIMIT /* Define if getrusage exists */ #undef HAVE_GETRUSAGE /* Define if timelocal exists */ #undef HAVE_TIMELOCAL /* Define if mktime exists */ #undef HAVE_MKTIME /* Define if getdtablesize exists */ #undef HAVE_GETDTABLESIZE /* Define if getpagesize exists */ #undef HAVE_GETPAGESIZE /* Define if gettimeofday exists */ #undef HAVE_GETTIMEOFDAY /* Define if srandom exists */ #undef HAVE_SRANDOM /* Define if sys_siglist[] exists */ #undef HAVE_SYS_SIGLIST /* Define if _sys_siglist[] exists */ #undef HAVE__SYS_SIGLIST /* Define if index/rindex/mem??? are defined in string.h */ #undef INDEX_IN_STRING_H /* Define if malloc/realloc/free are defined in stdlib.h */ #undef MALLOC_IN_STDLIB_H /* Define if calling signal with SIGCHLD when handling SIGCHLD blows chow */ #undef SIGNAL_SIGCHLD_BRAINDAMAGE /* Define if errno.h exists */ #undef HAVE_ERRNO_H /* Define if sys/select.h exists */ #undef HAVE_SYS_SELECT_H /* Define if sys/rusage.h exists */ #undef HAVE_SYS_RUSAGE_H /* Define if const is broken */ #undef const /* Define if char type is unsigned */ #undef __CHAR_UNSIGNED__ /* Define if inline keyword is broken or nonstandard */ #undef inline /* Define if we need to redef index/bcopy et al to their SYSV counterparts */ #undef NEED_INDEX_DCL /* Define if we need to declare malloc et al */ #undef NEED_MALLOC_DCL /* Define if we need to declare vsprintf yourself */ #undef NEED_VSPRINTF_DCL /* Define if you need to declare sys_siglist yourself */ #undef NEED_SYS_SIGLIST_DCL /* Define if you need to declare _sys_siglist yourself */ #undef NEED__SYS_SIGLIST_DCL /* Define if you need to declare sys_errlist yourself */ #undef NEED_SYS_ERRLIST_DCL /* Define if you need to declare _sys_errlist yourself */ #undef NEED_SYS__ERRLIST_DCL /* Define if you need to declare perror yourself */ #undef NEED_PERROR_DCL /* Define if you need to declare sprintf yourself */ #undef NEED_SPRINTF_DCL /* Define if you need to declare getrlimit yourself */ #undef NEED_GETRLIMIT_DCL /* Define if you need to declare getrusage yourself */ #undef NEED_GETRUSAGE_DCL /* Define if struct linger is defined */ #undef HAVE_LINGER /* Define if signal handlers have a struct sigcontext as their third arg */ #undef HAVE_STRUCT_SIGCONTEXT /* Define if stdio.h defines lots of extra functions */ #undef EXTENDED_STDIO_DCLS /* Define if sys/socket.h defines lots of extra functions */ #undef EXTENDED_SOCKET_DCLS /* Define if sys/wait.h defines union wait. */ #undef HAVE_UNION_WAIT /* Define if we may safely include both time.h and sys/time.h */ #undef TIME_WITH_SYS_TIME /* Define if sys/time.h exists */ #undef HAVE_SYS_TIME_H /* --------------------------------------------------------------------------- * Setup section: * * Load system-dependent header files. */ /* Prototype templates for ANSI C and traditional C */ #ifdef __STDC__ #define NDECL(f) f(void) #define FDECL(f,p) f p #ifdef STDC_HEADERS #define VDECL(f,p) f p #else #define VDECL(f,p) f() #endif #else #define NDECL(f) f() #define FDECL(f,p) f() #define VDECL(f,p) f() #endif #ifdef STDC_HEADERS #include <stdarg.h> #include <stdlib.h> #include <limits.h> #else #include <varargs.h> extern int FDECL(atoi, (const char *)); extern double FDECL(atof, (const char *)); extern long FDECL(atol, (const char *)); #endif #ifdef NEED_MEMORY_H #include <memory.h> #endif #if defined(USG) || defined(STDC_HEADERS) #include <string.h> #ifdef NEED_INDEX_DCL #define index strchr #define rindex strrchr #ifdef SOLARIS #define bcopy(s,d,n) memmove(d,s,n) #else #define bcopy(s,d,n) memcpy(d,s,n) #endif #define bcmp(s1,s2,n) memcmp(s1,s2,n) #define bzero(s,n) memset(s,0,n) #endif #else #include <strings.h> extern char * FDECL(strtok, (char *, char *)); extern char * FDECL(strchr, (char *, char)); extern void FDECL(bcopy, (char *, char *, int)); extern void FDECL(bzero, (char *, int)); #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_SYS_RUSAGE_H #include <sys/rusage.h> #endif #ifdef TIME_WITH_SYS_TIME #include <sys/time.h> #include <time.h> #else #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #else #include <time.h> #endif #endif #if defined(HAVE_SETRLIMIT) || defined(HAVE_GETRUSAGE) #include <sys/resource.h> #ifdef NEED_GETRUSAGE_DCL extern int FDECL(getrusage, (int, struct rusage *)); #endif #ifdef NEED_GETRLIMIT_DCL extern int FDECL(getrlimit, (int, struct rlimit *)); extern int FDECL(setrlimit, (int, struct rlimit *)); #endif #endif #include <sys/param.h> #ifndef HAVE_GETPAGESIZE #include "getpagesize.h" #else #ifndef HAVE_UNISTD_H extern int NDECL(getpagesize); #endif /* HAVE_UNISTD_H */ #endif /* HAVE_GETPAGESIZE_H */ #ifdef HAVE_ERRNO_H #include <errno.h> #ifdef NEED_PERROR_DCL extern void FDECL(perror, (const char *)); #endif #else extern int errno; extern void FDECL(perror, (const char *)); #endif #ifdef NEED_SYS_ERRLIST_DCL extern char *sys_errlist[]; #endif #ifndef HAVE_TIMELOCAL #ifndef HAVE_MKTIME #define NEED_TIMELOCAL extern time_t FDECL(timelocal, (struct tm *)); #else #define timelocal mktime #endif /* HAVE_MKTIME */ #endif /* HAVE_TIMELOCAL */ #ifndef tolower extern int FDECL(tolower, (int)); #endif #ifndef toupper extern int FDECL(toupper, (int)); #endif #ifndef HAVE_SRANDOM #define random rand #define srandom srand #else #ifndef random /* only if not a macro */ extern long NDECL(random); #endif #endif /* HAVE_SRANDOM */ #include <sys/types.h> #include <stdio.h> #include <ctype.h> #ifndef VMS #include <fcntl.h> #else #include <sys/fcntl.h> #endif #ifdef NEED_SPRINTF_DCL extern char *VDECL(sprintf, (char *, const char *, ...)); #endif #ifndef EXTENDED_STDIO_DCLS extern int VDECL(fprintf, (FILE *, const char *, ...)); extern int VDECL(printf, (const char *, ...)); extern int VDECL(sscanf, (const char *, const char *, ...)); extern int FDECL(close, (int)); extern int FDECL(fclose, (FILE *)); extern int FDECL(fflush, (FILE *)); extern int FDECL(fgetc, (FILE *)); extern int FDECL(fputc, (int, FILE *)); extern int FDECL(fputs, (const char *, FILE *)); extern int FDECL(fread, (void *, size_t, size_t, FILE *)); extern int FDECL(fseek, (FILE *, long, int)); extern int FDECL(fwrite, (void *, size_t, size_t, FILE *)); extern pid_t FDECL(getpid, (void)); extern int FDECL(pclose, (FILE *)); extern int FDECL(rename, (char *, char *)); extern time_t FDECL(time, (time_t *)); extern int FDECL(ungetc, (int, FILE *)); extern int FDECL(unlink, (const char *)); extern int FDECL(write, (int, const void *, long unsigned int)); #endif #include <sys/socket.h> #ifndef EXTENDED_SOCKET_DCLS extern int FDECL(accept, (int, struct sockaddr *, int *)); extern int FDECL(bind, (int, struct sockaddr *, int)); extern int FDECL(listen, (int, int)); extern int FDECL(sendto, (int, void *, int, unsigned int, struct sockaddr *, int)); extern int FDECL(setsockopt, (int, int, int, void *, int)); extern int FDECL(shutdown, (int, int)); extern int FDECL(socket, (int, int, int)); #endif /* Under linux, use the optimized string functions */ #ifdef __linux__ extern char *___strtok; #include <asm/string.h> #endif typedef int dbref; typedef int FLAG; typedef int POWER; typedef char boolexp_type; typedef char IBUF[16]; #endif /* AUTOCONF_H */