mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
Kernel: Move {Process,Thread,Session,ProcessGroup}ID to Kernel/Forward.h
This commit is contained in:
parent
dcb015fa7e
commit
97c497f9fe
3 changed files with 8 additions and 9 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DistinctNumeric.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class BlockDevice;
|
||||
|
@ -91,4 +93,9 @@ class KResultOr;
|
|||
struct InodeMetadata;
|
||||
struct TrapFrame;
|
||||
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ProcessID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ThreadID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, SessionID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ProcessGroupID);
|
||||
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
#include <Kernel/Forward.h>
|
||||
#include <LibC/sys/arch/i386/regs.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DistinctNumeric.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/API/POSIX/dirent.h>
|
||||
#include <Kernel/API/POSIX/fcntl.h>
|
||||
#include <Kernel/API/POSIX/futex.h>
|
||||
|
@ -34,9 +32,3 @@
|
|||
#include <Kernel/API/POSIX/termios.h>
|
||||
#include <Kernel/API/POSIX/time.h>
|
||||
#include <Kernel/API/POSIX/unistd.h>
|
||||
|
||||
// Avoid interference with AK/Types.h and LibC/sys/types.h by defining *separate* names:
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ProcessID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ThreadID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, SessionID);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ProcessGroupID);
|
||||
|
|
Loading…
Reference in a new issue