arch: posix: posix_cheats: Do not rename types
There is no need to rename the POSIX types, so let's not do it to simplify things Also remove an unnecessary guard (POSIX_ARCH) to avoid mystifying this any more than necessary Related to #13054 Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
655d3cc2b0
commit
d798cbcbf5
1 changed files with 0 additions and 30 deletions
|
@ -12,8 +12,6 @@
|
||||||
#if !defined(ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_) && !defined(NO_POSIX_CHEATS)
|
#if !defined(ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_) && !defined(NO_POSIX_CHEATS)
|
||||||
#define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_
|
#define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_POSIX
|
|
||||||
|
|
||||||
#ifndef main
|
#ifndef main
|
||||||
#define main(...) zephyr_app_main(__VA_ARGS__)
|
#define main(...) zephyr_app_main(__VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,32 +23,6 @@
|
||||||
|
|
||||||
#ifdef CONFIG_POSIX_API
|
#ifdef CONFIG_POSIX_API
|
||||||
|
|
||||||
#define timespec zap_timespec
|
|
||||||
#define timeval zap_timeval
|
|
||||||
#define pthread_mutex_t zap_pthread_mutex_t
|
|
||||||
#define pthread_mutexattr_t zap_pthread_mutexattr_t
|
|
||||||
#define pthread_cond_t zap_pthread_cond_t
|
|
||||||
#define pthread_condattr_t zap_pthread_condattr_t
|
|
||||||
#define pthread_barrier_t zap_pthread_barrier_t
|
|
||||||
#define pthread_barrierattr_t zap_pthread_barrierattr_t
|
|
||||||
#define pthread_attr_t zap_pthread_attr_t
|
|
||||||
#define clockid_t zap_clockid_t
|
|
||||||
#define sched_param zap_sched_param
|
|
||||||
#define itimerspe zap_sched_param
|
|
||||||
#define timer_t zap_timer_t
|
|
||||||
#define sigval zap_sigval
|
|
||||||
#define sigevent zap_sigevent
|
|
||||||
#define pthread_rwlock_obj zap_pthread_rwlock_obj
|
|
||||||
#define pthread_rwlockattr_t zap_pthread_rwlockattr_t
|
|
||||||
#define mqueue_object zap_mqueue_object
|
|
||||||
#define mqueue_desc zap_mqueue_desc
|
|
||||||
#define mqd_t zap_mqd_t
|
|
||||||
#define mq_attr zap_mq_attr
|
|
||||||
#define dirent zap_dirent
|
|
||||||
#define DIR zap_DIR
|
|
||||||
#define pthread_once_t zap_pthread_once_t
|
|
||||||
#define pthread_key_t zap_pthread_key_t
|
|
||||||
|
|
||||||
/* Condition variables */
|
/* Condition variables */
|
||||||
#define pthread_cond_init(...) zap_pthread_cond_init(__VA_ARGS__)
|
#define pthread_cond_init(...) zap_pthread_cond_init(__VA_ARGS__)
|
||||||
#define pthread_cond_destroy(...) zap_pthread_cond_destroy(__VA_ARGS__)
|
#define pthread_cond_destroy(...) zap_pthread_cond_destroy(__VA_ARGS__)
|
||||||
|
@ -191,6 +163,4 @@
|
||||||
|
|
||||||
#endif /* CONFIG_POSIX_API */
|
#endif /* CONFIG_POSIX_API */
|
||||||
|
|
||||||
#endif /* CONFIG_ARCH_POSIX */
|
|
||||||
|
|
||||||
#endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_ */
|
#endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue