/freebsd/crypto/openssl/crypto/asn1/ |
H A D | tasn_new.c | 18 static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 21 static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it, 23 static void asn1_item_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 27 static void asn1_primitive_clear(ASN1_VALUE **pval, const ASN1_ITEM *it); 29 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it) in ASN1_item_new() argument 32 if (ASN1_item_ex_new(&ret, it) > 0) in ASN1_item_new() 37 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, in ASN1_item_new_ex() argument 41 if (asn1_item_embed_new(&ret, it, 0, libctx, propq) > 0) in ASN1_item_new_ex() 49 int ossl_asn1_item_ex_new_intern(ASN1_VALUE **pval, const ASN1_ITEM *it, in ossl_asn1_item_ex_new_intern() argument 52 return asn1_item_embed_new(pval, it, 0, libctx, propq); in ossl_asn1_item_ex_new_intern() [all …]
|
H A D | tasn_fre.c | 18 void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it) in ASN1_item_free() argument 20 ossl_asn1_item_embed_free(&val, it, 0); in ASN1_item_free() 23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument 25 ossl_asn1_item_embed_free(pval, it, 0); in ASN1_item_ex_free() 28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() argument 32 const ASN1_AUX *aux = it->funcs; in ossl_asn1_item_embed_free() 38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ossl_asn1_item_embed_free() 45 switch (it->itype) { in ossl_asn1_item_embed_free() 48 if (it->templates) in ossl_asn1_item_embed_free() 49 ossl_asn1_template_free(pval, it->templates); in ossl_asn1_item_embed_free() [all …]
|
H A D | tasn_enc.c | 20 const ASN1_ITEM *it, int tag, int aclass); 28 const ASN1_ITEM *it, int flags); 30 const ASN1_ITEM *it); 38 const ASN1_ITEM *it) in ASN1_item_ndef_i2d() argument 40 return asn1_item_flags_i2d(val, out, it, ASN1_TFLG_NDEF); in ASN1_item_ndef_i2d() 43 int ASN1_item_i2d(const ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it) in ASN1_item_i2d() argument 45 return asn1_item_flags_i2d(val, out, it, 0); in ASN1_item_i2d() 56 const ASN1_ITEM *it, int flags) in asn1_item_flags_i2d() argument 62 len = ASN1_item_ex_i2d(&val, NULL, it, -1, flags); in asn1_item_flags_i2d() 70 ASN1_item_ex_i2d(&val, &p, it, -1, flags); in asn1_item_flags_i2d() [all …]
|
H A D | x_bignum.c | 24 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 25 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 26 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 29 const ASN1_ITEM *it); 31 int utype, char *free_cont, const ASN1_ITEM *it); 33 int utype, char *free_cont, const ASN1_ITEM *it); 34 static int bn_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, 65 static int bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 74 static int bn_secure_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_secure_new() argument 83 static void bn_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in bn_free() argument [all …]
|
H A D | x_int64.c | 29 static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_new() argument 38 static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_free() argument 44 static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it) in uint64_clear() argument 50 const ASN1_ITEM *it) in uint64_i2c() argument 60 if ((it->size & INTxx_FLAG_ZERO_DEFAULT) == INTxx_FLAG_ZERO_DEFAULT in uint64_i2c() 63 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_i2c() 74 int utype, char *free_cont, const ASN1_ITEM *it) in uint64_c2i() argument 80 if (*pval == NULL && !uint64_new(pval, it)) in uint64_c2i() 96 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i() 100 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_c2i() [all …]
|
H A D | tasn_utl.c | 29 int ossl_asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it) in ossl_asn1_get_choice_selector() argument 31 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector() 37 const ASN1_ITEM *it) in ossl_asn1_get_choice_selector_const() argument 39 int *sel = offset2ptr(*pval, it->utype); in ossl_asn1_get_choice_selector_const() 49 const ASN1_ITEM *it) in ossl_asn1_set_choice_selector() argument 53 sel = offset2ptr(*pval, it->utype); in ossl_asn1_set_choice_selector() 68 int ossl_asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it) in ossl_asn1_do_lock() argument 75 if ((it->itype != ASN1_ITYPE_SEQUENCE) in ossl_asn1_do_lock() 76 && (it->itype != ASN1_ITYPE_NDEF_SEQUENCE)) in ossl_asn1_do_lock() 78 aux = it->funcs; in ossl_asn1_do_lock() [all …]
|
H A D | x_long.c | 21 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it); 22 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 25 const ASN1_ITEM *it); 27 int utype, char *free_cont, const ASN1_ITEM *it); 28 static int long_print(BIO *out, const ASN1_VALUE **pval, const ASN1_ITEM *it, 49 static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_ITEM_start() 51 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in ASN1_ITEM_start() 55 static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in long_free() argument 57 memcpy(pval, &it->size, COPY_SIZE(*pval, it->size)); in long_free() 86 const ASN1_ITEM *it) in long_i2c() argument [all …]
|
H A D | a_dup.c | 52 void *ASN1_item_dup(const ASN1_ITEM *it, const void *x) in ASN1_item_dup() argument 65 if (it->itype == ASN1_ITYPE_SEQUENCE || it->itype == ASN1_ITYPE_CHOICE in ASN1_item_dup() 66 || it->itype == ASN1_ITYPE_NDEF_SEQUENCE) { in ASN1_item_dup() 67 const ASN1_AUX *aux = it->funcs; in ASN1_item_dup() 73 if (!asn1_cb(ASN1_OP_DUP_PRE, (ASN1_VALUE **)&x, it, NULL) in ASN1_item_dup() 74 || !asn1_cb(ASN1_OP_GET0_LIBCTX, (ASN1_VALUE **)&x, it, &libctx) in ASN1_item_dup() 75 || !asn1_cb(ASN1_OP_GET0_PROPQ, (ASN1_VALUE **)&x, it, &propq)) in ASN1_item_dup() 79 i = ASN1_item_i2d(x, &b, it); in ASN1_item_dup() 85 ret = ASN1_item_d2i_ex(NULL, &p, i, it, libctx, propq); in ASN1_item_dup() 89 && !asn1_cb(ASN1_OP_DUP_POST, &ret, it, (void *)x)) in ASN1_item_dup() [all …]
|
H A D | tasn_dec.c | 29 long len, const ASN1_ITEM *it, 59 const ASN1_ITEM *it, 63 int utype, char *free_cont, const ASN1_ITEM *it); 108 long len, const ASN1_ITEM *it, int tag, in asn1_item_ex_d2i_intern() argument 114 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern() 118 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern() 121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern() 126 const ASN1_ITEM *it, in ASN1_item_ex_d2i() argument 129 return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx, in ASN1_item_ex_d2i() 135 const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, in ASN1_item_d2i_ex() argument [all …]
|
/freebsd/contrib/dma/ |
H A D | spool.c | 125 writequeuef(struct qitem *it) in writequeuef() argument 130 queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0660); in writequeuef() 135 it->queuef = fdopen(queuefd, "w+"); in writequeuef() 136 if (it->queuef == NULL) in writequeuef() 139 error = fprintf(it->queuef, in writequeuef() 143 it->queueid, in writequeuef() 144 it->sender, in writequeuef() 145 it->addr); in writequeuef() 150 if (fflush(it->queuef) != 0 || fsync(fileno(it->queuef)) != 0) in writequeuef() 164 struct qitem *it = NULL; in readqueuef() local [all …]
|
H A D | dma.c | 179 struct qitem *it, *tit; in add_recp() local 184 it = calloc(1, sizeof(*it)); in add_recp() 185 if (it == NULL) in add_recp() 187 it->addr = strdup(str); in add_recp() 188 if (it->addr == NULL) in add_recp() 191 it->sender = queue->sender; in add_recp() 192 host = strrchr(it->addr, '@'); in add_recp() 200 if (strcmp(tit->addr, it->addr) == 0) { in add_recp() 201 free(it->addr); in add_recp() 202 free(it); in add_recp() [all …]
|
H A D | aliases_parse.y | 85 struct stritem *it; variable 89 it = calloc(1, sizeof(*it)); 90 if (it == NULL) 92 it->str = $1; 93 $$ = it; 97 struct stritem *it; variable 101 it = calloc(1, sizeof(*it)); 102 if (it == NULL) 104 it->str = $1; 105 SLIST_NEXT(it, next) = $3; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
H A D | Utils.h | 43 auto it = sys::path::rbegin(SysRoot); in guessDeveloperDir() local 45 if (it == end || !it->ends_with(".sdk")) in guessDeveloperDir() 47 ++it; in guessDeveloperDir() 49 if (it == end || *it != "SDKs") in guessDeveloperDir() 51 auto developerEnd = it; in guessDeveloperDir() 52 ++it; in guessDeveloperDir() 53 while (it != end) { in guessDeveloperDir() 55 if (*it != "Developer") in guessDeveloperDir() 57 ++it; in guessDeveloperDir() 58 if (it == end) in guessDeveloperDir() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_getitimer.c | 62 struct itimerval it; in ATF_TC_BODY() local 69 (void)memset(&it, 0, sizeof(struct itimerval)); in ATF_TC_BODY() 71 ATF_REQUIRE(getitimer(ITIMER_REAL, &it) == 0); in ATF_TC_BODY() 73 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0) in ATF_TC_BODY() 76 ATF_REQUIRE(getitimer(ITIMER_VIRTUAL, &it) == 0); in ATF_TC_BODY() 78 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0) in ATF_TC_BODY() 81 ATF_REQUIRE(getitimer(ITIMER_PROF, &it) == 0); in ATF_TC_BODY() 83 if (it.it_value.tv_sec != 0 || it.it_value.tv_usec != 0) in ATF_TC_BODY() 100 struct itimerval it; in ATF_TC_BODY() local 103 ATF_REQUIRE_ERRNO(EINVAL, getitimer(-1, &it) == -1); in ATF_TC_BODY() [all …]
|
/freebsd/sys/kern/ |
H A D | kern_time.c | 106 static void realtimer_expire_l(struct itimer *it, bool proc_locked); 111 static void itimer_fire(struct itimer *it); 720 * as a delta, so that it is easy to keep periodic real-time signals from 726 * real time due to interrupt processing in the system, it is possible for 728 * in real time past when it is supposed to occur. It does not suffice, 896 struct itimer *it; in itimer_proc_continue() 912 it = p->p_itimers->its_timers[id]; in itimer_proc_continue() 913 if (it == NULL) in itimer_proc_continue() 915 if ((it->it_flags & ITF_PSTOPPED) != 0) { in itimer_proc_continue() 916 ITIMER_LOCK(it); in itimer_proc_continue() 895 struct itimer *it; itimer_proc_continue() local 1164 struct itimer *it; itimer_init() local 1174 struct itimer *it; itimer_fini() local 1181 itimer_enter(struct itimer * it) itimer_enter() argument 1189 itimer_leave(struct itimer * it) itimer_leave() argument 1235 struct itimer *it; kern_ktimer_create() local 1351 struct itimer *it; itimer_find() local 1371 struct itimer *it; kern_ktimer_delete() local 1428 struct itimer *it; kern_ktimer_settime() local 1469 struct itimer *it; kern_ktimer_gettime() local 1503 struct itimer *it; kern_ktimer_getoverrun() local 1521 realtimer_create(struct itimer * it) realtimer_create() argument 1528 realtimer_delete(struct itimer * it) realtimer_delete() argument 1545 realtimer_gettime(struct itimer * it,struct itimerspec * ovalue) realtimer_gettime() argument 1566 realtimer_settime(struct itimer * it,int flags,struct itimerspec * value,struct itimerspec * ovalue) realtimer_settime() argument 1626 struct itimer *it; itimer_accept() local 1661 realtimer_expire_l(struct itimer * it,bool proc_locked) realtimer_expire_l() argument 1745 itimer_fire(struct itimer * it) itimer_fire() argument 1796 struct itimer *it; itimers_event_exit_exec() local [all...] |
H A D | subr_pctrie.c | 538 _pctrie_iter_lookup_node(struct pctrie_iter *it, uint64_t index, smr_t smr, in _pctrie_iter_lookup_node() argument 548 while (it->top != 0) { in _pctrie_iter_lookup_node() 549 node = it->path[it->top - 1]; in _pctrie_iter_lookup_node() 557 --it->top; in _pctrie_iter_lookup_node() 559 if (it->top == 0) in _pctrie_iter_lookup_node() 560 node = pctrie_root_load(it->ptree, smr, access); in _pctrie_iter_lookup_node() 564 KASSERT(it->top < nitems(it->path), in _pctrie_iter_lookup_node() 565 ("%s: path overflow in trie %p", __func__, it->ptree)); in _pctrie_iter_lookup_node() 566 it->path[it->top++] = node; in _pctrie_iter_lookup_node() 576 _pctrie_iter_lookup(struct pctrie_iter *it, uint64_t index, smr_t smr, in _pctrie_iter_lookup() argument [all …]
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | callout.cc | 77 for (std::list<Callout *>::iterator it(s_activeCallouts.begin()); in Stop() local 78 it != s_activeCallouts.end(); it++) { in Stop() 79 if (*it != this) in Stop() 82 it = s_activeCallouts.erase(it); in Stop() 83 if (it != s_activeCallouts.end()) { in Stop() 90 timeradd(&(*it)->m_interval, &m_interval, in Stop() 91 &(*it)->m_interval); in Stop() 114 std::list<Callout *>::iterator it(s_activeCallouts.begin()); in Reset() local 115 for (; it != s_activeCallouts.end(); it++) { in Reset() 117 if (timercmp(&(*it)->m_interval, &m_interval, <=)) { in Reset() [all …]
|
/freebsd/contrib/opencsd/decoder/source/mem_acc/ |
H A D | trc_mem_acc_file.cpp | 57 std::list<FileRegionMemAccessor *>::iterator it; in ~TrcMemAccessorFile() local 58 it = m_access_regions.begin(); in ~TrcMemAccessorFile() 59 while(it != m_access_regions.end()) in ~TrcMemAccessorFile() 61 delete (*it); in ~TrcMemAccessorFile() 62 it++; in ~TrcMemAccessorFile() 103 std::list<FileRegionMemAccessor *>::const_iterator it; in getRegionForAddress() local 104 it = m_access_regions.begin(); in getRegionForAddress() 105 while((it != m_access_regions.end()) && (p_region == 0)) in getRegionForAddress() 107 if((*it)->addrInRange(startAddr)) in getRegionForAddress() 108 p_region = *it; in getRegionForAddress() [all …]
|
/freebsd/sys/sys/ |
H A D | pctrie.h | 230 name##_PCTRIE_ITER_INSERT(struct pctrie_iter *it, struct type *ptr) \ 236 parentp = pctrie_iter_insert_lookup(it, val); \ 239 parent = allocfn(it->ptree); \ 243 it->path[it->top++] = parent; \ 248 name##_PCTRIE_ITER_LOOKUP(struct pctrie_iter *it, uint64_t index) \ 250 return name##_PCTRIE_VAL2PTR(pctrie_iter_lookup(it, index)); \ 254 name##_PCTRIE_ITER_STRIDE(struct pctrie_iter *it, int stride) \ 256 return name##_PCTRIE_VAL2PTR(pctrie_iter_stride(it, stride)); \ 260 name##_PCTRIE_ITER_NEXT(struct pctrie_iter *it) \ 262 return name##_PCTRIE_VAL2PTR(pctrie_iter_next(it)); \ [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-param-test-test.cc | 82 typename ParamGenerator<T>::iterator it = generator.begin(); in VerifyGenerator() local 84 ASSERT_FALSE(it == generator.end()) in VerifyGenerator() 89 EXPECT_TRUE(expected_values[i] == *it) in VerifyGenerator() 91 << PrintValue(expected_values[i]) << ", *it is " << PrintValue(*it) in VerifyGenerator() 93 ++it; in VerifyGenerator() 95 EXPECT_TRUE(it == generator.end()) in VerifyGenerator() 103 it = generator.begin(); in VerifyGenerator() 105 ASSERT_FALSE(it == generator.end()) in VerifyGenerator() 108 EXPECT_TRUE(expected_values[i] == *it) in VerifyGenerator() 110 << PrintValue(expected_values[i]) << ", *it is " << PrintValue(*it) in VerifyGenerator() [all …]
|
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-spec-builders.cc | 122 for (ExpectationSet::const_iterator it = in RetireAllPreRequisites() local 124 it != exp->immediate_prerequisites_.end(); ++it) { in RetireAllPreRequisites() 125 ExpectationBase* next = it->expectation_base().get(); in RetireAllPreRequisites() 144 for (ExpectationSet::const_iterator it = in AllPrerequisitesAreSatisfied() local 146 it != exp->immediate_prerequisites_.end(); ++it) { in AllPrerequisitesAreSatisfied() 147 const ExpectationBase* next = it->expectation_base().get(); in AllPrerequisitesAreSatisfied() 164 for (ExpectationSet::const_iterator it = in FindUnsatisfiedPrerequisites() local 166 it != exp->immediate_prerequisites_.end(); ++it) { in FindUnsatisfiedPrerequisites() 167 const ExpectationBase* next = it->expectation_base().get(); in FindUnsatisfiedPrerequisites() 179 *result += *it; in FindUnsatisfiedPrerequisites() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_lzw.h | 36 for (auto it = begin; it != end; ++it) in LzwEncode() local 37 if (prefix_to_code.try_emplace({kNoPrefix, *it}, 0).second) in LzwEncode() 38 dict_len1.push_back(*it); in LzwEncode() 63 for (auto it = begin; it != end; ++it) { in LzwEncode() local 65 auto ins = prefix_to_code.try_emplace({match, *it}, prefix_to_code.size()); in LzwEncode() 72 match = prefix_to_code.find({kNoPrefix, *it})->second; in LzwEncode() 117 for (ItOut it = s.first; it != s.second; ++it, ++out) *out = *it; in LzwDecode() local 133 for (auto it = begin; it != end; ++it) { in LzwDecode() local 134 LzwCodeType code = *it; in LzwDecode()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DeltaAlgorithm.cpp | 33 for (changeset_ty::const_iterator it = S.begin(), in Split() local 34 ie = S.end(); it != ie; ++it, ++idx) in Split() 35 ((idx < N) ? LHS : RHS).insert(*it); in Split() 71 for (changesetlist_ty::const_iterator it = Sets.begin(), in Search() local 72 ie = Sets.end(); it != ie; ++it) { in Search() 74 if (GetTestResult(*it)) { in Search() 76 Split(*it, Sets); in Search() 77 Res = Delta(*it, Sets); in Search() 86 std::set_difference(Changes.begin(), Changes.end(), it->begin(), in Search() 87 it->end(), in Search() [all …]
|
H A D | DAGDeltaAlgorithm.cpp | 126 for (changeset_ty::const_iterator it = S.begin(), ie = S.end(); it != ie; in ExecuteOneTest() 127 ++it) in ExecuteOneTest() 128 for (succ_iterator_ty it2 = succ_begin(*it), ie2 = succ_end(*it); in ExecuteOneTest() 203 for (pred_iterator_ty it = pred_begin(Change), in DAGDeltaAlgorithmImpl() local 204 ie = pred_end(Change); it != ie; ++it) { in DAGDeltaAlgorithmImpl() 205 SuccClosure[*it].insert(Change); in DAGDeltaAlgorithmImpl() 206 SuccClosure[*it].insert(ChangeSuccs.begin(), ChangeSuccs.end()); in DAGDeltaAlgorithmImpl() 207 Worklist.push_back(*it); in DAGDeltaAlgorithmImpl() 224 for (changeset_ty::const_iterator it = Changes.begin(), ie = Changes.end(); in DAGDeltaAlgorithmImpl() 225 it != ie; ++it) { in DAGDeltaAlgorithmImpl() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | sigtimedwait.h | 49 struct itimerval it; in sigtimedwait() local 59 timerclear(&it.it_interval); in sigtimedwait() 60 it.it_value.tv_sec = timeout->tv_sec; in sigtimedwait() 61 it.it_value.tv_usec = timeout->tv_nsec / 1000; in sigtimedwait() 62 if (it.it_value.tv_sec == 0 && it.it_value.tv_usec == 0) in sigtimedwait() 63 it.it_value.tv_usec = 1; in sigtimedwait() 64 PJDLOG_VERIFY(setitimer(ITIMER_REAL, &it, NULL) == 0); in sigtimedwait() 72 timerclear(&it.it_interval); in sigtimedwait() 73 timerclear(&it.it_value); in sigtimedwait() 74 PJDLOG_VERIFY(setitimer(ITIMER_REAL, &it, NULL) == 0); in sigtimedwait()
|