* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / bootblocks / readfs.h
blob5a52bbb9667016edb6cccaa2b8c35d2bc81f5554
2 /* Functions for reading from one file at a time in the root directory
3 * of a raw filesystem.
4 */
6 #ifdef __STDC__
7 #define P(x) x
8 #else
9 #define P(x) ()
10 #endif
12 int open_file P((char * fname));
13 int rewind_file P((void));
14 int close_file P((void));
15 long file_length P((void));
16 int read_block P((char * buffer));
18 int tar_open_file P((char * fname));
19 int tar_rewind_file P((void));
20 int tar_close_file P((void));
21 long tar_file_length P((void));
22 int tar_read_block P((char * buffer));
24 int min_open_file P((char * fname));
25 int min_rewind_file P((void));
26 int min_close_file P((void));
27 long min_file_length P((void));
28 int min_read_block P((char * buffer));
30 int dos_open_file P((char * fname));
31 int dos_rewind_file P((void));
32 int dos_close_file P((void));
33 long dos_file_length P((void));
34 int dos_read_block P((char * buffer));
36 #define read_sector(__sect) read_lsector((unsigned long)(__sect))
37 char * read_lsector P((long sector));
38 void reset_disk P((void));
40 extern char * track_buffer;
41 extern int disk_drive;
42 extern int disk_cyls;
43 extern int disk_heads;
44 extern int disk_spt;