Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 25 of 147) sorted by relevance

123456

/freebsd/crypto/openssl/crypto/async/
H A Dasync_wait.c22 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_free() local
28 curr = ctx->fds; in ASYNC_WAIT_CTX_free()
29 while (curr != NULL) { in ASYNC_WAIT_CTX_free()
30 if (!curr->del) { in ASYNC_WAIT_CTX_free()
32 if (curr->cleanup != NULL) in ASYNC_WAIT_CTX_free()
33 curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data); in ASYNC_WAIT_CTX_free()
36 next = curr->next; in ASYNC_WAIT_CTX_free()
37 OPENSSL_free(curr); in ASYNC_WAIT_CTX_free()
38 curr = next; in ASYNC_WAIT_CTX_free()
69 struct fd_lookup_st *curr; in ASYNC_WAIT_CTX_get_fd() local
[all …]
/freebsd/bin/cp/
H A Dcp.c269 FTSENT *curr; in copy() local
285 for (badcp = rval = 0; (curr = fts_read(ftsp)) != NULL; badcp = 0) { in copy()
286 switch (curr->fts_info) { in copy()
290 warnc(curr->fts_errno, "%s", curr->fts_path); in copy()
294 warnx("%s: directory causes a cycle", curr->fts_path); in copy()
308 if (curr->fts_level == FTS_ROOTLEVEL) { in copy()
309 strlcpy(rootname, curr->fts_name, sizeof(rootname)); in copy()
336 if (curr->fts_level == FTS_ROOTLEVEL) { in copy()
338 p = strrchr(curr in copy()
[all...]
/freebsd/crypto/openssl/crypto/x509/
H A Dpcy_tree.c55 X509_POLICY_LEVEL *curr) in tree_print() argument
59 if (!curr) in tree_print()
60 curr = tree->levels + tree->nlevel; in tree_print()
62 curr++; in tree_print()
66 (long)(curr - tree->levels)); in tree_print()
67 for (plev = tree->levels; plev != curr; plev++) { in tree_print()
85 #define TREE_PRINT(str, tree, curr) \ argument
87 tree_print(trc_out, "before tree_prune()", tree, curr); \
257 static int tree_link_matching_nodes(X509_POLICY_LEVEL *curr, in tree_link_matching_nodes() argument
261 X509_POLICY_LEVEL *last = curr - 1; in tree_link_matching_nodes()
[all …]
/freebsd/sys/contrib/openzfs/lib/libnvpair/
H A Dlibnvpair_json.c117 nvpair_t *curr; in nvlist_print_json() local
122 for (curr = nvlist_next_nvpair(nvl, NULL); curr; in nvlist_print_json()
123 curr = nvlist_next_nvpair(nvl, curr)) { in nvlist_print_json()
124 data_type_t type = nvpair_type(curr); in nvlist_print_json()
131 if (nvlist_print_json_string(fp, nvpair_name(curr)) == -1) in nvlist_print_json()
137 const char *string = fnvpair_value_string(curr); in nvlist_print_json()
149 FPRINTF(fp, "%s", fnvpair_value_boolean_value(curr) == in nvlist_print_json()
155 FPRINTF(fp, "%hhu", fnvpair_value_byte(curr)); in nvlist_print_json()
160 FPRINTF(fp, "%hhd", fnvpair_value_int8(curr)); in nvlist_print_json()
165 FPRINTF(fp, "%hhu", fnvpair_value_uint8(curr)); in nvlist_print_json()
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dpacket.h24 const unsigned char *curr; member
32 pkt->curr += len; in packet_forward()
52 return pkt->curr + pkt->remaining; in PACKET_end()
61 return pkt->curr; in PACKET_data()
77 pkt->curr = buf; in PACKET_buf_init()
85 pkt->curr = NULL; in PACKET_null_init()
99 return CRYPTO_memcmp(pkt->curr, ptr, num) == 0; in PACKET_equal()
113 return PACKET_buf_init(subpkt, pkt->curr, len); in PACKET_peek_sub_packet()
142 *data = ((unsigned int)(*pkt->curr)) << 8; in PACKET_peek_net_2()
143 *data |= *(pkt->curr + 1); in PACKET_peek_net_2()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dinitthread.c311 THREAD_EVENT_HANDLER *curr, *prev = NULL, *tmp; in init_thread_stop() local
329 curr = *hands; in init_thread_stop()
330 while (curr != NULL) { in init_thread_stop()
331 if (arg != NULL && curr->arg != arg) { in init_thread_stop()
332 prev = curr; in init_thread_stop()
333 curr = curr->next; in init_thread_stop()
336 curr->handfn(curr->arg); in init_thread_stop()
338 *hands = curr->next; in init_thread_stop()
340 prev->next = curr->next; in init_thread_stop()
342 tmp = curr; in init_thread_stop()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname.c458 struct dns_query *head, *curr, *prev; in parse_dns_qsection() local
468 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_qsection()
475 curr = calloc(1, sizeof(struct dns_query)); in parse_dns_qsection()
476 if (curr == NULL) in parse_dns_qsection()
479 head = curr; in parse_dns_qsection()
481 prev->next = curr; in parse_dns_qsection()
490 curr->name = strdup(name); in parse_dns_qsection()
491 if (curr->name == NULL) { in parse_dns_qsection()
500 curr->type = _getshort(*cp); in parse_dns_qsection()
505 curr->class = _getshort(*cp); in parse_dns_qsection()
[all …]
/freebsd/crypto/openssl/ssl/
H A Dssl_ciph.c643 static void ll_append_tail(CIPHER_ORDER **head, CIPHER_ORDER *curr, in ll_append_tail() argument
646 if (curr == *tail) in ll_append_tail()
648 if (curr == *head) in ll_append_tail()
649 *head = curr->next; in ll_append_tail()
650 if (curr->prev != NULL) in ll_append_tail()
651 curr->prev->next = curr->next; in ll_append_tail()
652 if (curr->next != NULL) in ll_append_tail()
653 curr->next->prev = curr->prev; in ll_append_tail()
654 (*tail)->next = curr; in ll_append_tail()
655 curr->prev = *tail; in ll_append_tail()
[all …]
/freebsd/stand/libsa/
H A Denvironment.c65 struct env_var *ev, *curr, *last; in env_setenv() local
98 for (last = NULL, curr = environ; curr != NULL; in env_setenv()
99 last = curr, curr = curr->ev_next) { in env_setenv()
101 if (strcmp(ev->ev_name, curr->ev_name) < 0) { in env_setenv()
102 if (curr->ev_prev) { in env_setenv()
103 curr->ev_prev->ev_next = ev; in env_setenv()
107 ev->ev_next = curr; in env_setenv()
108 ev->ev_prev = curr->ev_prev; in env_setenv()
109 curr->ev_prev = ev; in env_setenv()
113 if (curr == NULL) { in env_setenv()
/freebsd/sys/dev/iommu/
H A Diommu_gas.c382 iommu_gas_next(struct iommu_map_entry *curr, iommu_gaddr_t min_free) in iommu_gas_next() argument
386 if ((next = RB_RIGHT(curr, rb_entry)) != NULL && in iommu_gas_next()
390 curr = next; in iommu_gas_next()
391 while ((next = RB_LEFT(curr, rb_entry)) != NULL && in iommu_gas_next()
395 while ((next = RB_PARENT(curr, rb_entry)) != NULL && in iommu_gas_next()
396 curr == RB_RIGHT(next, rb_entry)) in iommu_gas_next()
397 curr = next; in iommu_gas_next()
398 curr = next; in iommu_gas_next()
400 return (curr); in iommu_gas_next()
415 struct iommu_map_entry *curr, *first; in iommu_gas_find_space() local
[all …]
/freebsd/crypto/openssl/crypto/err/
H A Derr_prn.c76 const char *curr = txt, *next = txt; in ERR_add_error_txt() local
101 curr = NULL; /* no need to split */ in ERR_add_error_txt()
104 curr = next; /* will split at this point */ in ERR_add_error_txt()
108 curr = next; in ERR_add_error_txt()
109 next = strstr(curr, separator); in ERR_add_error_txt()
114 next = curr + strlen(curr); in ERR_add_error_txt()
118 curr = NULL; /* the above loop implies *next == '\0' */ in ERR_add_error_txt()
120 if (curr != NULL) { in ERR_add_error_txt()
122 if (curr != txt) { in ERR_add_error_txt()
123 tmp = OPENSSL_strndup(txt, curr - txt); in ERR_add_error_txt()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DGCDAProfiling.c128 struct fn_node* curr = list->head; in fn_list_remove() local
132 while (curr) { in fn_list_remove()
133 next = curr->next; in fn_list_remove()
135 if (curr->id == CURRENT_ID) { in fn_list_remove()
136 if (curr == list->head) { in fn_list_remove()
140 if (curr == list->tail) { in fn_list_remove()
148 free(curr); in fn_list_remove()
150 prev = curr; in fn_list_remove()
153 curr = next; in fn_list_remove()
543 struct fn_node *curr = writeout_fn_list.head; in llvm_writeout_files() local
[all …]
/freebsd/crypto/openssl/test/
H A Dparams_conversion_test.c63 TEST_info("Line %d: multiple type lines", s->curr); in param_conversion_load_stanza()
68 TEST_info("Line %d: unknown type line", s->curr); in param_conversion_load_stanza()
73 TEST_info("Line %d: multiple int32 lines", s->curr); in param_conversion_load_stanza()
82 TEST_info("Line %d: multiple int64 lines", s->curr); in param_conversion_load_stanza()
91 TEST_info("Line %d: multiple uint32 lines", s->curr); in param_conversion_load_stanza()
100 TEST_info("Line %d: multiple uint64 lines", s->curr); in param_conversion_load_stanza()
109 TEST_info("Line %d: multiple double lines", s->curr); in param_conversion_load_stanza()
117 TEST_info("Line %d: unknown keyword %s", s->curr, pp->key); in param_conversion_load_stanza()
122 s->curr, p, pp->key); in param_conversion_load_stanza()
128 TEST_info("Line %d: type not found", s->curr); in param_conversion_load_stanza()
[all …]
/freebsd/contrib/lua/src/
H A Dlgc.c829 GCObject *curr = *p; in sweeplist() local
830 int marked = curr->marked; in sweeplist()
832 *p = curr->next; /* remove 'curr' from list */ in sweeplist()
833 freeobj(L, curr); /* erase 'curr' */ in sweeplist()
836 curr->marked = cast_byte((marked & ~maskgcbits) | white); in sweeplist()
837 p = &curr->next; /* go to next element */ in sweeplist()
973 GCObject *curr; in separatetobefnz() local
976 while ((curr = *p) != g->finobjold1) { /* traverse all finalizable objects */ in separatetobefnz()
977 lua_assert(tofinalize(curr)); in separatetobefnz()
978 if (!(iswhite(curr) || all)) /* not being collected? */ in separatetobefnz()
[all …]
/freebsd/sys/contrib/zlib/
H A Dinftrees.c39 unsigned curr; /* number of index bits for current table */ in inflate_table() local
197 curr = root; /* current table index bits */ in inflate_table()
227 fill = 1U << curr; in inflate_table()
262 curr = len - drop; in inflate_table()
263 left = (int)(1 << curr); in inflate_table()
264 while (curr + drop < max) { in inflate_table()
265 left -= count[curr + drop]; in inflate_table()
267 curr++; in inflate_table()
272 used += 1U << curr; in inflate_table()
279 (*table)[low].op = (unsigned char)curr; in inflate_table()
/freebsd/sys/contrib/openzfs/cmd/
H A Dzilstat.in88 curr = {}
163 global curr
167 curr = dict()
371 global curr, pool_name, dataset_name, dsFlag, ds_pairs
372 curr.clear()
419 global curr, diff
420 prev = copy.deepcopy(curr)
422 diff = copy.deepcopy(curr)
423 for pool in curr:
424 for objset in curr[pool]:
[all …]
/freebsd/lib/libsys/
H A D__vdso_gettimeofday.c63 uint32_t curr, gen; in binuptime() local
72 curr = atomic_load_acq_32(&tk->tk_current); in binuptime()
73 th = &tk->tk_th[curr]; in binuptime()
102 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in binuptime()
110 uint32_t curr, gen; in getnanouptime() local
116 curr = atomic_load_acq_32(&tk->tk_current); in getnanouptime()
117 th = &tk->tk_th[curr]; in getnanouptime()
126 } while (curr != tk->tk_current || gen == 0 || gen != th->th_gen); in getnanouptime()
/freebsd/crypto/openssl/test/testutil/
H A Dstanza.c54 s->curr++; in read_key()
93 s->curr++; in test_readstanza()
95 TEST_info("Line %d too long", s->curr); in test_readstanza()
110 TEST_info("Missing = at line %d\n", s->curr); in test_readstanza()
115 TEST_info("Empty field at line %d\n", s->curr); in test_readstanza()
122 TEST_info("Starting \"%s\" tests at line %d", value, s->curr); in test_readstanza()
127 s->start = s->curr; in test_readstanza()
/freebsd/contrib/bsddialog/lib/
H A Ddatebox.c386 d.bs.curr++; in bsddialog_calendar()
387 if (d.bs.curr >= (int)d.bs.nbuttons) { in bsddialog_calendar()
390 d.bs.curr = conf->button.always_active ? in bsddialog_calendar()
398 d.bs.curr = 0; in bsddialog_calendar()
406 d.bs.curr++; in bsddialog_calendar()
407 if (d.bs.curr >= (int)d.bs.nbuttons) { in bsddialog_calendar()
410 d.bs.curr = conf->button.always_active ? in bsddialog_calendar()
423 d.bs.curr--; in bsddialog_calendar()
424 if (d.bs.curr < 0) { in bsddialog_calendar()
427 d.bs.curr in bsddialog_calendar()
[all...]
H A Dtimebox.c149 d.bs.curr++; in bsddialog_timebox()
150 focusbuttons = d.bs.curr < (int)d.bs.nbuttons ? in bsddialog_timebox()
154 d.bs.curr = in bsddialog_timebox()
161 d.bs.curr = 0; in bsddialog_timebox()
169 d.bs.curr--; in bsddialog_timebox()
170 focusbuttons = d.bs.curr < 0 ? false : true; in bsddialog_timebox()
173 d.bs.curr = in bsddialog_timebox()
180 d.bs.curr = (int)d.bs.nbuttons - 1; in bsddialog_timebox()
193 d.bs.curr = conf->button.always_active ? 0 : -1; in bsddialog_timebox()
/freebsd/sys/tools/
H A Dfw_stub.awk103 split(ARGV[i], curr, ":");
104 filenames[num_files] = curr[1];
105 if (length(curr[2]) > 0)
106 shortnames[num_files] = curr[2];
108 shortnames[num_files] = curr[1];
109 if (length(curr[3]) > 0)
110 versions[num_files] = int(curr[3]);
/freebsd/sys/net/
H A Dnetmap_user.h417 struct win_netmap_fd_list *curr; in win_insert_fd_record() local
419 for (curr = win_netmap_fd_list_head; curr; curr = curr->next) { in win_insert_fd_record()
420 if (fd == curr->win_netmap_fd) { in win_insert_fd_record()
424 curr = calloc(1, sizeof(*curr)); in win_insert_fd_record()
425 curr->next = win_netmap_fd_list_head; in win_insert_fd_record()
426 curr->win_netmap_fd = fd; in win_insert_fd_record()
427 curr->win_netmap_handle = IntToPtr(_get_osfhandle(fd)); in win_insert_fd_record()
428 win_netmap_fd_list_head = curr; in win_insert_fd_record()
434 struct win_netmap_fd_list *curr = win_netmap_fd_list_head; in win_remove_fd_record() local
436 for (; curr ; prev = curr, curr = curr->next) { in win_remove_fd_record()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_lazy.c65 U32 curr, const BYTE* inputEnd, in ZSTD_insertDUBT1() argument
77 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr; in ZSTD_insertDUBT1()
78 const BYTE* const iend = (curr>=dictLimit) ? inputEnd : dictBase + dictLimit; in ZSTD_insertDUBT1()
82 U32* smallerPtr = bt + 2*(curr&btMask); in ZSTD_insertDUBT1()
88 U32 const windowLow = (curr - windowValid > maxDistance) ? curr - maxDistance : windowValid; in ZSTD_insertDUBT1()
92 curr, dictLimit, windowLow); in ZSTD_insertDUBT1()
93 assert(curr >= btLow); in ZSTD_insertDUBT1()
99 assert(matchIndex < curr); in ZSTD_insertDUBT1()
106 || (curr < dictLimit) /* both in extDict */) { in ZSTD_insertDUBT1()
111 || (curr < dictLimit) ); in ZSTD_insertDUBT1()
[all …]
/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair.c660 i_nvp_t *curr = NVPAIR2I_NVP(nvp); in nvp_buf_link() local
664 priv->nvp_list = priv->nvp_last = curr; in nvp_buf_link()
666 curr->nvi_prev = priv->nvp_last; in nvp_buf_link()
667 priv->nvp_last->nvi_next = curr; in nvp_buf_link()
668 priv->nvp_last = curr; in nvp_buf_link()
679 i_nvp_t *curr = NVPAIR2I_NVP(nvp); in nvp_buf_unlink() local
684 if (priv->nvp_curr == curr) in nvp_buf_unlink()
685 priv->nvp_curr = curr->nvi_next; in nvp_buf_unlink()
687 if (curr == priv->nvp_list) in nvp_buf_unlink()
688 priv->nvp_list = curr->nvi_next; in nvp_buf_unlink()
[all …]
/freebsd/crypto/heimdal/appl/ftp/common/
H A Dsockbuf.c52 int curr=0; in set_buffer_size() local
55 optlen = sizeof(curr); in set_buffer_size()
56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) { in set_buffer_size()
57 if(curr >= size) { in set_buffer_size()

123456