Kernel+LibC: Share definitions for stdio.h

This commit is contained in:
Andreas Kling 2021-08-14 19:07:36 +02:00
parent 9c2212a60a
commit 808ce594db
Notes: sideshowbarker 2024-07-18 06:54:07 +09:00
4 changed files with 23 additions and 4 deletions

21
Kernel/API/POSIX/stdio.h Normal file
View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -8,6 +8,7 @@
#define _STDIO_H // Make GMP believe we exist.
#include <Kernel/API/POSIX/stdio.h>
#include <bits/FILE.h>
#include <limits.h>
#include <stdarg.h>