home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / archvrs / msdos / unshar / dos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-09-25  |  839 b   |  62 lines

  1. /*
  2.  *    DOS.H
  3.  */
  4.  
  5. # define BUFSIZ 1024
  6.  
  7. struct stat {
  8.     long     st_size;
  9.     char     st_mode;
  10.     unsigned st_time,
  11.              st_date;
  12. };
  13.  
  14. # define ST_DIR        0x10
  15. # define ST_HIDDEN       2
  16. # define ST_VOL           8
  17. # define ST_READONLY       1
  18. # define ST_DIRTY    0x20
  19.  
  20.  
  21.  
  22. typedef struct direct {
  23.     char d_res_1 [21],
  24.          d_mode;
  25.     unsigned d_time,
  26.              d_date;
  27.     long     d_size;
  28.     char d_name [13];
  29. } DIR;
  30.  
  31. # ifndef TRUE
  32. # define TRUE 1
  33. # define FALSE 0
  34. # define NULL 0
  35. # endif
  36.  
  37.  
  38. # define db_out(s) fputs (s, 1)
  39.  
  40. /*
  41.  *    IOCTL stuff for raw_mode & normode
  42.  */
  43.  
  44. struct ioctlbuf {
  45.     unsigned cmd,
  46.              handle,
  47.              cnt,
  48.              devdata;
  49. };
  50.  
  51.  
  52. /*
  53.  *    IOCTL Command Defines
  54.  */
  55.  
  56. # define IOCTL_GET   0x4400
  57. # define IOCTL_SET   0x4401
  58.  
  59. # define RAW_MODE    0x0020
  60. # define COOKED_MODE 0x00DF
  61.  
  62.