mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
Kernel: PID/TID typing
This compiles, and contains exactly the same bugs as before. The regex 'FIXME: PID/' should reveal all markers that I left behind, including: - Incomplete conversion - Issues or things that look fishy - Actual bugs that will go wrong during runtime
This commit is contained in:
parent
f225321184
commit
f5744a6f2f
26 changed files with 136 additions and 111 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DistinctNumeric.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#define O_RDONLY (1 << 0)
|
||||
|
@ -320,6 +321,11 @@ typedef u32 gid_t;
|
|||
typedef u32 clock_t;
|
||||
typedef u32 socklen_t;
|
||||
typedef int pid_t;
|
||||
// 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);
|
||||
|
||||
struct tms {
|
||||
clock_t tms_utime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue