File tree Expand file tree Collapse file tree 6 files changed +49
-5
lines changed Expand file tree Collapse file tree 6 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,11 @@ struct pthread_attr {
47
47
int32_t detachstate ;
48
48
uint32_t initialized ;
49
49
};
50
- #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC )
50
+ #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC ) \
51
+ || defined(CONFIG_ARCMWDT_LIBC )
51
52
typedef struct pthread_attr pthread_attr_t ;
52
53
#endif
54
+
53
55
BUILD_ASSERT (sizeof (pthread_attr_t ) >= sizeof (struct pthread_attr ));
54
56
55
57
typedef uint32_t pthread_t ;
@@ -63,7 +65,8 @@ typedef uint32_t pthread_mutex_t;
63
65
struct pthread_mutexattr {
64
66
int type ;
65
67
};
66
- #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC )
68
+ #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC ) \
69
+ || defined(CONFIG_ARCMWDT_LIBC )
67
70
typedef struct pthread_mutexattr pthread_mutexattr_t ;
68
71
#endif
69
72
BUILD_ASSERT (sizeof (pthread_mutexattr_t ) >= sizeof (struct pthread_mutexattr ));
@@ -74,7 +77,8 @@ typedef uint32_t pthread_cond_t;
74
77
struct pthread_condattr {
75
78
};
76
79
77
- #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC )
80
+ #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC ) \
81
+ || defined(CONFIG_ARCMWDT_LIBC )
78
82
typedef struct pthread_condattr pthread_condattr_t ;
79
83
#endif
80
84
BUILD_ASSERT (sizeof (pthread_condattr_t ) >= sizeof (struct pthread_condattr ));
Original file line number Diff line number Diff line change 13
13
extern "C" {
14
14
#endif
15
15
16
+ #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC ) \
17
+ || defined(CONFIG_ARCMWDT_LIBC )
18
+
16
19
#ifdef CONFIG_PTHREAD_IPC
17
20
18
- #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC )
19
21
typedef struct {
20
22
int is_initialized ;
21
23
int init_executed ;
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ extern "C" {
25
25
/* Priority based preemptive scheduling policy */
26
26
#define SCHED_RR 2
27
27
28
- #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC )
28
+ #if defined(CONFIG_MINIMAL_LIBC ) || defined(CONFIG_PICOLIBC ) || defined(CONFIG_ARMCLANG_STD_LIBC ) \
29
+ || defined(CONFIG_ARCMWDT_LIBC )
29
30
struct sched_param {
30
31
int sched_priority ;
31
32
};
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 Synopsys.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /* MWDT has no it's own cdefs. Add this one for satisfy dependencies */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023 Synopsys.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #ifndef LIB_LIBC_ARCMWDT_INCLUDE_SYS_TYPES_H_
8
+ #define LIB_LIBC_ARCMWDT_INCLUDE_SYS_TYPES_H_
9
+
10
+ #include_next "sys/types.h"
11
+
12
+ #define _DEV_T_DECLARED
13
+ #define _INO_T_DECLARED
14
+ #define _NLINK_T_DECLARED
15
+ #define _UID_T_DECLARED
16
+ #define _GID_T_DECLARED
17
+
18
+ #endif /* LIB_LIBC_ARCMWDT_INCLUDE_SYS_TYPES_H_ */
Original file line number Diff line number Diff line change 13
13
#include <unistd.h>
14
14
#include <errno.h>
15
15
16
+ #ifndef STDIN_FILENO
17
+ #define STDIN_FILENO 0
18
+ #endif
19
+
20
+ #ifndef STDOUT_FILENO
21
+ #define STDOUT_FILENO 1
22
+ #endif
23
+
24
+ #ifndef STDERR_FILENO
25
+ #define STDERR_FILENO 2
26
+ #endif
27
+
16
28
static int _stdout_hook_default (int c )
17
29
{
18
30
ARG_UNUSED (c );
You can’t perform that action at this time.
0 commit comments