home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / OLEO130S.ZIP / oleo130s.tar / oleo-1.3 / sysdef.h < prev    next >
C/C++ Source or Header  |  1993-03-30  |  3KB  |  138 lines

  1. #ifndef SYSDEFH
  2. #define SYSDEFH
  3. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this software; see the file COPYING.  If not, write to
  17. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18. /*  t. lord    Sun Aug  9 22:03:36 1992    */
  19.  
  20.  
  21.  
  22. #ifdef STDC_HEADERS
  23. #include <stddef.h>
  24. #endif
  25.  
  26. #include <sys/types.h>
  27. #ifdef HAVE_SYS_TIME_H
  28. #include <sys/time.h>
  29. #endif
  30. #ifdef HAVE_SYS_SELECT_H
  31. #include <sys/select.h>
  32. #endif
  33. #include <sys/stat.h>
  34.   
  35. #ifdef HAVE_UNISTD_H
  36. #include <unistd.h>
  37. #else
  38. #ifdef __STDC__
  39. extern int access (char *, int);
  40. extern int getuid (void);
  41. #endif
  42. #endif /* HAVE_UNISTD_H */
  43.  
  44. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  45. #include <string.h>
  46. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  47. #if !defined(STDC_HEADERS) && HAVE_MEMORY_H
  48. #include <memory.h>
  49. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  50. #ifndef index
  51. #define index strchr
  52. #endif
  53. #ifndef rindex
  54. #define rindex strrchr
  55. #endif
  56. #ifndef bcopy
  57. #define bcopy(s, d, n) memcpy ((d), (s), (n))
  58. #endif
  59. #ifndef bcmp
  60. #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
  61. #endif
  62. #ifndef bzero
  63. #define bzero(s, n) memset ((s), 0, (n))
  64. #endif
  65. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  66. #include <strings.h>
  67. /* memory.h and strings.h conflict on some systems.  */
  68. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  69.  
  70. #include <math.h>
  71. #include <time.h>
  72. #include <signal.h>
  73.  
  74.  
  75. #ifdef __STDC__
  76. #if 0                /* Hopefully these aren't necessary. */
  77. extern int gethostname (char *, int);
  78. extern int atoi (const char *);
  79. #endif
  80. extern char *getenv (const char *);
  81.  
  82. #ifndef HAVE_STRDUP
  83. extern char *strdup (const char *);
  84. #endif
  85. #ifndef HAVE_STRICMP
  86. extern int stricmp (const char *, const char *);
  87. #endif
  88. #ifndef HAVE_STRINCMP
  89. extern int strincmp (const char *, const char *, size_t);
  90. #endif
  91. #ifndef HAVE_STRSTR
  92. extern const char *strstr (const char *, const char *);
  93. #endif
  94.  
  95. #else  /* !defined(__STDC__) */
  96.  
  97. #ifndef HAVE_STRDUP
  98. extern char *strdup ();
  99. #endif
  100. #ifndef HAVE_STRSTR
  101. extern char *strstr ();
  102. #endif
  103.  
  104. #endif /* !defined(__STDC__) */
  105.  
  106. extern char *getenv ();
  107.  
  108. #ifndef RETSIGTYPE
  109. #define RETSIGTYPE void
  110. #endif /* RETSIGTYPE */
  111.  
  112. #ifndef VOIDSTAR
  113. #define VOIDSTAR void *
  114. #endif
  115.  
  116. #ifndef __STDC__
  117. #define const
  118. #define volatile
  119. #endif
  120.  
  121. #if defined(USE_DLD) && 0
  122. extern int dld_errno;
  123. extern int dld_nerr;
  124. extern char *dld_errlst[];
  125. extern dld_undefined_sym_count;
  126. extern char *dld_search_path;
  127. extern void (*dld_get_func())();
  128. extern int dld_unlink_by_file EXT2(char *,int);
  129. extern int dld_link EXT1(char *);
  130. extern int dld_function_executable_p EXT1(char *);
  131. extern int dld_init EXT1(char *);
  132. extern char *dld_find_executable EXT1(char *);
  133. extern char ** dld_list_undefined_sym EXT0();
  134. #endif
  135.  
  136.  
  137. #endif
  138.