Added close_fd_index() which is pretty much like close(), but gets the

IO context in which to close the FD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24937 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-04-12 08:32:29 +00:00
parent ac4630e161
commit 0cc82d47d4
2 changed files with 19 additions and 16 deletions
+1
View File
@@ -80,6 +80,7 @@ extern int new_fd_etc(struct io_context *, struct file_descriptor *, int firstIn
extern int new_fd(struct io_context *, struct file_descriptor *);
extern struct file_descriptor *get_fd(struct io_context *, int);
extern void close_fd(struct file_descriptor *descriptor);
extern status_t close_fd_index(struct io_context *context, int fd);
extern void put_fd(struct file_descriptor *descriptor);
extern void disconnect_fd(struct file_descriptor *descriptor);
extern void inc_fd_ref_count(struct file_descriptor *descriptor);