1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
/* File: h-system.h */
#ifndef INCLUDED_H_SYSTEM_H
#define INCLUDED_H_SYSTEM_H
/*
* Include the basic "system" files.
*
* Make sure all "system" constants/macros are defined.
* Make sure all "system" functions have "extern" declarations.
*
* This file is a big hack to make other files less of a hack.
* This file has been rebuilt -- it may need a little more work.
*/
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#if defined(NeXT)
# include <libc.h>
#else
# include <stdlib.h>
#endif
#ifdef SET_UID
# include <sys/types.h>
# if defined(Pyramid) || defined(NeXT) || defined(SUNOS) || \
defined(NCR3K) || defined(SUNOS) || defined(ibm032) || \
defined(__osf__) || defined(ISC) || defined(SGI) || \
defined(linux)
# include <sys/time.h>
# endif
# if !defined(SGI) && !defined(ULTRIX)
# include <sys/timeb.h>
# endif
#endif
#include <time.h>
#ifdef MACINTOSH
# include <unix.h>
#endif
#if defined(WINDOWS) || defined(MSDOS)
# include <io.h>
#endif
#if !defined(MACINTOSH) && \
!defined(__MWERKS__)
# if defined(__TURBOC__) || defined(__WATCOMC__)
# include <mem.h>
# else
# include <memory.h>
# endif
#endif
#if !defined(NeXT) && !defined(__MWERKS__)
# include <fcntl.h>
#endif
#ifdef SET_UID
# ifndef USG
# include <sys/param.h>
# include <sys/file.h>
# endif
# ifdef linux
# include <sys/file.h>
# endif
# include <pwd.h>
# include <unistd.h>
# include <sys/stat.h>
# if defined(SOLARIS)
# include <netdb.h>
# endif
#endif
#ifdef __DJGPP__
#include <unistd.h>
#endif /* __DJGPP__ */
#ifdef SET_UID
#ifdef USG
# include <string.h>
#else
# include <strings.h>
# ifndef strstr
extern char *strstr();
# endif
# ifndef strchr
extern char *strchr();
# endif
# ifndef strrchr
extern char *strrchr();
# endif
#endif
#else
# include <string.h>
#endif
#if !defined(linux) && !defined(__MWERKS__)
extern long atol();
#endif
#include <stdarg.h>
#endif
/* There was a bug introduced in 10.4.11; working around it */
#ifdef __APPLE__
#define GETLOGIN_BROKEN
#endif
|