libc.csv: Fix macro guard for TLS related symbols

The current macro guard for TLS related symbols is
not enough, only if !defined(CONFIG_DISABLE_PTHREAD)
and CONFIG_TLS_NELEM > 0, the TLS related symbols
will enabled.

So if CONFIG_DISABLE_PTHREAD is not defined, but
TLS is disabled, the reference to TLS related symbols
will cause build error (undefined reference to xxx).

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2024-04-17 10:43:35 +08:00
committed by Xiang Xiao
parent 1a2e752ea7
commit 4bcb33926e
+4 -4
View File
@@ -213,9 +213,9 @@
"pthread_condattr_setclock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_condattr_t *","clockid_t"
"pthread_create","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_t *","FAR const pthread_attr_t *","pthread_startroutine_t","pthread_addr_t"
"pthread_getname_np","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","char *","size_t"
"pthread_getspecific","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","FAR void *","pthread_key_t"
"pthread_key_create","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_key_t *","FAR void (*) (void *)|FAR void *"
"pthread_key_delete","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_key_t"
"pthread_getspecific","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0","FAR void *","pthread_key_t"
"pthread_key_create","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0","int","FAR pthread_key_t *","FAR void (*) (void *)|FAR void *"
"pthread_key_delete","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0","int","pthread_key_t"
"pthread_mutex_lock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutex_t *"
"pthread_mutexattr_destroy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *"
"pthread_mutexattr_getpshared","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *","FAR int *"
@@ -229,7 +229,7 @@
"pthread_rwlock_rdlock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_rwlock_t *"
"pthread_rwlock_unlock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_rwlock_t *"
"pthread_setname_np","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","const char *"
"pthread_setspecific","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_key_t","FAR const void *"
"pthread_setspecific","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0","int","pthread_key_t","FAR const void *"
"pthread_yield","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","void"
"puts","stdio.h","defined(CONFIG_FILE_STREAM)","int","FAR const IPTR char *"
"putwc","wchar.h","defined(CONFIG_FILE_STREAM)","wint_t","wchar_t","FAR FILE *"
1 __assert assert.h void FAR const char * int FAR const char *
213 pthread_condattr_setclock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_condattr_t * clockid_t
214 pthread_create pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_t * FAR const pthread_attr_t * pthread_startroutine_t
215 pthread_getname_np pthread.h !defined(CONFIG_DISABLE_PTHREAD) int pthread_t char * size_t
216 pthread_getspecific pthread.h !defined(CONFIG_DISABLE_PTHREAD) !defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0 FAR void * pthread_key_t
217 pthread_key_create pthread.h !defined(CONFIG_DISABLE_PTHREAD) !defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0 int FAR pthread_key_t * FAR void (*) (void *)|FAR void *
218 pthread_key_delete pthread.h !defined(CONFIG_DISABLE_PTHREAD) !defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0 int pthread_key_t
219 pthread_mutex_lock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_mutex_t *
220 pthread_mutexattr_destroy pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_mutexattr_t *
221 pthread_mutexattr_getpshared pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_mutexattr_t * FAR int *
229 pthread_rwlock_rdlock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_rwlock_t *
230 pthread_rwlock_unlock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_rwlock_t *
231 pthread_setname_np pthread.h !defined(CONFIG_DISABLE_PTHREAD) int pthread_t const char *
232 pthread_setspecific pthread.h !defined(CONFIG_DISABLE_PTHREAD) !defined(CONFIG_DISABLE_PTHREAD) && CONFIG_TLS_NELEM > 0 int pthread_key_t FAR const void *
233 pthread_yield pthread.h !defined(CONFIG_DISABLE_PTHREAD) void
234 puts stdio.h defined(CONFIG_FILE_STREAM) int FAR const IPTR char *
235 putwc wchar.h defined(CONFIG_FILE_STREAM) wint_t wchar_t FAR FILE *