| /freebsd-14.2/lib/libc/include/ |
| H A D | reentrant.h | 98 #define mutex_lock(m) if (__isthreaded) \ 100 #define mutex_unlock(m) if (__isthreaded) \ 102 #define mutex_trylock(m) (__isthreaded ? 0 : _pthread_mutex_trylock(m)) 105 #define cond_signal(m) if (__isthreaded) \ 107 #define cond_broadcast(m) if (__isthreaded) \ 109 #define cond_wait(c, m) if (__isthreaded) \ 113 #define rwlock_rdlock(l) if (__isthreaded) \ 115 #define rwlock_wrlock(l) if (__isthreaded) \ 117 #define rwlock_unlock(l) if (__isthreaded) \
|
| H A D | libc_private.h | 55 extern int __isthreaded; 93 #define FLOCKFILE(fp) if (__isthreaded) _FLOCKFILE(fp) 94 #define FUNLOCKFILE(fp) if (__isthreaded) _funlockfile(fp) 100 if (__isthreaded) \ 105 if (__isthreaded) \
|
| H A D | nss_tls.h | 57 if (!__isthreaded || _pthread_main_np() != 0) { \
|
| /freebsd-14.2/lib/libc/stdlib/ |
| H A D | set_constraint_handler_s.c | 53 if (__isthreaded) in set_constraint_handler_s() 57 if (__isthreaded) in set_constraint_handler_s() 73 if (__isthreaded) in __throw_constraint_handler_s() 76 if (__isthreaded) in __throw_constraint_handler_s()
|
| H A D | exit.c | 53 int __isthreaded = 0; variable 81 if (__isthreaded) { in exit()
|
| H A D | atexit.c | 63 #define _MUTEX_LOCK(x) if (__isthreaded) _pthread_mutex_lock(x) 64 #define _MUTEX_UNLOCK(x) if (__isthreaded) _pthread_mutex_unlock(x) 65 #define _MUTEX_DESTROY(x) if (__isthreaded) _pthread_mutex_destroy(x)
|
| H A D | Symbol.map | 15 __isthreaded;
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | readdir.c | 97 if (__isthreaded) in readdir() 100 if (__isthreaded) in readdir() 113 if (__isthreaded) in __readdir_r() 118 if (__isthreaded) in __readdir_r()
|
| H A D | seekdir.c | 51 if (__isthreaded) in seekdir() 54 if (__isthreaded) in seekdir()
|
| H A D | rewinddir.c | 49 if (__isthreaded) in rewinddir() 60 if (__isthreaded) in rewinddir()
|
| H A D | closedir.c | 54 if (__isthreaded) in fdclosedir() 62 if (__isthreaded) { in fdclosedir()
|
| H A D | telldir.c | 56 if (__isthreaded) in telldir() 87 if (__isthreaded) in telldir() 107 if (__isthreaded) in telldir()
|
| H A D | arc4random.h | 60 if (__isthreaded) \ 66 if (__isthreaded) \
|
| H A D | readdir-compat11.c | 74 if (__isthreaded) in freebsd11_readdir() 87 if (__isthreaded) in freebsd11_readdir()
|
| H A D | popen.c | 62 #define THREAD_LOCK() if (__isthreaded) _pthread_mutex_lock(&pidlist_mutex) 63 #define THREAD_UNLOCK() if (__isthreaded) _pthread_mutex_unlock(&pidlist_mutex)
|
| H A D | _once_stub.c | 60 if (__isthreaded) in _once()
|
| H A D | syslog.c | 75 if (__isthreaded) _pthread_mutex_lock(&syslog_mutex); \ 79 if (__isthreaded) _pthread_mutex_unlock(&syslog_mutex); \
|
| /freebsd-14.2/include/ |
| H A D | stdio.h | 485 extern int __isthreaded; 496 #define feof(p) (!__isthreaded ? __sfeof(p) : (feof)(p)) 497 #define ferror(p) (!__isthreaded ? __sferror(p) : (ferror)(p)) 498 #define clearerr(p) (!__isthreaded ? __sclearerr(p) : (clearerr)(p)) 501 #define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p)) 504 #define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp)) 505 #define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : (putc)(x, fp))
|
| /freebsd-14.2/lib/libc/iconv/ |
| H A D | citrus_lock.h | 31 #define WLOCK(lock) if (__isthreaded) \ 33 #define UNLOCK(lock) if (__isthreaded) \
|
| /freebsd-14.2/contrib/jemalloc/include/jemalloc/ |
| H A D | jemalloc_FreeBSD.h | 101 extern int __isthreaded; 102 #define isthreaded ((bool)__isthreaded)
|
| /freebsd-14.2/lib/libc/nls/ |
| H A D | msgcat.c | 65 if (__isthreaded && \ 71 if (__isthreaded && \ 76 #define UNLOCK { if (__isthreaded) \
|
| /freebsd-14.2/contrib/libxo/libxo/ |
| H A D | xo_syslog.c | 124 #define __isthreaded 1 macro 129 if (__isthreaded) pthread_mutex_lock(&xo_syslog_mutex); \ 133 if (__isthreaded) pthread_mutex_unlock(&xo_syslog_mutex); \
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | nss_compat.c | 63 if (!__isthreaded || _pthread_main_np()) \ 72 (!__isthreaded || _pthread_main_np() ? \
|
| /freebsd-14.2/lib/nss_tacplus/ |
| H A D | nss_tacplus.c | 23 extern int __isthreaded; 68 if (__isthreaded && !pthread_main_np()) { in tacplus_get_handle()
|
| /freebsd-14.2/libexec/rtld-elf/rtld-libc/ |
| H A D | rtld_libc.h | 41 #define __isthreaded 0 macro
|