Subversion Repositories HelenOS

Rev

Rev 2710 | Rev 2735 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2710 Rev 2734
Line 385... Line 385...
385
 
385
 
386
    /* Success! Return the new file descriptor to the client. */
386
    /* Success! Return the new file descriptor to the client. */
387
    ipc_answer_1(rid, EOK, fd);
387
    ipc_answer_1(rid, EOK, fd);
388
}
388
}
389
 
389
 
-
 
390
void vfs_close(ipc_callid_t rid, ipc_call_t *request)
-
 
391
{
-
 
392
    int fd = IPC_GET_ARG1(*request);
-
 
393
    if (fd >= MAX_OPEN_FILES) {
-
 
394
        ipc_answer_0(rid, EBADF);
-
 
395
        return;
-
 
396
    }
-
 
397
    vfs_fd_free(fd);
-
 
398
    ipc_answer_0(rid, EOK);
-
 
399
}
-
 
400
 
390
static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read)
401
static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read)
391
{
402
{
392
 
403
 
393
    /*
404
    /*
394
     * The following code strongly depends on the fact that the files data
405
     * The following code strongly depends on the fact that the files data