| /freebsd-12-stable/contrib/gcc/ |
| D | gthr-solaris.h | 51 int once; member 406 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument 411 if (once == 0 || func == 0) in __gthread_once() 414 if (once->once == 0) in __gthread_once() 416 int status = __gthrw_(mutex_lock) (&once->mutex); in __gthread_once() 419 if (once->once == 0) in __gthread_once() 422 once->once++; in __gthread_once() 424 __gthrw_(mutex_unlock) (&once->mutex); in __gthread_once()
|
| D | gthr-win32.h | 428 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument 431 return __gthr_win32_once (once, func); in __gthread_once() 532 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument 536 else if (once == NULL || func == NULL) in __gthread_once() 539 if (! once->done) in __gthread_once() 541 if (InterlockedIncrement (&(once->started)) == 0) in __gthread_once() 544 once->done = TRUE; in __gthread_once() 553 while (! once->done) in __gthread_once()
|
| D | gthr-rtems.h | 58 extern int rtems_gxx_once (__gthread_once_t *once, void (*func) (void)); 85 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument 87 return rtems_gxx_once( once, func ); in __gthread_once()
|
| D | gthr-nks.h | 284 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument 286 if (__compare_and_swap (once, 0, 1)) in __gthread_once() 289 *once |= 2; in __gthread_once() 293 while (!(*once & 2)) in __gthread_once()
|
| /freebsd-12-stable/contrib/gcc/config/i386/ |
| D | gthr-win32.c | 74 __gthr_win32_once (__gthread_once_t *once, void (*func) (void)) in __gthr_win32_once() argument 76 if (once == NULL || func == NULL) in __gthr_win32_once() 79 if (! once->done) in __gthr_win32_once() 81 if (InterlockedIncrement (&(once->started)) == 0) in __gthr_win32_once() 84 once->done = TRUE; in __gthr_win32_once() 93 while (! once->done) in __gthr_win32_once()
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libpthread/ |
| D | t_once.c | 46 static pthread_once_t once = PTHREAD_ONCE_INIT; variable 69 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY() 70 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY() 89 PTHREAD_REQUIRE(pthread_once(&once, once2_ofunc)); in once2_threadfunc() 142 PTHREAD_REQUIRE(pthread_once(&once, once3_ofunc)); in once3_threadfunc() 183 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY()
|
| /freebsd-12-stable/usr.bin/procstat/ |
| D | procstat_cs.c | 54 int once, twice, lastcpu, cpu; in procstat_cs() local 88 once = 0; in procstat_cs() 93 if (once == 0) { in procstat_cs() 96 once = 1; in procstat_cs() 109 if (once && twice) in procstat_cs()
|
| /freebsd-12-stable/crypto/openssl/include/internal/ |
| D | thread_once.h | 118 #define RUN_ONCE(once, init) \ argument 119 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0) 136 #define RUN_ONCE_ALT(once, initalt, init) \ argument 137 (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
|
| /freebsd-12-stable/contrib/googletest/googlemock/test/ |
| D | gmock_output_test_golden.txt | 41 Expected: to be called once 54 Expected: to be called once 62 Expected: to be called once 69 Expected: to be called once 98 Expected: to be called once 99 Actual: called once - saturated and retired 105 Expected: to be called once 119 Expected: to be called once 126 Expected: to be called once 140 Expected: to be called once [all …]
|
| /freebsd-12-stable/lib/libsecureboot/ |
| D | vets.c | 350 static int once = -1; in ve_trust_init() local 352 if (once >= 0) in ve_trust_init() 353 return (once); in ve_trust_init() 354 once = 0; /* to be sure */ in ve_trust_init() 368 once = (int) VEC_LEN(trust_anchors); in ve_trust_init() 370 once += openpgp_trust_init(); in ve_trust_init() 372 return (once); in ve_trust_init() 958 static int once = -1; in ve_self_tests() local 969 if (once >= 0) in ve_self_tests() 970 return (once); in ve_self_tests() [all …]
|
| /freebsd-12-stable/crypto/heimdal/base/ |
| D | heimbase.c | 320 heim_base_once_f(heim_base_once_t *once, void *ctx, void (*func)(void *)) in heim_base_once_f() argument 323 dispatch_once_f(once, ctx, func); in heim_base_once_f() 327 if (*once == 0) { in heim_base_once_f() 328 *once = 1; in heim_base_once_f() 332 *once = 2; in heim_base_once_f() 334 } else if (*once == 2) { in heim_base_once_f() 342 if (*once == 2) in heim_base_once_f() 412 static heim_base_once_t once = HEIM_BASE_ONCE_INIT; in autorel_tls() local 416 heim_base_once_f(&once, NULL, init_ar_tls); in autorel_tls()
|
| /freebsd-12-stable/lib/libsecureboot/openpgp/ |
| D | opgp_key.c | 205 static int once = 0; in openpgp_trust_add() local 207 if (!once) { in openpgp_trust_add() 208 once = 1; in openpgp_trust_add() 354 static int once = -1; in openpgp_trust_init() local 362 if (once < 0) { in openpgp_trust_init() 363 once = 0; in openpgp_trust_init() 372 once++; in openpgp_trust_init() 378 return (once); in openpgp_trust_init()
|
| /freebsd-12-stable/lib/libsecureboot/efi/ |
| D | efi_init.c | 42 static int once = 0; in ve_efi_init() local 44 if (once > 0) in ve_efi_init() 47 once = 1; in ve_efi_init()
|
| /freebsd-12-stable/crypto/openssl/crypto/ |
| D | threads_none.c | 65 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) in CRYPTO_THREAD_run_once() argument 67 if (*once != 0) in CRYPTO_THREAD_run_once() 71 *once = 1; in CRYPTO_THREAD_run_once()
|
| D | threads_pthread.c | 116 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) in CRYPTO_THREAD_run_once() argument 118 if (pthread_once(once, init) != 0) in CRYPTO_THREAD_run_once()
|
| /freebsd-12-stable/usr.bin/systat/ |
| D | swap.c | 95 static int once = 0; in initswap() local 97 if (once) in initswap() 106 once = 1; in initswap()
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/unix/ |
| D | strerror.c | 53 static isc_once_t once = ISC_ONCE_INIT; in isc__strerror() local 57 RUNTIME_CHECK(isc_once_do(&once, init_lock) == ISC_R_SUCCESS); in isc__strerror()
|
| /freebsd-12-stable/crypto/openssl/doc/man3/ |
| D | CRYPTO_THREAD_run_once.pod | 15 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)); 41 The B<once> argument must be a pointer to a static object of type 45 exactly once initialization. 109 static CRYPTO_ONCE once = CRYPTO_ONCE_STATIC_INIT; 119 if (!CRYPTO_THREAD_run_once(&once, void init) || lock == NULL)
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/ |
| D | random.c | 39 static isc_once_t once = ISC_ONCE_INIT; variable 60 RUNTIME_CHECK(isc_once_do(&once, initialize_rand) == ISC_R_SUCCESS); in initialize()
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/ |
| D | emutls.c | 124 static pthread_once_t once = PTHREAD_ONCE_INIT; in emutls_init_once() local 125 pthread_once(&once, emutls_init); in emutls_init_once() 208 static INIT_ONCE once; in emutls_init_once() local 209 InitOnceExecuteOnce(&once, emutls_init, NULL, NULL); in emutls_init_once()
|
| /freebsd-12-stable/sys/contrib/zlib/ |
| D | crc32.c | 179 local void once OF((once_t *, void (*)(void))); 199 local void once(state, init) in once() function 237 local void once(state, init) in once() function 598 once(&made, make_crc_table); in get_crc_table() 638 once(&made, make_crc_table); 757 once(&made, make_crc_table); 1087 once(&made, make_crc_table); 1106 once(&made, make_crc_table);
|
| /freebsd-12-stable/contrib/gcc/doc/ |
| D | configterms.texi | 23 @command{configure} may (and once did) assume that the host you specify 57 The @code{libiberty} support library is built up to three times: once 58 for the host, once for the target (even if they are the same), and once
|
| /freebsd-12-stable/usr.bin/cpuset/ |
| D | cpuset.c | 223 int once; in printset() local 226 for (once = 0, bit = 0; bit < size; bit++) { in printset() 228 if (once == 0) { in printset() 230 once = 1; in printset()
|
| /freebsd-12-stable/sys/kern/ |
| D | vfs_init.c | 175 static int once; in vfs_register() local 180 if (!once) { in vfs_register() 182 once = 1; in vfs_register()
|
| /freebsd-12-stable/contrib/libstdc++/libsupc++/ |
| D | guard.cc | 59 static __gthread_once_t once = __GTHREAD_ONCE_INIT; in get_static_mutex() local 60 __gthread_once(&once, init); in get_static_mutex()
|