home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntinc25.zoo / types.h < prev    next >
C/C++ Source or Header  |  1992-12-12  |  829b  |  45 lines

  1. #ifndef _TYPES_H
  2. #define _TYPES_H
  3.  
  4. #ifndef _COMPILER_H
  5. #include <compiler.h>
  6. #endif
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _SIZE_T
  13. #define _SIZE_T __SIZE_TYPEDEF__
  14. typedef _SIZE_T size_t;
  15. #endif
  16.  
  17. #ifndef _TIME_T
  18. #define _TIME_T long
  19. typedef _TIME_T time_t;
  20. #endif
  21.  
  22. typedef long off_t;
  23.  
  24. typedef unsigned char    u_char;
  25. typedef unsigned short    u_short;
  26. typedef unsigned long    u_long;
  27.  
  28. typedef unsigned short    dev_t;        /* holds a device type */
  29. #define major(dev)    (((dev)&0xff00)>>8)
  30. #define minor(dev)    ((dev)&0x00ff)
  31.  
  32. typedef u_long        ino_t;        /* holds an inode (fake under GEMDOS) */
  33. typedef _UID_T        uid_t;        /* user id type */
  34. typedef _GID_T        gid_t;        /* group id type */
  35. typedef _PID_T        pid_t;        /* process id type */
  36. typedef void *        caddr_t;
  37.  
  38. #include <utime.h>            /* sigh! */
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43.  
  44. #endif /* _TYPES_H */
  45.