Rev 7049 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3107 | leency | 1 | //Asper |
5598 | pavelyakov | 2 | #ifndef INCLUDE_LIBIO_H |
3 | #define INCLUDE_LIBIO_H |
||
3107 | leency | 4 | |
5598 | pavelyakov | 5 | #ifndef INCLUDE_KOLIBRI_H |
6 | #include "../lib/kolibri.h" |
||
7 | #endif |
||
8 | |||
9 | #ifndef INCLUDE_DLL_H |
||
10 | #include "../lib/dll.h" |
||
11 | #endif |
||
12 | |||
3107 | leency | 13 | //library |
14 | dword libio = #alibio; |
||
7252 | leency | 15 | char alibio[] = "/sys/lib/libio.obj"; //"libio.obj"; |
3107 | leency | 16 | |
17 | dword libio_init = #alibio_init; |
||
18 | dword file_size = #afile_size; |
||
19 | dword file_open = #afile_open; |
||
20 | dword file_read = #afile_read; |
||
21 | dword file_close = #afile_close; |
||
3839 | Asper | 22 | $DD 2 dup 0 |
3107 | leency | 23 | |
24 | |||
25 | //import libio , \ |
||
7252 | leency | 26 | char alibio_init[] = "lib_init"; |
27 | char afile_size[] = "file_size"; |
||
28 | char afile_open[] = "file_open"; |
||
29 | char afile_read[] = "file_read"; |
||
30 | char afile_close[] = "file_close"; |
||
3107 | leency | 31 | |
32 | //align 4 |
||
33 | //dword fh=0; |
||
34 | |||
35 | #define O_BINARY 0 |
||
36 | #define O_READ 1 |
||
37 | #define O_WRITE 2 |
||
38 | #define O_CREATE 4 |
||
39 | #define O_SHARE 8 |
||
40 | #define O_TEXT 16 |
||
41 | |||
42 | #define SEEK_SET 0 |
||
43 | #define SEEK_CUR 1 |
||
44 | #define SEEK_END 2 |
||
5598 | pavelyakov | 45 | |
46 | #endif |