Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328958
b: refs/heads/master
c: 1a7bd22
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Sep 27, 2012
1 parent c42aa17 commit 731d251
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56b31d1c9f1e6a3ad92e7bfe252721e05d92b285
refs/heads/master: 1a7bd2265fc57f29400d57f66275cc5918e30aa6
6 changes: 3 additions & 3 deletions trunk/fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ int alloc_fd(unsigned start, unsigned flags)
return error;
}

int get_unused_fd(void)
int get_unused_fd_flags(unsigned flags)
{
return alloc_fd(0, 0);
return alloc_fd(0, flags);
}
EXPORT_SYMBOL(get_unused_fd);
EXPORT_SYMBOL(get_unused_fd_flags);
4 changes: 2 additions & 2 deletions trunk/include/linux/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ extern struct file *fget_raw_light(unsigned int fd, int *fput_needed);
extern void set_close_on_exec(unsigned int fd, int flag);
extern void put_filp(struct file *);
extern int alloc_fd(unsigned start, unsigned flags);
extern int get_unused_fd(void);
#define get_unused_fd_flags(flags) alloc_fd(0, (flags))
extern int get_unused_fd_flags(unsigned flags);
#define get_unused_fd() get_unused_fd_flags(0)
extern void put_unused_fd(unsigned int fd);

extern void fd_install(unsigned int fd, struct file *file);
Expand Down

0 comments on commit 731d251

Please sign in to comment.