/freebsd/sys/kern/ |
H A D | subr_filter.c | 97 tf->entries[i].value = set_val; in setup_time_filter() 98 tf->entries[i].time_up = 0; in setup_time_filter() 128 tf->entries[i].value = set_val; in setup_time_filter_small() 129 tf->entries[i].time_up = 0; in setup_time_filter_small() 142 tim = now - tf->entries[i].time_up; in check_update_times() 147 if (tf->entries[i].time_up < tf->entries[j].time_up) { in check_update_times() 148 tf->entries[i].value = tf->entries[j].value; in check_update_times() 149 tf->entries[i].time_up = tf->entries[j].time_up; in check_update_times() 156 tf->entries[i].value = value; in check_update_times() 157 tf->entries[i].time_up = now; in check_update_times() [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_mtree_classic.c | 37 } entries[] = { 126 /* Write entries */ in test_write_format_mtree_sub() 127 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 129 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub() 130 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub() 131 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub() 132 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub() 133 archive_entry_set_mode(ae, entries[i].mode); in test_write_format_mtree_sub() 134 assertEqualInt(entries[i].mode, archive_entry_mode(ae)); in test_write_format_mtree_sub() 135 archive_entry_set_uid(ae, entries[ in test_write_format_mtree_sub() 38 } entries[] = { global() variable [all...] |
H A D | test_write_format_mtree_classic_indent.c | 37 } entries[] = { 128 /* Write entries */ in test_write_format_mtree_sub() 129 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 131 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub() 132 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub() 133 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub() 134 assertEqualInt(entries[i].mtime, archive_entry_mtime(ae)); in test_write_format_mtree_sub() 135 archive_entry_set_mode(ae, entries[i].mode); in test_write_format_mtree_sub() 136 assertEqualInt(entries[i].mode, archive_entry_mode(ae)); in test_write_format_mtree_sub() 137 archive_entry_set_uid(ae, entries[ in test_write_format_mtree_sub() 38 } entries[] = { global() variable [all...] |
H A D | test_write_format_mtree.c | 36 } entries[] = { 88 /* Write entries */ in test_write_format_mtree_sub() 89 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 91 archive_entry_set_mtime(ae, entries[i].mtime, 0); in test_write_format_mtree_sub() 92 assert(entries[i].mtime == archive_entry_mtime(ae)); in test_write_format_mtree_sub() 93 archive_entry_set_mode(ae, entries[i].mode); in test_write_format_mtree_sub() 94 assert(entries[i].mode == archive_entry_mode(ae)); in test_write_format_mtree_sub() 95 archive_entry_set_uid(ae, entries[i].uid); in test_write_format_mtree_sub() 96 assert(entries[i].uid == archive_entry_uid(ae)); in test_write_format_mtree_sub() 97 archive_entry_set_gid(ae, entries[ in test_write_format_mtree_sub() 37 } entries[] = { global() variable [all...] |
H A D | test_write_format_mtree_fflags.c | 42 } entries[] = { variable 70 /* Write entries */ in test_write_format_mtree_sub() 71 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 73 archive_entry_set_fflags(ae, entries[i].fflags, 0); in test_write_format_mtree_sub() 74 archive_entry_copy_pathname(ae, entries[i].path); in test_write_format_mtree_sub() 109 /* Read entries */ in test_write_format_mtree_sub() 110 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 115 assertEqualInt((int)entries[i].fflags, (int)fset); in test_write_format_mtree_sub() 117 assertEqualString(entries[i].path, archive_entry_pathname(ae)); in test_write_format_mtree_sub()
|
/freebsd/lib/libc/tests/sys/ |
H A D | queue_test.c | 44 SLIST_ENTRY(entry) entries; in ATF_TC_BODY() 57 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY() 68 SLIST_INSERT_HEAD(&head, n1, entries); in ATF_TC_BODY() 74 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY() 88 SLIST_INSERT_AFTER(n1, n2, entries); in ATF_TC_BODY() 94 SLIST_INSERT_AFTER(n2, n3, entries); in ATF_TC_BODY() 97 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY() 110 SLIST_REMOVE_HEAD(&head, entries); in ATF_TC_BODY() 117 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY() 127 SLIST_REMOVE_AFTER(n2, entries); in ATF_TC_BODY() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x_name.c | 96 if ((ret->entries = sk_X509_NAME_ENTRY_new_null()) == NULL) in IMPLEMENT_EXTERN_ASN1() 107 sk_X509_NAME_ENTRY_free(ret->entries); in IMPLEMENT_EXTERN_ASN1() 122 sk_X509_NAME_ENTRY_pop_free(a->entries, X509_NAME_ENTRY_free); in x509_name_ex_free() 157 STACK_OF(X509_NAME_ENTRY) *entries; in x509_name_ex_d2i() 183 entries = sk_STACK_OF_X509_NAME_ENTRY_value(intname.s, i); in x509_name_ex_d2i() 184 for (j = 0; j < sk_X509_NAME_ENTRY_num(entries); j++) { in x509_name_ex_d2i() 185 entry = sk_X509_NAME_ENTRY_value(entries, j); in x509_name_ex_d2i() 187 if (!sk_X509_NAME_ENTRY_push(nm.x->entries, entry)) in x509_name_ex_d2i() 189 (void)sk_X509_NAME_ENTRY_set(entries, j, NULL); in x509_name_ex_d2i() 243 STACK_OF(X509_NAME_ENTRY) *entries = NULL; in x509_name_encode() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_queue.c | 89 KASSERT(new_size >= queue->entries, ("camq_resize: " in camq_resize() 91 new_size, queue->entries)); in camq_resize() 105 (queue->entries + 1) * sizeof(cam_pinfo *)); in camq_resize() 122 KASSERT(queue->entries < queue->array_size, in camq_insert() 124 queue->entries, queue->array_size)); in camq_insert() 125 queue->entries++; in camq_insert() 126 queue->queue_array[queue->entries] = new_entry; in camq_insert() 127 new_entry->index = queue->entries; in camq_insert() 128 if (queue->entries != 0) in camq_insert() 129 heap_up(queue->queue_array, queue->entries); in camq_insert() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_port.c | 68 table->entries[i] = 0; in mlx4_init_mac_table() 82 table->entries[i] = 0; in mlx4_init_vlan_table() 105 if (index < 0 || index >= table->max || !table->entries[index]) { in validate_index() 120 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) in find_index() 128 __be64 *entries) in mlx4_set_port_mac_table() argument 138 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table() 160 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { in mlx4_find_cached_mac() 216 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))) in __mlx4_register_mac() 218 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i])))) in __mlx4_register_mac() 243 ((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[index_at_dup_port])))) in __mlx4_register_mac() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | keytab_memory.c | 39 krb5_keytab_entry *entries; member 88 d->entries = NULL; in mkt_resolve() 123 krb5_kt_free_entry(context, &d->entries[i]); in mkt_close() 124 free(d->entries); in mkt_close() 159 return krb5_kt_copy_entry_contents(context, &d->entries[c->fd++], entry); in mkt_next_entry() 177 tmp = realloc(d->entries, (d->num_entries + 1) * sizeof(*d->entries)); in mkt_add_entry() 183 d->entries = tmp; in mkt_add_entry() 185 &d->entries[d->num_entries++]); in mkt_add_entry() 203 for(end = d->entries + d->num_entries, e = end - 1; e >= d->entries; e--) { in mkt_remove_entry() 218 e = realloc(d->entries, d->num_entries * sizeof(*d->entries)); in mkt_remove_entry() [all …]
|
/freebsd/sys/dev/vmware/vmci/ |
H A D | vmci_hashtable.c | 53 table->entries = vmci_alloc_kernel_mem(sizeof(*table->entries) * size, in vmci_hashtable_create() 55 if (table->entries == NULL) { in vmci_hashtable_create() 59 memset(table->entries, 0, sizeof(*table->entries) * size); in vmci_hashtable_create() 63 vmci_free_kernel_mem(table->entries, sizeof(*table->entries) * size); in vmci_hashtable_create() 97 vmci_free_kernel_mem(table->entries, sizeof(*table->entries) * in vmci_hashtable_destroy() 99 table->entries = NULL; in vmci_hashtable_destroy() 170 entry->next = table->entries[idx]; in vmci_hashtable_add_entry() 171 table->entries[idx] = entry; in vmci_hashtable_add_entry() 253 cur = table->entries[idx]; in vmci_hashtable_get_entry_locked() 475 entry = table->entries[idx]; in vmci_hashtable_entry_exists_locked() [all …]
|
/freebsd/contrib/ncurses/progs/ |
H A D | infocmp.c | 61 static ENTRY *entries; /* terminfo entries */ variable 114 free(entries); in ExitProgram() 223 if (idx < NUM_BOOLEANS(&(entries[0].tterm))) { in use_predicate() 224 for (ep = &entries[1]; ep < entries + termcount; ep++) { in use_predicate() 230 if (is_set != entries[0].tterm.Booleans[idx]) in use_predicate() 245 if (idx < NUM_NUMBERS(&(entries[0].tterm))) { in use_predicate() 246 for (ep = &entries[1]; ep < entries + termcount; ep++) in use_predicate() 253 if (value != entries[0].tterm.Numbers[idx]) in use_predicate() 261 char *termstr = entries[0].tterm.Strings[idx]; in use_predicate() 269 if (idx < NUM_STRINGS(&(entries[0].tterm))) { in use_predicate() [all …]
|
/freebsd/usr.bin/column/ |
H A D | column.c | 58 static int entries; /* number of records */ variable 124 if (!entries) in main() 150 if (!--entries) in c_columnate() 174 numrows = entries / numcols; in r_columnate() 175 if (entries % numcols) in r_columnate() 183 if ((base += numrows) >= entries) in r_columnate() 201 for (cnt = entries, lp = list; cnt--; ++lp) in print() 222 if ((t = tbl = calloc(entries, sizeof(TBL))) == NULL) in maketbl() 228 for (cnt = 0, lp = list; cnt < entries; ++cnt, ++lp, ++t) { in maketbl() 253 for (cnt = 0, t = tbl; cnt < entries; ++cnt, ++t) { in maketbl() [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | node.c | 224 r.entries = calloc(NG_HCI_MAX_NEIGHBOR_NUM, in hci_read_neighbor_cache() 226 if (r.entries == NULL) { in hci_read_neighbor_cache() 246 uint8_t addrtype = r.entries[n].addrtype; in hci_read_neighbor_cache() 256 hci_bdaddr2str(&r.entries[n].bdaddr), in hci_read_neighbor_cache() 257 r.entries[n].features[0], r.entries[n].features[1], in hci_read_neighbor_cache() 258 r.entries[n].features[2], r.entries[n].features[3], in hci_read_neighbor_cache() 259 r.entries[n].features[4], r.entries[ in hci_read_neighbor_cache() [all...] |
/freebsd/contrib/mandoc/ |
H A D | dba.c | 190 struct dba_array *entries; in dba_page_add() local 193 entries = dba_array_get(page, ie); in dba_page_add() 195 if (entries == NULL) in dba_page_add() 198 dba_array_free(entries); in dba_page_add() 205 dba_array_FOREACH(entries, entry) { in dba_page_add() 211 dba_array_add(entries, (void *)str); in dba_page_add() 220 struct dba_array *entries; in dba_page_alias() local 227 entries = dba_array_get(page, DBP_NAME); in dba_page_alias() 228 dba_array_FOREACH(entries, entry) { in dba_page_alias() 234 dba_array_add(entries, prepend(name, maskbyte)); in dba_page_alias() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/ |
H A D | dedup_prune.ksh | 61 typeset -i entries=$(zpool status -D $TESTPOOL | \ 64 echo ${entries} 76 entries=$(ddt_entries) 77 log_note "ddt entries before: $entries" 82 [[ "$entries" -eq "$new_entries" ]] || \ 83 log_fail "DDT entries changed from $entries to $new_entries" 93 log_fail "DDT entries did not shrink enough: $entries -> $new_entries"
|
/freebsd/usr.sbin/nscd/ |
H A D | hashtable.h | 62 struct entry *entries; \ 76 (table)->entries = calloc(_entries_size, \ 77 sizeof(*(table)->entries)); \ 80 (table)->entries[var].field.capacity = \ 82 (table)->entries[var].field.size = 0; \ 83 (table)->entries[var].field.values = malloc( \ 86 assert((table)->entries[var].field.values != NULL);\ 97 free((table)->entries[var].field.values); \ 102 (&((table)->entries[hash])) 108 for ((var) = &((table)->entries[0]); \ [all …]
|
/freebsd/crypto/openssh/ |
H A D | hostfile.c | 220 ret->entries = NULL; in init_hostkeys() 248 if ((tmp = recallocarray(hostkeys->entries, hostkeys->num_entries, in record_hostkey() 249 hostkeys->num_entries + 1, sizeof(*hostkeys->entries))) == NULL) in record_hostkey() 251 hostkeys->entries = tmp; in record_hostkey() 252 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey() 253 hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path); in record_hostkey() 254 hostkeys->entries[hostkeys->num_entries].line = l->linenum; in record_hostkey() 255 hostkeys->entries[hostkeys->num_entries].key = l->key; in record_hostkey() 257 hostkeys->entries[hostkeys->num_entries].marker = l->marker; in record_hostkey() 258 hostkeys->entries[hostkeys->num_entries].note = l->note; in record_hostkey() [all …]
|
/freebsd/usr.bin/ktrdump/ |
H A D | ktrdump.c | 100 int entries; in main() local 213 entries = sb.st_size / sizeof(*buf); in main() 219 if (kvm_read(kd, nl[1].n_value, &entries, sizeof(entries)) in main() 222 if ((buf = malloc(sizeof(*buf) * entries)) == NULL) in main() 227 kvm_read(kd, bufptr, buf, sizeof(*buf) * entries) == -1 || in main() 272 i = index2 + 1 % entries; in main() 275 if (i == entries) in main() 281 i = entries - 1; in main() 359 if (++i == entries) in main() 367 i = entries - 1; in main() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_rhs.c | 126 const void **entries; member 129 } entries; member 139 return (map->entries.no_entries.entries[offset]); in ck_rhs_entry() 141 return (map->entries.descs[offset].entry); in ck_rhs_entry() 149 return (&map->entries.no_entries.entries[offset]); in ck_rhs_entry_addr() 151 return (&map->entries.descs[offset].entry); in ck_rhs_entry_addr() 159 return ((struct ck_rhs_entry_desc *)(void *)&map->entries.no_entries.descs[offset]); in ck_rhs_desc() 161 return (&map->entries.descs[offset]); in ck_rhs_desc() 169 map->entries.no_entries.descs[offset].wanted++; in ck_rhs_wanted_inc() 171 map->entries.descs[offset].wanted++; in ck_rhs_wanted_inc() [all …]
|
/freebsd/usr.sbin/mptutil/ |
H A D | mpt_evt.c | 95 MPI_LOG_0_ENTRY **entries; in show_events() local 133 entries = malloc(sizeof(MPI_LOG_0_ENTRY *) * log->NumLogEntries); in show_events() 134 if (entries == NULL) { in show_events() 144 entries[num_events] = &log->LogEntry[i]; in show_events() 148 qsort(entries, num_events, sizeof(MPI_LOG_0_ENTRY *), event_compare); in show_events() 155 mpt_print_event(entries[i], verbose); in show_events() 158 free(entries); in show_events()
|
/freebsd/usr.bin/gencat/ |
H A D | gencat.c | 90 LIST_ENTRY(_msgT) entries; 96 LIST_ENTRY(_setT) entries; 498 set = set->entries.le_next) { 502 msg = msg->entries.le_next) { 549 set = set->entries.le_next) { 553 msg = msg->entries.le_next) { 595 for (; p != NULL && p->setId < setId; q = p, p = p->entries.le_next); 607 LIST_INSERT_HEAD(&sethead, p, entries); 609 LIST_INSERT_AFTER(q, p, entries); 635 for (; p != NULL && p->msgId < msgId; q = p, p = p->entries.le_next); [all …]
|
/freebsd/contrib/expat/tests/ |
H A D | structdata.c | 76 storage->entries = NULL; in StructData_Init() 91 storage->entries, storage->max_count * sizeof(StructDataEntry)); in StructData_AddItem() 93 storage->entries = new_entries; in StructData_AddItem() 96 entry = &storage->entries[storage->count]; in StructData_AddItem() 122 const StructDataEntry *got = &storage->entries[i]; in StructData_CheckItems() 153 free((void *)storage->entries[i].str); in StructData_Dispose() 154 free(storage->entries); in StructData_Dispose() 157 storage->entries = NULL; in StructData_Dispose()
|
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBEnvironment.cpp | 94 SBStringList entries; in GetEntries() local 96 entries.AppendString(Environment::compose(KV).c_str()); in GetEntries() 98 return entries; in GetEntries() 108 void SBEnvironment::SetEntries(const SBStringList &entries, bool append) { in SetEntries() argument 109 LLDB_INSTRUMENT_VA(this, entries, append); in SetEntries() 113 for (size_t i = 0; i < entries.GetSize(); i++) { in SetEntries() 114 PutEntry(entries.GetStringAtIndex(i)); in SetEntries()
|
/freebsd/sys/dev/ice/ |
H A D | ice_fwlog.c | 49 * @entries: entries to validate 50 * @num_entries: number of entries to validate 53 valid_module_entries(struct ice_hw *hw, struct ice_fwlog_module_entry *entries, in valid_module_entries() 58 if (!entries) { in valid_module_entries() 69 struct ice_fwlog_module_entry *entry = &entries[i]; in valid_module_entries() 138 * @entries: entries to configure 139 * @num_entries: number of @entries 144 ice_aq_fwlog_set(struct ice_hw *hw, struct ice_fwlog_module_entry *entries, in ice_aq_fwlog_set() 52 valid_module_entries(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) valid_module_entries() argument 143 ice_aq_fwlog_set(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries,u16 options,u16 log_resolution) ice_aq_fwlog_set() argument 238 update_cached_entries(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) update_cached_entries() argument 273 ice_fwlog_update_modules(struct ice_hw * hw,struct ice_fwlog_module_entry * entries,u16 num_entries) ice_fwlog_update_modules() argument [all...] |