Subversion Repositories Kolibri OS

Rev

Rev 5598 | Go to most recent revision | 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;
15
char alibio[21] = "/sys/lib/libio.obj\0"; //"libio.obj\0";
5621 leency 16
?define LIB_IO_LOAD_ERR "Error while loading library /rd/1/lib/libio.obj"
3107 leency 17
 
18
dword libio_init = #alibio_init;
19
dword file_size  = #afile_size;
20
dword file_open = #afile_open;
21
dword file_read  = #afile_read;
22
dword file_close = #afile_close;
3839 Asper 23
$DD 2 dup 0
3107 leency 24
 
25
 
26
//import  libio                     , \
27
char alibio_init[9] = "lib_init\0";
28
char afile_size[11]  = "file_size\0";
29
char afile_open[12] = "file_open\0";
30
char afile_read[11]  = "file_read\0";
31
char afile_close[12] = "file_close\0";
32
 
33
//align 4
34
//dword fh=0;
35
 
36
#define O_BINARY  0
37
#define O_READ    1
38
#define O_WRITE   2
39
#define O_CREATE  4
40
#define O_SHARE   8
41
#define O_TEXT    16
42
 
43
#define SEEK_SET  0
44
#define SEEK_CUR  1
45
#define SEEK_END  2
5598 pavelyakov 46
 
47
#endif