mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
make get_unused_fd_flags() a function
... and get_unused_fd() a macro around it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
56b31d1c9f
commit
1a7bd2265f
2 changed files with 5 additions and 5 deletions
|
@ -477,8 +477,8 @@ out:
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue