Home
last modified time | relevance | path

Searched refs:__isthreaded (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-14-stable/lib/libc/include/
HDreentrant.h98 #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) \
HDlibc_private.h55 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) \
HDnss_tls.h57 if (!__isthreaded || _pthread_main_np() != 0) { \
/freebsd-14-stable/lib/libc/stdlib/
HDset_constraint_handler_s.c53 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()
HDexit.c53 int __isthreaded = 0; variable
81 if (__isthreaded) { in exit()
HDatexit.c66 #define _MUTEX_LOCK(x) if (__isthreaded) _pthread_mutex_lock(x)
67 #define _MUTEX_UNLOCK(x) if (__isthreaded) _pthread_mutex_unlock(x)
68 #define _MUTEX_DESTROY(x) if (__isthreaded) _pthread_mutex_destroy(x)
HDSymbol.map15 __isthreaded;
/freebsd-14-stable/lib/libc/gen/
HDreaddir.c97 if (__isthreaded) in readdir()
100 if (__isthreaded) in readdir()
113 if (__isthreaded) in __readdir_r()
118 if (__isthreaded) in __readdir_r()
HDseekdir.c51 if (__isthreaded) in seekdir()
54 if (__isthreaded) in seekdir()
HDrewinddir.c49 if (__isthreaded) in rewinddir()
60 if (__isthreaded) in rewinddir()
HDclosedir.c54 if (__isthreaded) in fdclosedir()
62 if (__isthreaded) { in fdclosedir()
HDtelldir.c56 if (__isthreaded) in telldir()
87 if (__isthreaded) in telldir()
107 if (__isthreaded) in telldir()
HDarc4random.h60 if (__isthreaded) \
66 if (__isthreaded) \
HDreaddir-compat11.c74 if (__isthreaded) in freebsd11_readdir()
87 if (__isthreaded) in freebsd11_readdir()
HDpopen.c62 #define THREAD_LOCK() if (__isthreaded) _pthread_mutex_lock(&pidlist_mutex)
63 #define THREAD_UNLOCK() if (__isthreaded) _pthread_mutex_unlock(&pidlist_mutex)
HD_once_stub.c60 if (__isthreaded) in _once()
HDsyslog.c75 if (__isthreaded) _pthread_mutex_lock(&syslog_mutex); \
79 if (__isthreaded) _pthread_mutex_unlock(&syslog_mutex); \
/freebsd-14-stable/lib/libc/iconv/
HDcitrus_lock.h31 #define WLOCK(lock) if (__isthreaded) \
33 #define UNLOCK(lock) if (__isthreaded) \
/freebsd-14-stable/include/
HDstdio.h485 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))
500 #define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp))
501 #define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : (putc)(x, fp))
/freebsd-14-stable/contrib/jemalloc/include/jemalloc/
HDjemalloc_FreeBSD.h101 extern int __isthreaded;
102 #define isthreaded ((bool)__isthreaded)
/freebsd-14-stable/lib/libc/stdio/
HDfileno.c63 if (__isthreaded) { in fileno()
/freebsd-14-stable/lib/libc/nls/
HDmsgcat.c65 if (__isthreaded && \
71 if (__isthreaded && \
76 #define UNLOCK { if (__isthreaded) \
/freebsd-14-stable/contrib/libxo/libxo/
HDxo_syslog.c124 #define __isthreaded 1 macro
129 if (__isthreaded) pthread_mutex_lock(&xo_syslog_mutex); \
133 if (__isthreaded) pthread_mutex_unlock(&xo_syslog_mutex); \
/freebsd-14-stable/lib/libc/net/
HDnss_compat.c63 if (!__isthreaded || _pthread_main_np()) \
72 (!__isthreaded || _pthread_main_np() ? \
/freebsd-14-stable/lib/nss_tacplus/
HDnss_tacplus.c23 extern int __isthreaded;
68 if (__isthreaded && !pthread_main_np()) { in tacplus_get_handle()

12