Rev 2700 | Rev 2730 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2700 | Rev 2707 | ||
|---|---|---|---|
| Line 55... | Line 55... | ||
| 55 | * |
55 | * |
| 56 | * @param path Path to be resolved; it needn't be an ASCIIZ string. |
56 | * @param path Path to be resolved; it needn't be an ASCIIZ string. |
| 57 | * @param len Number of path characters pointed by path. |
57 | * @param len Number of path characters pointed by path. |
| 58 | * @param lflag Flags to be used during lookup. |
58 | * @param lflag Flags to be used during lookup. |
| 59 | * @param result Empty structure where the lookup result will be stored. |
59 | * @param result Empty structure where the lookup result will be stored. |
| - | 60 | * Can be NULL. |
|
| 60 | * @param altroot If non-empty, will be used instead of rootfs as the root |
61 | * @param altroot If non-empty, will be used instead of rootfs as the root |
| 61 | * of the whole VFS tree. |
62 | * of the whole VFS tree. |
| 62 | * |
63 | * |
| 63 | * @return EOK on success or an error code from errno.h. |
64 | * @return EOK on success or an error code from errno.h. |
| 64 | */ |
65 | */ |
| Line 160... | Line 161... | ||
| 160 | */ |
161 | */ |
| 161 | memset(&plb[first], 0, cnt1); |
162 | memset(&plb[first], 0, cnt1); |
| 162 | memset(plb, 0, cnt2); |
163 | memset(plb, 0, cnt2); |
| 163 | futex_up(&plb_futex); |
164 | futex_up(&plb_futex); |
| 164 | 165 | ||
| 165 | if (rc == EOK) { |
166 | if ((rc == EOK) && result) { |
| 166 | result->triplet.fs_handle = (int) IPC_GET_ARG1(answer); |
167 | result->triplet.fs_handle = (int) IPC_GET_ARG1(answer); |
| 167 | result->triplet.dev_handle = (int) IPC_GET_ARG2(answer); |
168 | result->triplet.dev_handle = (int) IPC_GET_ARG2(answer); |
| 168 | result->triplet.index = (int) IPC_GET_ARG3(answer); |
169 | result->triplet.index = (int) IPC_GET_ARG3(answer); |
| 169 | result->size = (size_t) IPC_GET_ARG4(answer); |
170 | result->size = (size_t) IPC_GET_ARG4(answer); |
| 170 | } |
171 | } |