diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-12-01 16:58:31 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:34:16 +0200 |
commit | f8de35da65c5d93bb733073cf40da154bc1c0748 (patch) | |
tree | d28c7644739a24402376d24cb0020ea410a9ccff /libc/bios | |
parent | c218c617b5be443b7968308506969ad2b726d73c (diff) | |
download | dev86-f8de35da65c5d93bb733073cf40da154bc1c0748.tar.gz |
Import Dev86src-0.0.9.tar.gzv0.0.9
Diffstat (limited to 'libc/bios')
-rw-r--r-- | libc/bios/bios.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libc/bios/bios.c b/libc/bios/bios.c index 18e2448..3059fd9 100644 --- a/libc/bios/bios.c +++ b/libc/bios/bios.c @@ -115,6 +115,27 @@ reti_ins: /****************************************************************************/ +#ifdef L___file_3 + +/* If the block function does track buffering this should be ok ... */ +struct { + int (*block_rw)(); /* Args (rwoc, &buffer, blockno) 1k blocks */ + /* 0 = read, 1 = write */ + /* 2 = open, buffer is fname ptr */ + /* 3 = close, other args ignored */ + long offset; + + int flags; + long block_num; + char buffer[1024]; +} __file_3_data; + +#define FILE3_OPEN 1 /* File is open */ +#define FILE3_DATA 2 /* buffer has valid contents */ +#define FILE3_DIRTY 4 /* buffer has been modified */ + +#endif + #ifdef L_bios_write write(fd,buf,len) int fd,len; |