Kernel+LibC: Share definitions for stdio.h
This commit is contained in:
parent
9c2212a60a
commit
808ce594db
Notes:
sideshowbarker
2024-07-18 06:54:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/808ce594db1
4 changed files with 23 additions and 4 deletions
21
Kernel/API/POSIX/stdio.h
Normal file
21
Kernel/API/POSIX/stdio.h
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue