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

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