* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / bios / io.h
bloba098e0331b1fd0222c5576183fc7dd829baa13ec
1 #ifndef __io_h__
2 #define __io_h__
4 typedef struct {
5 /*
6 * both block_read/block_write should be defined as
7 * int x(ioblock* iob, char* buffer, int blockno)
8 * and it reads/writes 1k blocks
10 * close should be defined as int x(ioblock* ioblock);
12 int (*block_read)(); /* read routine */
13 int (*block_write)(); /* write routine - not supported yet*/
14 int (*close)(); /* close routine */
15 long offset; /* current offset in file to read/write */
16 int flags;
17 long amount_left; /* amount left in buffer */
18 char buffer[1024];
19 void* context;
20 } ioblock;
22 #endif