home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / bfd / hosts / i386isc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.3 KB  |  59 lines

  1. /* Host configuration file for Interactive Unix 3.2 */
  2. /* From Minh Tran-Le <TRANLE@INTELLICORP.COM>.  */
  3. #include <fcntl.h>
  4. #include <errno.h>
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include <sys/stat.h>
  8. #include <ctype.h>
  9. #include <string.h>
  10. #include <unistd.h>
  11.  
  12. #ifndef O_ACCMODE
  13. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  14. #endif
  15. #ifndef SEEK_SET
  16. #define SEEK_SET 0
  17. #define SEEK_CUR 1
  18. #endif
  19.  
  20. #define USE_UTIME
  21.  
  22. /* Some things that need to be defined in order to make code written for
  23.    BSD Unix compile under System V Unix.  */
  24.  
  25. /*#include <memory.h>*/
  26. #define bcmp(b1,b2,len)        memcmp(b1,b2,len)
  27. #define bcopy(src,dst,len)    memcpy(dst,src,len)
  28. #define bzero(s,n)        memset(s,0,n)
  29.  
  30. #include <string.h>
  31.  
  32. #ifndef DONTDECLARE_MALLOC
  33. extern PTR  EXFUN(malloc,(unsigned));
  34. extern PTR  EXFUN(realloc, (PTR, unsigned));
  35. extern void EXFUN(free,(PTR));
  36. #endif
  37.  
  38. /* EXACT TYPES */
  39. typedef char int8e_type;
  40. typedef unsigned char uint8e_type;
  41. typedef short int16e_type;
  42. typedef unsigned short uint16e_type;
  43. typedef int int32e_type;
  44. typedef unsigned int uint32e_type;
  45.  
  46. /* CORRECT SIZE OR GREATER */
  47. typedef char int8_type;
  48. typedef unsigned char uint8_type;
  49. typedef short int16_type;
  50. typedef unsigned short uint16_type;
  51. typedef int int32_type;
  52. typedef unsigned int uint32_type;
  53.  
  54. #include "fopen-same.h"
  55.  
  56. #ifndef fileno
  57. #define fileno(fp) ((fp)->_file)
  58. #endif
  59.