/freebsd/sys/kern/ |
H A D | subr_filter.c | 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() 183 tf->entries[i].value = tf->entries[j].value; in check_update_times_small() 184 tf->entries[i].time_up = tf->entries[j].time_up; in check_update_times_small() 220 tf->entries[i].value = tf->entries[0].value; in filter_reduce_by() 240 tf->entries[i].value = tf->entries[0].value; in filter_reduce_by_small() 257 tf->entries[i].value = tf->entries[0].value; in filter_increase_by() 274 tf->entries[i].value = tf->entries[0].value; in filter_increase_by_small() 332 tf->entries[i].value = tf->entries[(i+1)].value; in tick_filter_clock() 333 tf->entries[i].time_up = tf->entries[(i+1)].time_up; in tick_filter_clock() [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_mtree_classic.c | 37 } entries[] = { variable 127 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 133 archive_entry_set_mode(ae, entries[i].mode); in test_write_format_mtree_sub() 135 archive_entry_set_uid(ae, entries[i].uid); in test_write_format_mtree_sub() 137 archive_entry_set_gid(ae, entries[i].gid); in test_write_format_mtree_sub() 140 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 143 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 166 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 175 assertEqualString(entries[i].path + 2, in test_write_format_mtree_sub() 178 assertEqualString(entries[i].path, in test_write_format_mtree_sub() [all …]
|
H A D | test_write_format_mtree_classic_indent.c | 37 } entries[] = { variable 129 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 135 archive_entry_set_mode(ae, entries[i].mode); in test_write_format_mtree_sub() 137 archive_entry_set_uid(ae, entries[i].uid); in test_write_format_mtree_sub() 139 archive_entry_set_gid(ae, entries[i].gid); in test_write_format_mtree_sub() 142 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 145 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 168 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 177 assertEqualString(entries[i].path + 2, in test_write_format_mtree_sub() 180 assertEqualString(entries[i].path, in test_write_format_mtree_sub() [all …]
|
H A D | test_write_format_mtree.c | 36 } entries[] = { variable 89 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() 93 archive_entry_set_mode(ae, entries[i].mode); 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[i].gid); in test_write_format_mtree_sub() 98 assert(entries[i].gid == archive_entry_gid(ae)); in test_write_format_mtree_sub() 100 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 103 if ((entries[i].mode & AE_IFMT) != S_IFDIR) in test_write_format_mtree_sub() 142 for (i = 0; entries[i].path != NULL; i++) { in test_write_format_mtree_sub() [all …]
|
H A D | test_write_format_mtree_fflags.c | 42 } entries[] = { variable 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() 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() 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() 131 SLIST_FOREACH(np, &head, entries) { in ATF_TC_BODY() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x_name.c | 107 sk_X509_NAME_ENTRY_free(ret->entries); in IMPLEMENT_EXTERN_ASN1() 157 STACK_OF(X509_NAME_ENTRY) *entries; in x509_name_ex_d2i() 243 STACK_OF(X509_NAME_ENTRY) *entries = NULL; in x509_name_encode() 253 entries = sk_X509_NAME_ENTRY_new_null(); in x509_name_encode() 254 if (!entries) in x509_name_encode() 257 sk_X509_NAME_ENTRY_free(entries); in x509_name_encode() 308 STACK_OF(X509_NAME_ENTRY) *entries = NULL; in x509_name_canon() 315 if (sk_X509_NAME_ENTRY_num(a->entries) == 0) { in x509_name_canon() 327 entries = sk_X509_NAME_ENTRY_new_null(); in x509_name_canon() 328 if (entries == NULL) in x509_name_canon() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_queue.c | 91 new_size, queue->entries)); 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() 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() 143 if (index <= 0 || index > queue->entries) in camq_remove() 146 queue->entries); in camq_remove() 149 if (queue->entries != index) { in camq_remove() [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/mlx4/mlx4_core/ |
H A D | mlx4_port.c | 854 if ((t1->entries[i] != t2->entries[i]) && in mlx4_bond_mac_table() 855 t1->entries[i] && t2->entries[i]) { in mlx4_bond_mac_table() 863 if (t1->entries[i] && !t2->entries[i]) { in mlx4_bond_mac_table() 864 t2->entries[i] = t1->entries[i]; in mlx4_bond_mac_table() 868 t1->entries[i] = t2->entries[i]; in mlx4_bond_mac_table() 909 if (t1->entries[i] != t2->entries[i]) { in mlx4_unbond_mac_table() 962 t1->entries[i] && t2->entries[i]) { in mlx4_bond_vlan_table() 970 if (t1->entries[i] && !t2->entries[i]) { in mlx4_bond_vlan_table() 971 t2->entries[i] = t1->entries[i]; in mlx4_bond_vlan_table() 975 t1->entries[i] = t2->entries[i]; in mlx4_bond_vlan_table() [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/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() 293 if (entries == maxentry) { in input() 300 if (list[entries] == NULL) in input() 302 wcscpy(list[entries], buf); in input() [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | node.c | 226 if (r.entries == NULL) { 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[n].features[5], in hci_read_neighbor_cache() 260 r.entries[n].features[6], r.entries[n].features[7], in hci_read_neighbor_cache() 261 r.entries[n].clock_offset, r.entries[n].page_scan_mode, in hci_read_neighbor_cache() 262 r.entries[n].page_scan_rep_mode); in hci_read_neighbor_cache() 263 print_adv_data(r.entries[n].extinq_size, in hci_read_neighbor_cache() 264 r.entries[n].extinq_data); in hci_read_neighbor_cache() [all …]
|
/freebsd/contrib/ncurses/progs/ |
H A D | infocmp.c | 114 free(entries); in ExitProgram() 210 for (ep = &entries[1]; ep < entries + termcount; ep++) in use_predicate() 230 for (ep = &entries[1]; ep < entries + termcount; ep++) in use_predicate() 253 for (ep = &entries[1]; ep < entries + termcount; ep++) in use_predicate() 448 ENTRY *e1 = &entries[0]; in compare_predicate() 449 ENTRY *e2 = &entries[1]; in compare_predicate() 620 e2 = &entries[extra++]; in compare_predicate() 1158 entries[0] = *qp; in file_comparison() 1159 entries[1] = *rp; in file_comparison() 1759 || entries == 0) { in main() [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() 220 struct dba_array *entries; in dba_page_alias() local 228 dba_array_FOREACH(entries, entry) { in dba_page_alias() 444 entries = mandoc_reallocarray(NULL, ne, sizeof(*entries)); in dba_macro_write() 458 entries[ne++] = entry; in dba_macro_write() 460 qsort(entries, ne, sizeof(*entries), compare_entries); in dba_macro_write() [all …]
|
/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/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/crypto/openssh/ |
H A D | hostfile.c | 220 ret->entries = NULL; in init_hostkeys() 251 hostkeys->entries = tmp; in record_hostkey() 306 free(hostkeys->entries[i].host); in free_hostkeys() 307 free(hostkeys->entries[i].file); in free_hostkeys() 309 explicit_bzero(hostkeys->entries + i, sizeof(*hostkeys->entries)); in free_hostkeys() 311 free(hostkeys->entries); in free_hostkeys() 328 hostkeys->entries[i].key)) in check_key_not_revoked() 373 *found = hostkeys->entries + i; in check_hostkeys_by_key_or_type() 374 k = hostkeys->entries[i].key; in check_hostkeys_by_key_or_type() 379 hostkeys->entries[i].key)) { in check_hostkeys_by_key_or_type() [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() 149 return (&map->entries.no_entries.entries[offset]); in ck_rhs_entry_addr() 161 return (&map->entries.descs[offset]); in ck_rhs_desc() 171 map->entries.descs[offset].wanted++; in ck_rhs_wanted_inc() 376 map->entries.no_entries.entries = (void *)(((uintptr_t)&map[1] + in ck_rhs_map_create() 378 …map->entries.no_entries.descs = (void *)(((uintptr_t)map->entries.no_entries.entries + (sizeof(voi… in ck_rhs_map_create() 379 memset(map->entries.no_entries.entries, 0, in ck_rhs_map_create() 463 desc = &m->entries.descs[offset]; in ck_rhs_map_bound_set() [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/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/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) { 609 LIST_INSERT_AFTER(q, p, entries); 646 LIST_INSERT_AFTER(q, p, entries); 668 LIST_REMOVE(msg, entries); 671 LIST_REMOVE(set, entries); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | DynamicTags.def | 46 DYNAMIC_TAG(PLTRELSZ, 2) // Size of relocation entries in PLT. 61 DYNAMIC_TAG(REL, 17) // Address of relocation table (Rel entries). 86 DYNAMIC_TAG(RELR, 36) // Address of relocation table (Relr entries). 125 // AArch64 specific dynamic table entries 141 // Hexagon specific dynamic table entries 161 // table entries. 162 MIPS_DYNAMIC_TAG(MIPS_CONFLICTNO, 0x7000000b) // Number of entries 164 MIPS_DYNAMIC_TAG(MIPS_LIBLISTNO, 0x70000010) // Number of entries 166 MIPS_DYNAMIC_TAG(MIPS_SYMTABNO, 0x70000011) // Number of entries 225 // PPC specific dynamic table entries. [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_fwlog.c | 52 valid_module_entries(struct ice_hw *hw, struct ice_fwlog_module_entry *entries, in valid_module_entries() argument 57 if (!entries) { in valid_module_entries() 68 struct ice_fwlog_module_entry *entry = &entries[i]; in valid_module_entries() 143 ice_aq_fwlog_set(struct ice_hw *hw, struct ice_fwlog_module_entry *entries, in ice_aq_fwlog_set() argument 159 CPU_TO_LE16(entries[i].module_id); in ice_aq_fwlog_set() 160 fw_modules[i].log_level = entries[i].log_level; in ice_aq_fwlog_set() 244 struct ice_fwlog_module_entry *updated = &entries[i]; in update_cached_entries() 273 struct ice_fwlog_module_entry *entries, in ice_fwlog_update_modules() argument 282 if (!valid_module_entries(hw, entries, num_entries)) in ice_fwlog_update_modules() 293 status = ice_aq_fwlog_set(hw, entries, num_entries, cfg->options, in ice_fwlog_update_modules() [all …]
|