Kernel+LibC: Move the FD_SETSIZE declaration to API/POSIX/select.h file
This commit is contained in:
parent
77486a0d08
commit
800e244ed9
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/800e244ed9 Pull-request: https://github.com/SerenityOS/serenity/pull/17634 Reviewed-by: https://github.com/ADKaster
5 changed files with 14 additions and 2 deletions
9
Kernel/API/POSIX/select.h
Normal file
9
Kernel/API/POSIX/select.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define FD_SETSIZE 1024
|
|
@ -14,6 +14,7 @@
|
|||
#include <AK/RefPtr.h>
|
||||
#include <AK/Userspace.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <Kernel/API/POSIX/select.h>
|
||||
#include <Kernel/API/POSIX/sys/resource.h>
|
||||
#include <Kernel/API/Syscall.h>
|
||||
#include <Kernel/Assertions.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <AK/ScopeGuard.h>
|
||||
#include <AK/Time.h>
|
||||
#include <Kernel/API/POSIX/select.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/FileSystem/OpenFileDescription.h>
|
||||
#include <Kernel/Process.h>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <AK/Variant.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/API/POSIX/sched.h>
|
||||
#include <Kernel/API/POSIX/select.h>
|
||||
#include <Kernel/API/POSIX/signal_numbers.h>
|
||||
#include <Kernel/Arch/RegisterState.h>
|
||||
#include <Kernel/Arch/ThreadRegisters.h>
|
||||
|
@ -31,7 +32,6 @@
|
|||
#include <Kernel/Locking/SpinlockProtected.h>
|
||||
#include <Kernel/Memory/VirtualRange.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
#include <LibC/fd_set.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define FD_SETSIZE 1024
|
||||
#include <Kernel/API/POSIX/select.h>
|
||||
|
||||
#define FD_ZERO(set) \
|
||||
do { \
|
||||
memset((set), 0, sizeof(fd_set)); \
|
||||
|
|
Loading…
Add table
Reference in a new issue