1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

Kernel: Get rid of Kernel/types.h, separate LinearAddress/PhysicalAddress.

This commit is contained in:
Andreas Kling 2019-04-06 14:29:29 +02:00
parent 6306cf5c27
commit a58d7fd8bb
27 changed files with 119 additions and 121 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#include <AK/Types.h>
#define WNOHANG 1
#define R_OK 4
@ -222,6 +224,7 @@ typedef dword uid_t;
typedef dword gid_t;
typedef dword clock_t;
typedef dword socklen_t;
typedef int pid_t;
struct tms {
clock_t tms_utime;
@ -359,3 +362,32 @@ struct sockaddr_in {
struct in_addr sin_addr;
char sin_zero[8];
};
typedef dword __u32;
typedef word __u16;
typedef byte __u8;
typedef int __s32;
typedef short __s16;
typedef dword useconds_t;
typedef signed_dword suseconds_t;
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
#define UTSNAME_ENTRY_LEN 65
struct utsname {
char sysname[UTSNAME_ENTRY_LEN];
char nodename[UTSNAME_ENTRY_LEN];
char release[UTSNAME_ENTRY_LEN];
char version[UTSNAME_ENTRY_LEN];
char machine[UTSNAME_ENTRY_LEN];
};
struct [[gnu::packed]] FarPtr {
dword offset { 0 };
word selector { 0 };
};