diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-09-12 11:29:28 +0000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-12-16 22:21:35 +0330 |
commit | 69ef2119253522e79a884b897b70df27317531cc (patch) | |
tree | 2f6abe899e2564eef2b1313431a8ddaceb4cace5 /Kernel/Net | |
parent | 0cca6cef958f7742e4c232ef79311f6e5b039c1f (diff) | |
download | serenity-69ef2119253522e79a884b897b70df27317531cc.zip |
Kernel+LibC: Move errno definitions to Kernel/API/POSIX
This fixes at least half of our LibC includes in the kernel. The source
of truth for errno codes and their description strings now lives in
Kernel/API/POSIX/errno.h as an enumeration, which LibC includes.
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/IPv4Socket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/Socket.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 17d1e07300..b0b03dc037 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -6,6 +6,7 @@ #include <AK/Singleton.h> #include <AK/StringBuilder.h> +#include <Kernel/API/POSIX/errno.h> #include <Kernel/Debug.h> #include <Kernel/FileSystem/OpenFileDescription.h> #include <Kernel/Net/ARP.h> @@ -21,7 +22,6 @@ #include <Kernel/Net/UDPSocket.h> #include <Kernel/Process.h> #include <Kernel/UnixTypes.h> -#include <LibC/errno_numbers.h> #include <LibC/sys/ioctl_numbers.h> namespace Kernel { diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index dbb14078e6..ea8adaf303 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -6,6 +6,7 @@ #include <AK/Singleton.h> #include <AK/StringBuilder.h> +#include <Kernel/API/POSIX/errno.h> #include <Kernel/Debug.h> #include <Kernel/FileSystem/OpenFileDescription.h> #include <Kernel/FileSystem/VirtualFileSystem.h> @@ -15,7 +16,6 @@ #include <Kernel/Process.h> #include <Kernel/StdLib.h> #include <Kernel/UnixTypes.h> -#include <LibC/errno_numbers.h> #include <LibC/sys/ioctl_numbers.h> namespace Kernel { diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index b3187c585e..20b40318cc 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -5,6 +5,7 @@ */ #include <AK/StringView.h> +#include <Kernel/API/POSIX/errno.h> #include <Kernel/Debug.h> #include <Kernel/FileSystem/OpenFileDescription.h> #include <Kernel/Net/IPv4Socket.h> @@ -13,7 +14,6 @@ #include <Kernel/Net/Socket.h> #include <Kernel/Process.h> #include <Kernel/UnixTypes.h> -#include <LibC/errno_numbers.h> namespace Kernel { |