mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:34:57 +00:00
LibC: Add most of the "header may make visible" dependencies from POSIX
This commit is contained in:
parent
9410f0a96c
commit
aae106e37b
21 changed files with 104 additions and 9 deletions
|
@ -6,8 +6,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/fcntl.h>
|
#include <Kernel/API/POSIX/fcntl.h>
|
||||||
#include <Kernel/API/POSIX/sys/stat.h>
|
#include <Kernel/API/POSIX/sys/stat.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
|
@ -6,7 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html
|
||||||
#include <nl_types.h>
|
#include <nl_types.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netdb.h.html
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/netinet/in.h>
|
#include <Kernel/API/POSIX/netinet/in.h>
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
|
@ -6,12 +6,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <bits/pthread_integration.h>
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
#include <bits/pthread_integration.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/sched.h>
|
#include <Kernel/API/POSIX/sched.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/semaphore.h.html
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/signal.h>
|
#include <Kernel/API/POSIX/signal.h>
|
||||||
#include <Kernel/API/POSIX/ucontext.h>
|
#include <Kernel/API/POSIX/ucontext.h>
|
||||||
#include <bits/sighow.h>
|
#include <bits/sighow.h>
|
||||||
|
|
|
@ -13,8 +13,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/spawn.h.html
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
#define _STDIO_H // Make GMP believe we exist.
|
#define _STDIO_H // Make GMP believe we exist.
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/stdio.h>
|
#include <Kernel/API/POSIX/stdio.h>
|
||||||
#include <bits/FILE.h>
|
#include <bits/FILE.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
|
@ -6,8 +6,14 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <bits/wchar.h>
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html
|
||||||
|
#include <limits.h>
|
||||||
|
#include <math.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
|
#include <bits/wchar.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/string.h.html
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_resource.h.html
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <fd_set.h>
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
#include <fd_set.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
|
||||||
|
#include <sys/uio.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/sys/socket.h>
|
#include <Kernel/API/POSIX/sys/socket.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html
|
||||||
|
#include <sys/select.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/sys/time.h>
|
#include <Kernel/API/POSIX/sys/time.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/signal.h>
|
#include <Kernel/API/POSIX/signal.h>
|
||||||
#include <Kernel/API/POSIX/sys/wait.h>
|
#include <Kernel/API/POSIX/sys/wait.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
#include <Kernel/API/POSIX/time.h>
|
#include <Kernel/API/POSIX/time.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,18 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <bits/FILE.h>
|
// Includes essentially mandated by POSIX:
|
||||||
#include <bits/wchar_size.h>
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html
|
||||||
|
#include <ctype.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
#include <bits/FILE.h>
|
||||||
|
#include <bits/wchar_size.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
|
@ -6,11 +6,20 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <assert.h>
|
// Includes essentially mandated by POSIX:
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wctype.h.html
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/cdefs.h>
|
#include <stdarg.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
typedef long wctrans_t;
|
typedef long wctrans_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue