mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibC: Avoid ninja-imports of system functions
This adds a new header <sys/internals.h>, which provides access to LibC internals. This is in the interest of type-checking LibC itself, as well as enabling less-hacky access for uses like LinkDemo. And, of course, this progresses LibC towards building cleanly with -Wmissing-declarations.
This commit is contained in:
parent
9221a25bbc
commit
9d2d97a059
Notes:
sideshowbarker
2024-07-19 03:41:35 +09:00
Author: https://github.com/BenWiederhake
Commit: 9d2d97a059
Pull-request: https://github.com/SerenityOS/serenity/pull/3096
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/stelar7
6 changed files with 49 additions and 14 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/internals.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
// FIXME: Thread safety.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue