/* stdinclude.h * */ /* fics - An internet chess server. Copyright (C) 1993 Richard V. Nash This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ /* Revision history: name email yy/mm/dd Change Richard Nash 93/10/22 Created */ #ifndef _STDINCLUDE_H #define _STDINCLUDE_H #include /* Set up system specific defines */ #if defined(SYSTEM_NEXT) #define HASMALLOCSIZE #include #elif defined(SYSTEM_ULTRIX) #include #include #endif #ifdef SYSTEM_USL # define NO_TM_ZONE #endif #ifdef SYSTEM_SUN4 # define USE_VARARGS #endif #ifdef SGI #define _BSD_SIGNALS #include #include #endif #if defined(SYSTEM_RS6K) #include #include #define USE_DIRENT #endif /* These are included into every .c file */ #if defined(SYSTEM_SUN5) #define USE_RLIMIT #define USE_TIMES #define USE_WAITPID #define GOOD_STDIO #define NO_TM_ZONE #include #include #include #include #include #include #include #define direct dirent #else #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Forward declare the functions that aren't defined above */ #if defined(SGI) #include #define GOOD_STDIO #define NO_TM_ZONE #else #define GOOD_STDIO /* extern FILE *popen(char *, char *); extern int pclose(FILE *); extern int fputs(char *, FILE *); extern int fseek(FILE *, long, int); extern int fread(char *, int, int, FILE *); extern int fwrite(char *, int, int, FILE *); extern int socket(int, int, int); extern int atoi (char *nptr); extern long atol (char *nptr); extern int truncate(char *, off_t), ftruncate(int, off_t); */ #endif #ifndef GOOD_STDIO extern int fclose(FILE *); extern int fscanf(FILE *, char *, ...); extern int fprintf(FILE *, char *, ...); extern int printf(char *, ...); #endif #ifndef NETBSD //extern char *crypt (char *key, char *salt); #endif extern time_t time(time_t *); extern int rand(void); extern int close(int); extern size_t malloc_size(void *ptr); #endif /* _STDINCLUDE_H */