diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/API/POSIX/stdio.h | 21 | ||||
-rw-r--r-- | Kernel/API/POSIX/unistd.h | 4 | ||||
-rw-r--r-- | Kernel/UnixTypes.h | 1 |
3 files changed, 22 insertions, 4 deletions
diff --git a/Kernel/API/POSIX/stdio.h b/Kernel/API/POSIX/stdio.h new file mode 100644 index 0000000000..9151b849b4 --- /dev/null +++ b/Kernel/API/POSIX/stdio.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <Kernel/API/POSIX/sys/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define SEEK_SET 0 +#define SEEK_CUR 1 +#define SEEK_END 2 + +#ifdef __cplusplus +} +#endif diff --git a/Kernel/API/POSIX/unistd.h b/Kernel/API/POSIX/unistd.h index 2562b923f0..dcdd23aa40 100644 --- a/Kernel/API/POSIX/unistd.h +++ b/Kernel/API/POSIX/unistd.h @@ -48,10 +48,6 @@ enum { #define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX #define _SC_CLK_TCK _SC_CLK_TCK -#define SEEK_SET 0 -#define SEEK_CUR 1 -#define SEEK_END 2 - #ifdef __cplusplus } #endif diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h index 5866fa4934..29bacddeee 100644 --- a/Kernel/UnixTypes.h +++ b/Kernel/UnixTypes.h @@ -18,6 +18,7 @@ #include <Kernel/API/POSIX/poll.h> #include <Kernel/API/POSIX/serenity.h> #include <Kernel/API/POSIX/signal.h> +#include <Kernel/API/POSIX/stdio.h> #include <Kernel/API/POSIX/sys/mman.h> #include <Kernel/API/POSIX/sys/socket.h> #include <Kernel/API/POSIX/sys/stat.h> |