MCPcopy Create free account
hub / github.com/Bananymous/banan-os / get_max_open_fd

Method get_max_open_fd

kernel/kernel/OpenFileDescriptorSet.cpp:860–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858 return BAN::Error::from_errno(ENOTSOCK);
859 inode = open_file->file.inode;
860 is_nonblock = !!(open_file->status_flags & O_NONBLOCK);
861 }
862
863 if (is_nonblock && !inode->can_read())
864 return BAN::Error::from_errno(EAGAIN);
865 return inode->recvmsg(message, flags);
866 }
867
868 BAN::ErrorOr<size_t> OpenFileDescriptorSet::sendmsg(int fd, const msghdr& message, int flags)
869 {
870 BAN::RefPtr<Inode> inode;

Callers 1

sys_pselectMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected