File tree Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The Zephyr Project Contributors
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #ifndef ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_AIO_H_
8+ #define ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_AIO_H_
9+
10+ #include <zephyr/posix/aio.h>
11+
12+ #endif /* ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_AIO_H_ */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The Zephyr Project Contributors
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #ifndef ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_ARPA_INET_H_
8+ #define ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_ARPA_INET_H_
9+
10+ #include <zephyr/posix/arpa/inet.h>
11+
12+ #endif /* ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_ARPA_INET_H_ */
Original file line number Diff line number Diff line change 1717#define _NLINK_T_DECLARED
1818#define _UID_T_DECLARED
1919#define _GID_T_DECLARED
20+ #define _PID_T_DECLARED
2021
2122#ifndef _SSIZE_T_DEFINED
2223#define _SSIZE_T_DEFINED
Original file line number Diff line number Diff line change 99
1010#include_next <time.h>
1111
12+ #if defined(_POSIX_C_SOURCE )
13+ /*
14+ * POSIX requires time.h to define pid_t and clockid_t
15+ * https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
16+ */
17+ #if !defined(_PID_T_DECLARED )
18+ typedef long pid_t ;
19+ #define _PID_T_DECLARED
20+ #endif
21+
22+ #if !defined(_CLOCKID_T_DECLARED )
23+ typedef int clockid_t ;
24+ #define _CLOCKID_T_DECLARED
25+ #endif
26+ #endif
27+
28+ /* pull in sys/timespec.h for struct timespec and _TIMESPEC_DECLARED */
29+ #include "sys/timespec.h"
30+
1231#include <zephyr/posix/posix_time.h>
1332
1433#ifdef __cplusplus
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright The Zephyr Project Contributors
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #ifndef ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_UNISTD_H_
8+ #define ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_UNISTD_H_
9+
10+ #include_next <unistd.h>
11+
12+ #ifdef __cplusplus
13+ extern "C" {
14+ #endif
15+
16+ #if defined(_XOPEN_SOURCE )
17+ long gethostid (void );
18+ #endif
19+
20+ #ifdef __cplusplus
21+ }
22+ #endif
23+
24+ #endif /* ZEPHYR_LIB_LIBC_ARCMWDT_INCLUDE_UNISTD_H_ */
You can’t perform that action at this time.
0 commit comments