1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:47:34 +00:00

LibC: Do not include errno.h inside unistd.h

POSIX does not mandate this, therefore let's not do it.
This commit is contained in:
Jean-Baptiste Boric 2021-05-14 16:32:57 +02:00 committed by Andreas Kling
parent 7f498769ac
commit e16894af5a
32 changed files with 31 additions and 3 deletions

View file

@ -9,6 +9,7 @@
#include <AK/OwnPtr.h>
#include <AK/Vector.h>
#include <LibCore/DirIterator.h>
#include <errno.h>
#include <getopt.h>
#include <grp.h>
#include <pwd.h>

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <errno.h>
#include <spawn.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -8,6 +8,7 @@
#include <AK/LexicalPath.h>
#include <AK/StringBuilder.h>
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <sys/stat.h>
#include <unistd.h>

View file

@ -7,6 +7,7 @@
#include <AK/LexicalPath.h>
#include <AK/Random.h>
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>

View file

@ -6,6 +6,7 @@
#include <LibCore/ArgsParser.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>

View file

@ -5,6 +5,7 @@
*/
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>

View file

@ -5,6 +5,7 @@
*/
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View file

@ -6,6 +6,7 @@
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/mman.h>

View file

@ -8,6 +8,7 @@
#include <LibCore/ArgsParser.h>
#include <LibCore/ElapsedTimer.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>

View file

@ -5,6 +5,7 @@
*/
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <mman.h>
#include <pthread.h>
#include <stdio.h>

View file

@ -6,6 +6,7 @@
#include <AK/String.h>
#include <LibCore/ArgsParser.h>
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>

View file

@ -9,6 +9,7 @@
#include <AK/Time.h>
#include <AK/Vector.h>
#include <LibCore/ArgsParser.h>
#include <errno.h>
#include <spawn.h>
#include <stdio.h>
#include <sys/time.h>