mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
60d25f0f4a
The scheduler now operates on threads, rather than on processes. Each process has a main thread, and can have any number of additional threads. The process exits when the main thread exits. This patch doesn't actually spawn any additional threads, it merely does all the plumbing needed to make it possible. :^)
23 lines
630 B
C
23 lines
630 B
C
#pragma once
|
|
|
|
#include <Kernel/types.h>
|
|
|
|
extern "C" {
|
|
|
|
static_assert(sizeof(size_t) == 4);
|
|
|
|
void* memcpy(void*, const void*, size_t);
|
|
char* strcpy(char*, const char*);
|
|
char* strncpy(char*, const char*, size_t);
|
|
int strcmp(char const*, const char*);
|
|
size_t strlen(const char*);
|
|
void* memset(void*, int, size_t);
|
|
char *strdup(const char*);
|
|
int memcmp(const void*, const void*, size_t);
|
|
char* strrchr(const char* str, int ch);
|
|
void* memmove(void* dest, const void* src, size_t n);
|
|
|
|
inline word ntohs(word w) { return (w & 0xff) << 8 | ((w >> 8) & 0xff); }
|
|
inline word htons(word w) { return (w & 0xff) << 8 | ((w >> 8) & 0xff); }
|
|
|
|
}
|