home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
tinymush.zip
/
TinyMush
/
os2src
/
autoconf.h.os2
< prev
next >
Wrap
Text File
|
1999-08-28
|
11KB
|
409 lines
/* autoconf.h.in -- System-dependent configuration information */
#ifndef AUTOCONF_H
#define AUTOCONF_H
/* kludge for RCSid variables */
#ifdef _SEQUENT_
#define USE(var) ;
#elif __bsdi__
#define USE(var)
#elif __STDC__
#define USE(var) static void * use_##var = (&use_##var, (void *) &var)
#else
#define USE(var)
#endif
#define L_SET 0
#include "copyright.h"
#define _EMX_TCPIP
/* ---------------------------------------------------------------------------
* Configuration section:
*
* These defines are written by the configure script.
* Change them if need be
*/
/* Define if we have stdlib.h et al */
#define STDC_HEADERS 1
/* Define if we have strchr */
#define HAVE_STRCHR 1
/* Define if we have memcpy */
#define HAVE_MEMCPY 1
/* Define if we have unistd.h */
#define HAVE_UNISTD_H 1
/* 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 */
#define vfork fork
/* 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 */
#define HAVE_TZNAME 1
/* 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 */
#define HAVE_MKTIME 1
/* Define if getdtablesize exists */
#undef HAVE_GETDTABLESIZE
/* Define if getpagesize exists */
#define HAVE_GETPAGESIZE 1
/* Define if gettimeofday exists */
#define HAVE_GETTIMEOFDAY 1
/* Define if srandom exists */
#define HAVE_SRANDOM 1
/* 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 */
#define HAVE_ERRNO_H 1
/* Define if malloc.h exists */
#define HAVE_MALLOC_H 1
/* Define if sys/wait.h exists */
#define HAVE_SYS_WAIT_H 1
/* Define if sys/select.h exists */
#define HAVE_SYS_SELECT_H 1
/* 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 */
#define NEED_INDEX_DCL 1
/* Define if we need to declare malloc et al */
#undef NEED_MALLOC_DCL
/* Define if you 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 */
#define EXTENDED_STDIO_DCLS 1
/* Define if sys/socket.h defines lots of extra functions */
#define EXTENDED_SOCKET_DCLS 1
/* Define if sys/wait.h defines union wait. */
#undef HAVE_UNION_WAIT
/* Define if we have system-supplied ndbm routines */
#undef HAVE_NDBM
/* Define if we have system-supplied (old) dbm routines */
#undef HAVE_DBM
/* Define if we may safely include both time.h and sys/time.h */
#define TIME_WITH_SYS_TIME 1
/* Define if sys/time.h exists */
#define HAVE_SYS_TIME_H
/* Define if you need to declare gettimeofday yourself */
#undef NEED_GETTIMEOFDAY_DCL
//#define NEED_GETTIMEOFDAY_DCL 1
/* Define if you need to declare wait3 yourself */
#undef NEED_WAIT3_DCL
/* Define if you need to declare srandom yourself */
#undef NEED_SRANDOM_DCL
/* ---------------------------------------------------------------------------
* 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
# ifdef __STDC__
# include <stdarg.h>
# else /* __STDC__ */
# include <varargs.h>
# endif /* __STDC__ */
#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 *));
extern int FDECL(qsort, (char *, int, int, int (*)()));
#endif
#ifdef NEED_MEMORY_H
#include <memory.h>
#endif
#ifdef STDC_HEADERS
#include <string.h>
#ifdef NEED_INDEX_DCL
#define index strchr
#define rindex strrchr
#define bcopy(s,d,n) memmove(d,s,n)
#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 int FDECL(bcmp, (char *, char *, int));
//extern void FDECL(bzero, (char *, int));
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#ifndef HAVE_GETPAGESIZE
#ifndef _SC_PAGE_SIZE
#define NM_BLOODY_PAGE_SYMBOL _SC_PAGESIZE
#else
#define NM_BLOODY_PAGE_SYMBOL _SC_PAGE_SIZE
#endif
#endif
#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
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_GETTIMEOFDAY
#ifdef NEED_GETTIMEOFDAY_DCL
extern int FDECL(gettimeofday, (struct timeval *, struct timezone *));
#endif
#endif
#ifdef HAVE_GETDTABLESIZE
extern int NDECL(getdtablesize);
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <sys/wait.h>
#ifdef HAVE_WAIT3
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef NEED_WAIT3_DCL
#ifdef HAVE_UNION_WAIT
extern int FDECL(wait3, (union wait *, int, struct rusage *));
#else
extern int FDECL(wait3, (int *, int, struct rusage *));
#endif
#endif
#endif
#include <sys/param.h>
#ifndef HAVE_GETPAGESIZE
#ifdef EXEC_PAGESIZE
#define getpagesize() EXEC_PAGESIZE
#else
#ifdef NBPG
#ifndef CLSIZE
#define CLSIZE 1
#endif /* no CLSIZE */
#define getpagesize() NBPG * CLSIZE
#else /* no NBPG */
#define getpagesize() NBPC
#endif /* no NBPG */
#endif /* no EXEC_PAGESIZE */
#else
#ifdef linux
extern size_t NDECL(getpagesize);
#else
extern int NDECL(getpagesize);
#endif
#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 HAVE_MALLOC_H
#include <malloc.h>
#else
#ifdef NEED_MALLOC_DCL
extern char * FDECL(malloc, (int));
extern char * FDECL(realloc, (char *, int));
extern int FDECL(free, (char *));
#endif
#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
#ifdef HAVE_VFORK_H
#include <vfork.h>
#endif
//#ifndef HAVE_SRANDOM
#define random rand
#define srandom srand
//#else
//#ifdef NEED_SRANDOM_DCL
//#ifndef random /* only if not a macro */
//extern long NDECL(random);
//#endif
//#ifdef __i386__
//extern void FDECL(srandom, (unsigned));
//#else
//extern int FDECL(srandom, (int));
//#endif /* __i386__ */
//#endif /* NEED_SRANDOM_DCL */
//#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 *));
#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));
extern int FDECL(select, (int, fd_set *, fd_set *, fd_set *, struct timeval *));
#endif
typedef int dbref;
typedef int FLAG;
typedef char boolexp_type;
typedef char IBUF[16];
#endif /* AUTOCONF_H */