forked from Bananymous/banan-os
Kernel: Allow opening files with O_NONBLOCK
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Kernel
|
|||||||
|
|
||||||
BAN::ErrorOr<int> OpenFileDescriptorSet::open(BAN::StringView absolute_path, int flags)
|
BAN::ErrorOr<int> OpenFileDescriptorSet::open(BAN::StringView absolute_path, int flags)
|
||||||
{
|
{
|
||||||
if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW | O_SEARCH | O_APPEND | O_TRUNC | O_CLOEXEC | O_TTY_INIT | O_DIRECTORY))
|
if (flags & ~(O_RDONLY | O_WRONLY | O_NOFOLLOW | O_SEARCH | O_APPEND | O_TRUNC | O_CLOEXEC | O_TTY_INIT | O_DIRECTORY | O_NONBLOCK))
|
||||||
return BAN::Error::from_errno(ENOTSUP);
|
return BAN::Error::from_errno(ENOTSUP);
|
||||||
|
|
||||||
int access_mask = O_EXEC | O_RDONLY | O_WRONLY | O_SEARCH;
|
int access_mask = O_EXEC | O_RDONLY | O_WRONLY | O_SEARCH;
|
||||||
|
|||||||
Reference in New Issue
Block a user