mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
Meta: Remove trivially unused Kernel API headers
This commit is contained in:
parent
da8ad13510
commit
0c9dced888
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/ADKaster
Commit: 0c9dced888
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/86
Reviewed-by: https://github.com/trflynn89
3 changed files with 0 additions and 47 deletions
|
@ -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;
|
|
|
@ -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
|
|
|
@ -4,7 +4,6 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Kernel/API/InodeWatcherEvent.h>
|
|
||||||
#include <LibCore/EventLoop.h>
|
#include <LibCore/EventLoop.h>
|
||||||
#include <LibCore/FileWatcher.h>
|
#include <LibCore/FileWatcher.h>
|
||||||
#include <LibCore/Timer.h>
|
#include <LibCore/Timer.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue