mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
I also added a generator cache to FileHandle. This way, multiple reads to a generated file (i.e in a synthfs) can transparently handle multiple calls to read() without the contents changing between calls. The cache is discarded at EOF (or when the FileHandle is destroyed.)
13 lines
322 B
C
13 lines
322 B
C
#pragma once
|
|
|
|
void kmalloc_init();
|
|
void *kmalloc(DWORD size) __attribute__ ((malloc));
|
|
void kfree(void*);
|
|
|
|
bool is_kmalloc_address(void*);
|
|
|
|
extern volatile DWORD sum_alloc;
|
|
extern volatile DWORD sum_free;
|
|
|
|
inline void* operator new(size_t, void* p) { return p; }
|
|
inline void* operator new[](size_t, void* p) { return p; }
|