1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:47:34 +00:00

Kernel: Remove two unneeded headers.

This commit is contained in:
Andreas Kling 2019-04-10 22:49:11 +02:00
parent d8e1545783
commit 0bc72551f4
7 changed files with 15 additions and 44 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include "kprintf.h"
#include "i386.h"
#include <Kernel/kstdio.h>
#include <Kernel/i386.h>
[[noreturn]] void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func);

View file

@ -1,6 +1,6 @@
#include "Console.h"
#include "IO.h"
#include "kprintf.h"
#include <Kernel/Console.h>
#include <Kernel/IO.h>
#include <Kernel/kstdio.h>
// Bytes output to 0xE9 end up on the Bochs console. It's very handy.
#define CONSOLE_OUT_TO_E9

View file

@ -1,6 +1,6 @@
#pragma once
#include "kprintf.h"
#include <Kernel/kstdio.h>
#include <Kernel/LinearAddress.h>
#define PAGE_SIZE 4096

View file

@ -1,8 +1,8 @@
#include "kprintf.h"
#include "Console.h"
#include "IO.h"
#include <Kernel/kstdio.h>
#include <Kernel/Console.h>
#include <Kernel/IO.h>
#include <LibC/stdarg.h>
#include "Process.h"
#include <Kernel/Process.h>
#include <AK/Types.h>
#include <AK/printf.cpp>

View file

@ -1,7 +0,0 @@
#pragma once
extern "C" {
int dbgprintf(const char *fmt, ...);
int kprintf(const char *fmt, ...);
int ksprintf(char* buf, const char *fmt, ...);
}

View file

@ -1,6 +1,10 @@
#pragma once
#include "kprintf.h"
extern "C" {
int dbgprintf(const char *fmt, ...);
int kprintf(const char *fmt, ...);
int ksprintf(char* buf, const char *fmt, ...);
}
#ifndef USERLAND
#define printf dbgprintf

View file

@ -1,26 +0,0 @@
#pragma once
struct tm {
int tm_sec; /* Seconds (0-60) */
int tm_min; /* Minutes (0-59) */
int tm_hour; /* Hours (0-23) */
int tm_mday; /* Day of the month (1-31) */
int tm_mon; /* Month (0-11) */
int tm_year; /* Year - 1900 */
int tm_wday; /* Day of the week (0-6, Sunday = 0) */
int tm_yday; /* Day in the year (0-365, 1 Jan = 0) */
int tm_isdst; /* Daylight saving time */
};
inline time_t ktime(time_t* tloc)
{
if (tloc)
*tloc = 123;
return 123;
}
inline tm* klocaltime(time_t*)
{
static tm timmy;
return &timmy;
}