mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00: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
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/DistinctNumeric.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class BlockDevice;
|
class BlockDevice;
|
||||||
|
@ -91,4 +93,9 @@ class KResultOr;
|
||||||
struct InodeMetadata;
|
struct InodeMetadata;
|
||||||
struct TrapFrame;
|
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/Optional.h>
|
||||||
#include <AK/OwnPtr.h>
|
#include <AK/OwnPtr.h>
|
||||||
#include <Kernel/UnixTypes.h>
|
#include <Kernel/Forward.h>
|
||||||
#include <LibC/sys/arch/i386/regs.h>
|
#include <LibC/sys/arch/i386/regs.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/DistinctNumeric.h>
|
|
||||||
#include <AK/Types.h>
|
|
||||||
#include <Kernel/API/POSIX/dirent.h>
|
#include <Kernel/API/POSIX/dirent.h>
|
||||||
#include <Kernel/API/POSIX/fcntl.h>
|
#include <Kernel/API/POSIX/fcntl.h>
|
||||||
#include <Kernel/API/POSIX/futex.h>
|
#include <Kernel/API/POSIX/futex.h>
|
||||||
|
@ -34,9 +32,3 @@
|
||||||
#include <Kernel/API/POSIX/termios.h>
|
#include <Kernel/API/POSIX/termios.h>
|
||||||
#include <Kernel/API/POSIX/time.h>
|
#include <Kernel/API/POSIX/time.h>
|
||||||
#include <Kernel/API/POSIX/unistd.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…
Add table
Add a link
Reference in a new issue