home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MLNK10CS.ZIP / DISKIO.H < prev    next >
Text File  |  1990-03-08  |  3KB  |  89 lines

  1. /*
  2.                        Message Base Reply Chain Linker
  3.  
  4.               This module was originally written by Bob Hartman
  5.                        Sysop of FidoNet node 1:132/101
  6.  
  7.    Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
  8.  
  9.  This program source code is being released with the following provisions:
  10.  
  11.  1.  You are  free to make  changes to this source  code for use on your own
  12.  machine,  however,  altered source files may not be distributed without the 
  13.  consent of Spark Software.
  14.  
  15.  2.  You may distribute "patches"  or  "diff" files for any changes that you
  16.  have made, provided that the "patch" or "diff" files are also sent to Spark
  17.  Software for inclusion in future releases of the entire package.   A "diff"
  18.  file for the source archives may also contain a compiled version,  provided
  19.  it is  clearly marked as not  being created  from the original source code.
  20.  No other  executable  versions may be  distributed without  the  consent of
  21.  Spark Software.
  22.  
  23.  3.  You are free to include portions of this source code in any program you
  24.  develop, providing:  a) Credit is given to Spark Software for any code that
  25.  may is used, and  b) The resulting program is free to anyone wanting to use
  26.  it, including commercial and government users.
  27.  
  28.  4.  There is  NO  technical support  available for dealing with this source
  29.  code, or the accompanying executable files.  This source  code  is provided
  30.  as is, with no warranty expressed or implied (I hate legalease).   In other
  31.  words, if you don't know what to do with it,  don't use it,  and if you are
  32.  brave enough to use it, you're on your own.
  33.  
  34.  Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
  35.  on the public FidoNet network, or at the address given above.
  36.  
  37. */
  38.  
  39. typedef struct {
  40.    unsigned char jmp[3];
  41.    char oem_name[8];
  42.    unsigned int bytes_per_sector;
  43.    unsigned char sectors_per_cluster;
  44.    unsigned int reserved_sectors;
  45.    unsigned char number_of_FATs;
  46.    unsigned int root_directory_entries;
  47.    unsigned int total_sectors;
  48.    unsigned char media_descriptor;
  49.    unsigned int sectors_per_FAT;
  50.    unsigned int sectors_per_track;
  51.    unsigned int number_of_heads;
  52.    unsigned int number_of_hidden_sectors;
  53.    unsigned char junk[482];
  54. } BPB;
  55.  
  56. typedef struct {
  57.    char filename[8];
  58.    char extension[3];
  59.    unsigned char attribute;
  60.    char reserved[10];
  61.    unsigned int time;
  62.    unsigned int date;
  63.    unsigned int cluster;
  64.    unsigned long size;
  65. } DIR;
  66.  
  67. typedef struct {
  68.    unsigned char drive;
  69.    char filename[8];
  70.    char extension[3];
  71.    unsigned int block_number;
  72.    unsigned int record_size;
  73.    unsigned long file_size;
  74.    unsigned int date;
  75.    unsigned int time;
  76.    char reserved[8];
  77.    unsigned char curr_record_number;
  78.    unsigned long random_record_number;
  79. } NORM_FCB;
  80.  
  81. typedef struct {
  82.    unsigned char marker;
  83.    char reserved[5];
  84.    unsigned char attribute;
  85.    NORM_FCB fcb;
  86. } EXT_FCB;
  87.  
  88.  
  89.