Searched refs:nctx (Results 1 – 4 of 4) sorted by relevance
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_swapcontext.c | 41 ucontext_t nctx; variable 64 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc() 79 ATF_REQUIRE(getcontext(&nctx) == 0); in mainfunc() 81 nctx.uc_stack.ss_sp = stack; in mainfunc() 82 nctx.uc_stack.ss_size = sizeof(stack); in mainfunc() 87 ATF_REQUIRE(nctx.uc_flags & _UC_TLSBASE); in mainfunc() 89 nctx.uc_flags &= ~_UC_TLSBASE; in mainfunc() 92 makecontext(&nctx, swapfunc, 0); in mainfunc() 97 ATF_REQUIRE(swapcontext(&octx, &nctx) == 0); in mainfunc()
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libpthread/ |
| H A D | t_swapcontext.c | 46 ucontext_t nctx; variable 66 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc() 76 nctx.uc_stack.ss_sp = stack; in threadfunc() 77 nctx.uc_stack.ss_size = sizeof(stack); in threadfunc() 79 makecontext(&nctx, (void *)*swapfunc, 0); in threadfunc() 83 ATF_REQUIRE_MSG(swapcontext(&octx, &nctx) != -1, "swapcontext failed: %s", in threadfunc() 115 ATF_REQUIRE_MSG(getcontext(&nctx) != -1, "getcontext failed: %s", in ATF_TC_BODY()
|
| /freebsd-14.2/crypto/openssl/crypto/async/ |
| H A D | async.c | 37 async_ctx *nctx; in async_ctx_new() local 42 nctx = OPENSSL_malloc(sizeof(*nctx)); in async_ctx_new() 43 if (nctx == NULL) { in async_ctx_new() 48 async_fibre_init_dispatcher(&nctx->dispatcher); in async_ctx_new() 49 nctx->currjob = NULL; in async_ctx_new() 50 nctx->blocked = 0; in async_ctx_new() 51 if (!CRYPTO_THREAD_set_local(&ctxkey, nctx)) in async_ctx_new() 54 return nctx; in async_ctx_new() 56 OPENSSL_free(nctx); in async_ctx_new()
|
| /freebsd-14.2/crypto/openssl/test/ |
| H A D | bntest.c | 2561 BN_CTX *nctx = NULL; in test_ctx_consttime_flag() local 2566 if (!TEST_ptr(nctx = BN_CTX_new()) in test_ctx_consttime_flag() 2571 BN_CTX *c = i == 0 ? nctx : sctx; in test_ctx_consttime_flag() 2579 BN_CTX_free(nctx); in test_ctx_consttime_flag()
|