]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/arch/arm/generic/libs/misc/system_stub.h
b1e337555b55cd1a84315c4463c397ec71a59a29
[lincan.git] / embedded / arch / arm / generic / libs / misc / system_stub.h
1 #ifndef _SYSTEM_STUB_H_
2 #define _SYSTEM_STUB_H_
3
4 #include <types.h>
5
6 typedef struct system_stub_ops_t {
7   int (*open)(const char * path, int flags, ...);
8   int (*close)(int file);
9   int (*read)(int file, char * ptr, int len);
10   int (*write)(int file, char * ptr, int len);
11   int (*lseek)(int file, int ptr, int dir);
12 } system_stub_ops_t;
13
14 extern system_stub_ops_t system_stub_ops;
15
16 #endif /* _SYSTEM_DEF_H_ */