Rev 3153 | Rev 3535 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3153 | Rev 3219 | ||
---|---|---|---|
Line 372... | Line 372... | ||
372 | } |
372 | } |
373 | 373 | ||
374 | void vfs_close(ipc_callid_t rid, ipc_call_t *request) |
374 | void vfs_close(ipc_callid_t rid, ipc_call_t *request) |
375 | { |
375 | { |
376 | int fd = IPC_GET_ARG1(*request); |
376 | int fd = IPC_GET_ARG1(*request); |
377 | if (fd >= MAX_OPEN_FILES) { |
- | |
378 | ipc_answer_0(rid, EBADF); |
- | |
379 | return; |
- | |
380 | } |
- | |
381 | vfs_fd_free(fd); |
377 | int rc = vfs_fd_free(fd); |
382 | ipc_answer_0(rid, EOK); |
378 | ipc_answer_0(rid, rc); |
383 | } |
379 | } |
384 | 380 | ||
385 | static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read) |
381 | static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read) |
386 | { |
382 | { |
387 | 383 |