Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* Project: OSLib |
2 | * Description: The OS Construction Kit |
||
3 | * Date: 1.6.2000 |
||
4 | * Idea by: Luca Abeni & Gerardo Lamastra |
||
5 | * |
||
6 | * OSLib is an SO project aimed at developing a common, easy-to-use |
||
7 | * low-level infrastructure for developing OS kernels and Embedded |
||
8 | * Applications; it partially derives from the HARTIK project but it |
||
9 | * currently is independently developed. |
||
10 | * |
||
11 | * OSLib is distributed under GPL License, and some of its code has |
||
12 | * been derived from the Linux kernel source; also some important |
||
13 | * ideas come from studying the DJGPP go32 extender. |
||
14 | * |
||
15 | * We acknowledge the Linux Community, Free Software Foundation, |
||
16 | * D.J. Delorie and all the other developers who believe in the |
||
17 | * freedom of software and ideas. |
||
18 | * |
||
19 | * For legalese, check out the included GPL license. |
||
20 | */ |
||
21 | |||
22 | /* Accessing a DOS filesystem from OSLib/X */ |
||
23 | |||
24 | #ifndef __LL_I386_X_DOS_H__ |
||
25 | #define __LL_I386_X_DOS_H__ |
||
26 | |||
27 | #include <ll/i386/defs.h> |
||
28 | BEGIN_DEF |
||
29 | |||
30 | #include <ll/i386/x-bios.h> |
||
31 | |||
32 | typedef struct { |
||
33 | LIN_ADDR buf; |
||
34 | LIN_ADDR n1; |
||
35 | char n2[80]; |
||
36 | BYTE mode,index; |
||
37 | DWORD handle,offset; |
||
38 | } DOS_FILE; |
||
39 | |||
40 | #ifdef __NOH4__ |
||
41 | int DOS_init(void); |
||
42 | #endif |
||
43 | DOS_FILE *DOS_fopen(char *name, char *mode); |
||
44 | void DOS_fclose(DOS_FILE *f); |
||
45 | DWORD DOS_fread(void *buf,DWORD size,DWORD num,DOS_FILE *f); |
||
46 | DWORD DOS_fwrite(void *buf,DWORD size,DWORD num,DOS_FILE *f); |
||
47 | unsigned DOS_error(void); |
||
48 | |||
49 | END_DEF |
||
50 | |||
51 | #endif |