Meta: Remove trivially unused Kernel API headers

This commit is contained in:
Andrew Kaster 2024-06-06 13:07:21 -06:00 committed by Andreas Kling
parent da8ad13510
commit 0c9dced888
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00
3 changed files with 0 additions and 47 deletions

View File

@ -1,37 +0,0 @@
/*
* Copyright (c) 2020-2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
#include <AK/Types.h>
#ifdef KERNEL
# include <Kernel/API/POSIX/sys/limits.h>
#else
# include <limits.h>
#endif
struct [[gnu::packed]] InodeWatcherEvent {
enum class Type : u32 {
Invalid = 0,
MetadataModified = 1 << 0,
ContentModified = 1 << 1,
Deleted = 1 << 2,
ChildCreated = 1 << 3,
ChildDeleted = 1 << 4,
};
int watch_descriptor { 0 };
Type type { Type::Invalid };
size_t name_length { 0 };
// This is a VLA which is written during the read() from the descriptor.
char const name[];
};
AK_ENUM_BITWISE_OPERATORS(InodeWatcherEvent::Type);
constexpr unsigned MAXIMUM_EVENT_SIZE = sizeof(InodeWatcherEvent) + NAME_MAX + 1;

View File

@ -1,9 +0,0 @@
/*
* Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#define PTHREAD_STACK_MAX (32 * 1024 * 1024) // 32MiB

View File

@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/API/InodeWatcherEvent.h>
#include <LibCore/EventLoop.h>
#include <LibCore/FileWatcher.h>
#include <LibCore/Timer.h>