Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4921 | Rev 6536 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include |
1 | #include |
- | 2 | #include |
|
2 | #include "io.h" |
3 | #include "io.h" |
Line 3... | Line 4... | ||
3 | 4 | ||
Line 4... | Line 5... | ||
4 | extern __io_handle __io_tab[64]; |
5 | extern __io_handle __io_tab[64]; |
Line 9... | Line 10... | ||
9 | *done = 0; |
10 | *done = 0; |
10 | return 10; |
11 | return 10; |
11 | }; |
12 | }; |
12 | 13 | ||
Line -... | Line 14... | ||
- | 14 | //static int fake_io_read(const char *path, void *buff, |
|
- | 15 | // size_t offset, size_t count, size_t *done) __attribute__ ((alias("fake_io"))); |
|
- | 16 | ||
13 | static int fake_io_read(const char *path, void *buff, |
17 | static int fake_io_read(const char *path, void *buff, |
14 | size_t offset, size_t count, size_t *done) __attribute__ ((alias("fake_io"))); |
18 | size_t offset, size_t count, size_t *done) |
- | 19 | { |
|
- | 20 | printf("%s path:%s buf:%p offset:%d count:%d\n", |
|
- | 21 | __FUNCTION__, path, buff, offset, count); |
|
- | 22 | ||
- | 23 | } |
|
Line 15... | Line 24... | ||
15 | 24 | ||
16 | static int fake_io_write(const char *path, const void *buff, |
25 | static int fake_io_write(const char *path, const void *buff, |
Line 17... | Line 26... | ||
17 | size_t offset, size_t count, size_t *done) __attribute__ ((alias("fake_io"))); |
26 | size_t offset, size_t count, size_t *done) __attribute__ ((alias("fake_io"))); |