Rev 3247 | Rev 3251 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3247 | Rev 3250 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | */ |
37 | */ |
| 38 | 38 | ||
| 39 | #include "tmpfs.h" |
39 | #include "tmpfs.h" |
| 40 | #include "../../vfs/vfs.h" |
40 | #include "../../vfs/vfs.h" |
| 41 | #include <ipc/ipc.h> |
41 | #include <ipc/ipc.h> |
| - | 42 | #include <async.h> |
|
| 42 | #include <errno.h> |
43 | #include <errno.h> |
| 43 | #include <stdlib.h> |
44 | #include <stdlib.h> |
| 44 | #include <string.h> |
45 | #include <string.h> |
| 45 | #include <sys/types.h> |
46 | #include <sys/types.h> |
| 46 | #include <as.h> |
47 | #include <as.h> |
| Line 82... | Line 83... | ||
| 82 | left -= rd; |
83 | left -= rd; |
| 83 | } |
84 | } |
| 84 | 85 | ||
| 85 | if (*bufpos == *buflen) { |
86 | if (*bufpos == *buflen) { |
| 86 | ipcarg_t retval; |
87 | ipcarg_t retval; |
| 87 | int rc = ipc_call_sync_2_1(phone, RD_READ_BLOCK, |
88 | int rc = async_req_2_1(phone, RD_READ_BLOCK, |
| 88 | *pos / BLOCK_SIZE, BLOCK_SIZE, |
89 | *pos / BLOCK_SIZE, BLOCK_SIZE, &retval); |
| 89 | &retval); |
- | |
| 90 | if ((rc != EOK) || (retval != EOK)) |
90 | if ((rc != EOK) || (retval != EOK)) |
| 91 | return false; |
91 | return false; |
| 92 | 92 | ||
| 93 | *bufpos = 0; |
93 | *bufpos = 0; |
| 94 | *buflen = BLOCK_SIZE; |
94 | *buflen = BLOCK_SIZE; |