| /netbsd-src/external/mit/libuv/dist/src/unix/ |
| H A D | bsd-ifaddrs.c | 38 static int uv__ifaddr_exclude(struct ifaddrs *ent, int exclude_type) { in uv__ifaddr_exclude() argument 39 if (!((ent->ifa_flags & IFF_UP) && (ent->ifa_flags & IFF_RUNNING))) in uv__ifaddr_exclude() 41 if (ent->ifa_addr == NULL) in uv__ifaddr_exclude() 50 return (ent->ifa_addr->sa_family != AF_LINK); in uv__ifaddr_exclude() 58 if (ent->ifa_addr->sa_family == AF_LINK) in uv__ifaddr_exclude() 61 if (ent->ifa_addr->sa_family != PF_INET && in uv__ifaddr_exclude() 62 ent->ifa_addr->sa_family != PF_INET6) in uv__ifaddr_exclude() 70 struct ifaddrs* ent; in uv_interface_addresses() local 83 for (ent = addrs; ent != NULL; ent = ent->ifa_next) { in uv_interface_addresses() 84 if (uv__ifaddr_exclude(ent, UV__EXCLUDE_IFADDR)) in uv_interface_addresses() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hdb/ |
| H A D | print.c | 219 entry2string_int (krb5_context context, krb5_storage *sp, hdb_entry *ent) in entry2string_int() argument 226 ret = krb5_unparse_name(context, ent->principal, &p); in entry2string_int() 232 append_string(context, sp, "%d", ent->kvno); in entry2string_int() 234 for(i = 0; i < ent->keys.len; i++){ in entry2string_int() 236 if(ent->keys.val[i].mkvno) in entry2string_int() 238 *ent->keys.val[i].mkvno, in entry2string_int() 239 ent->keys.val[i].key.keytype); in entry2string_int() 242 ent->keys.val[i].key.keytype); in entry2string_int() 244 append_hex(context, sp, 0, 0, &ent->keys.val[i].key.keyvalue); in entry2string_int() 247 if(ent->keys.val[i].salt){ in entry2string_int() [all …]
|
| H A D | hdb-ldap.c | 52 int flags, hdb_entry_ex * ent); 393 LDAP_entry2mods(krb5_context context, HDB * db, hdb_entry_ex * ent, in LDAP_entry2mods() argument 484 krb5_principal_compare(context, ent->entry.principal, orig.entry.principal) in LDAP_entry2mods() 489 ret = krb5_unparse_name(context, ent->entry.principal, &tmp); in LDAP_entry2mods() 503 ret = krb5_unparse_name_short(context, ent->entry.principal, &tmp); in LDAP_entry2mods() 515 if (is_heimdal_entry && (ent->entry.kvno != orig.entry.kvno || is_new_entry)) { in LDAP_entry2mods() 518 ent->entry.kvno); in LDAP_entry2mods() 523 if (is_heimdal_entry && ent->entry.extensions) { in LDAP_entry2mods() 534 for (i = 0; i < ent->entry.extensions->len; i++) { in LDAP_entry2mods() 538 ASN1_MALLOC_ENCODE(HDB_extension, buf, size, &ent->entry.extensions->val[i], &sz, ret); in LDAP_entry2mods() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/tlsmgr/ |
| H A D | tlsmgr.c | 519 TLSMGR_SCACHE *ent; in tlsmgr_loop() local 543 for (ent = cache_table; ent->cache_label; ++ent) { in tlsmgr_loop() 544 if (ent->cache_info && ent->cache_active) in tlsmgr_loop() 545 active |= ent->cache_active = in tlsmgr_loop() 546 tls_scache_sequence(ent->cache_info, DICT_SEQ_FUN_NEXT, in tlsmgr_loop() 612 TLSMGR_SCACHE *ent; in tlsmgr_service() local 647 for (ent = cache_table; ent->cache_label; ++ent) in tlsmgr_service() 648 if (strcmp(ent->cache_label, STR(cache_type)) == 0) in tlsmgr_service() 650 if (ent->cache_label == 0) { in tlsmgr_service() 654 } else if (ent->cache_info == 0) { in tlsmgr_service() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
| H A D | get_s.c | 43 add_tl_data(kadm5_principal_ent_t ent, int16_t type, in add_tl_data() argument 61 tl->tl_data_next = ent->tl_data; in add_tl_data() 62 ent->tl_data = tl; in add_tl_data() 63 ent->n_tl_data++; in add_tl_data() 127 hdb_entry_ex ent; in kadm5_s_get_principal() local 129 memset(&ent, 0, sizeof(ent)); in kadm5_s_get_principal() 151 HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_get_principal() 159 ret = krb5_copy_principal(context->context, ent.entry.principal, in kadm5_s_get_principal() 163 if(mask & KADM5_PRINC_EXPIRE_TIME && ent.entry.valid_end) in kadm5_s_get_principal() 164 out->princ_expire_time = *ent.entry.valid_end; in kadm5_s_get_principal() [all …]
|
| H A D | chpass_s.c | 50 hdb_entry_ex ent; in change() local 56 memset(&ent, 0, sizeof(ent)); in change() 68 HDB_F_DECRYPT|HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in change() 77 ret = hdb_add_current_keys_to_history(context->context, &ent.entry); in change() 84 &ent, password, cond); in change() 89 num_keys = ent.entry.keys.len; in change() 90 keys = ent.entry.keys.val; in change() 92 ent.entry.keys.len = 0; in change() 93 ent.entry.keys.val = NULL; in change() 95 ret = _kadm5_set_keys(context, &ent.entry, n_ks_tuple, ks_tuple, in change() [all …]
|
| H A D | ent_setup.c | 74 hdb_entry_ex *ent, in perform_tl_data() argument 85 ret = hdb_entry_set_password(context, db, &ent->entry, pw); in perform_tl_data() 98 ret = hdb_entry_set_pw_change_time(context, &ent->entry, t); in perform_tl_data() 110 ret = hdb_replace_extension(context, &ent->entry, &ext); in perform_tl_data() 119 default_flags(hdb_entry_ex *ent, int server) in default_flags() argument 121 ent->entry.flags.client = 1; in default_flags() 122 ent->entry.flags.server = !!server; in default_flags() 123 ent->entry.flags.forwardable = 1; in default_flags() 124 ent->entry.flags.proxiable = 1; in default_flags() 125 ent->entry.flags.renewable = 1; in default_flags() [all …]
|
| H A D | set_keys.c | 46 hdb_entry *ent, in _kadm5_set_keys() argument 56 ent->principal, in _kadm5_set_keys() 63 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val); in _kadm5_set_keys() 64 ent->keys.val = keys; in _kadm5_set_keys() 65 ent->keys.len = num_keys; in _kadm5_set_keys() 67 hdb_entry_set_pw_change_time(context->context, ent, 0); in _kadm5_set_keys() 73 ent, password); in _kadm5_set_keys() 104 hdb_entry *ent, in _kadm5_set_keys2() argument 123 ret = hdb_clear_extension(context->context, ent, in _kadm5_set_keys2() 127 free_Keys(&ent->keys); in _kadm5_set_keys2() [all …]
|
| H A D | rename_s.c | 47 hdb_entry_ex ent; in kadm5_s_rename_principal() local 50 memset(&ent, 0, sizeof(ent)); in kadm5_s_rename_principal() 64 source, HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_rename_principal() 67 oldname = ent.entry.principal; in kadm5_s_rename_principal() 68 ret = _kadm5_set_modifier(context, &ent.entry); in kadm5_s_rename_principal() 80 for(i = 0; i < ent.entry.keys.len; i++){ in kadm5_s_rename_principal() 81 if(ent.entry.keys.val[i].salt == NULL){ in kadm5_s_rename_principal() 82 ent.entry.keys.val[i].salt = in kadm5_s_rename_principal() 83 malloc(sizeof(*ent.entry.keys.val[i].salt)); in kadm5_s_rename_principal() 84 if (ent.entry.keys.val[i].salt == NULL) in kadm5_s_rename_principal() [all …]
|
| H A D | create_s.c | 62 hdb_entry_ex *ent, in create_principal() argument 70 memset(ent, 0, sizeof(*ent)); in create_principal() 79 &ent->entry.principal); in create_principal() 93 ent, mask | def_mask, in create_principal() 101 ent->entry.created_by.time = time(NULL); in create_principal() 104 &ent->entry.created_by.principal); in create_principal() 113 hdb_entry_ex ent; in kadm5_s_create_principal_with_key() local 122 ret = create_principal(context, princ, mask, &ent, in kadm5_s_create_principal_with_key() 135 hdb_free_entry(context->context, &ent); in kadm5_s_create_principal_with_key() 144 ret = hdb_seal_keys(context->context, context->db, &ent.entry); in kadm5_s_create_principal_with_key() [all …]
|
| H A D | setkey3_s.c | 50 hdb_entry_ex ent; in kadm5_s_setkey_principal_3() local 53 memset(&ent, 0, sizeof(ent)); in kadm5_s_setkey_principal_3() 67 HDB_F_GET_ANY|HDB_F_ADMIN_DATA, 0, &ent); in kadm5_s_setkey_principal_3() 76 ret = hdb_add_current_keys_to_history(context->context, &ent.entry); in kadm5_s_setkey_principal_3() 78 ret = hdb_clear_extension(context->context, &ent.entry, in kadm5_s_setkey_principal_3() 91 free_Keys(&ent.entry.keys); in kadm5_s_setkey_principal_3() 110 if ((ret = add_Keys(&ent.entry.keys, &k)) != 0) in kadm5_s_setkey_principal_3() 116 ent.entry.kvno++; in kadm5_s_setkey_principal_3() 117 ent.entry.flags.require_pwchange = 0; in kadm5_s_setkey_principal_3() 118 hdb_entry_set_pw_change_time(context->context, &ent.entry, 0); in kadm5_s_setkey_principal_3() [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | order.c | 75 dns_order_ent_t *ent; in dns_order_add() local 83 ent = isc_mem_get(order->mctx, sizeof(*ent)); in dns_order_add() 85 dns_fixedname_init(&ent->name); in dns_order_add() 86 dns_name_copy(name, dns_fixedname_name(&ent->name)); in dns_order_add() 87 ent->rdtype = rdtype; in dns_order_add() 88 ent->rdclass = rdclass; in dns_order_add() 89 ent->mode = mode; in dns_order_add() 90 ISC_LINK_INIT(ent, link); in dns_order_add() 91 ISC_LIST_INITANDAPPEND(order->ents, ent, lin in dns_order_add() 106 dns_order_ent_t *ent; dns_order_find() local 145 dns_order_ent_t *ent; dns_order_detach() local [all...] |
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | order.c | 75 dns_order_ent_t *ent; in dns_order_add() local 83 ent = isc_mem_get(order->mctx, sizeof(*ent)); in dns_order_add() 85 dns_fixedname_init(&ent->name); in dns_order_add() 86 dns_name_copynf(name, dns_fixedname_name(&ent->name)); in dns_order_add() 87 ent->rdtype = rdtype; in dns_order_add() 88 ent->rdclass = rdclass; in dns_order_add() 89 ent->mode = mode; in dns_order_add() 90 ISC_LINK_INIT(ent, link); in dns_order_add() 91 ISC_LIST_INITANDAPPEND(order->ents, ent, link); in dns_order_add() 106 dns_order_ent_t *ent; in dns_order_find() local [all …]
|
| /netbsd-src/games/warp/ |
| H A D | us.c | 47 ch = (ent->energy >= 500?'E':'e'); in do_direction() 48 if (ch != ent->image) { in do_direction() 49 setimage(ent, ch); in do_direction() 53 if (ent->energy >= decr) { in do_direction() 54 ent->energy -= decr; in do_direction() 61 if (tract(ent,dy,dx,tractor)) { in do_direction() 78 (obj=occupant[(ent->posy+evely+YSIZE00)%YSIZE] in do_direction() 79 [(ent->posx+evelx+XSIZE00)%XSIZE] ) && in do_direction() 116 ch = (ent->energy >= 500?'E':'e'); in ctrl_direction() 117 if (ch != ent->image) { in ctrl_direction() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | aarch64-gen.c | 69 opcode_node* ent = malloc (sizeof (opcode_node)); in new_opcode_node() local 71 if (!ent) in new_opcode_node() 74 ent->opcode = 0; in new_opcode_node() 75 ent->mask = 0; in new_opcode_node() 76 ent->index = -1; in new_opcode_node() 77 ent->next = NULL; in new_opcode_node() 79 return ent; in new_opcode_node() 129 const struct aarch64_opcode *ent = table; in read_table() local 133 if (!ent->name) in read_table() 146 assert (!pseudo_opcode_p (ent) || alias_opcode_p (ent)); in read_table() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | aarch64-gen.c | 69 opcode_node* ent = malloc (sizeof (opcode_node)); in new_opcode_node() local 71 if (!ent) in new_opcode_node() 74 ent->opcode = 0; in new_opcode_node() 75 ent->mask = 0; in new_opcode_node() 76 ent->index = -1; in new_opcode_node() 77 ent->next = NULL; in new_opcode_node() 79 return ent; in new_opcode_node() 129 const struct aarch64_opcode *ent = table; in read_table() local 133 if (!ent->name) in read_table() 146 assert (!pseudo_opcode_p (ent) || alias_opcode_p (ent)); in read_table() [all …]
|
| /netbsd-src/sys/dev/wsfont/ |
| H A D | wsfont.c | 427 struct font *ent; in wsfont_enum() local 429 TAILQ_FOREACH(ent, &list, chain) { in wsfont_enum() 430 f = ent->font; in wsfont_enum() 564 struct font *ent; in wsfont_init() local 573 ent = builtin_fonts; in wsfont_init() 575 for (i = 0; builtin_fonts[i].font != NULL; i++, ent++) { in wsfont_init() 577 ent->cookie = wsfont_make_cookie(ident, in wsfont_init() 578 ent->font->bitorder, ent->font->byteorder); in wsfont_init() 579 TAILQ_INSERT_TAIL(&list, ent, chain); in wsfont_init() 586 struct font *ent; in wsfont_find0() local [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| H A D | by_dir.c | 151 static void by_dir_entry_free(BY_DIR_ENTRY *ent) in by_dir_entry_free() argument 153 OPENSSL_free(ent->dir); in by_dir_entry_free() 154 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free() 155 OPENSSL_free(ent); in by_dir_entry_free() 183 BY_DIR_ENTRY *ent; in add_cert_dir() local 191 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j); in add_cert_dir() 192 if (strlen(ent->dir) == len && strncmp(ent->dir, ss, len) == 0) in add_cert_dir() 204 ent = OPENSSL_malloc(sizeof(*ent)); in add_cert_dir() 205 if (ent == NULL) { in add_cert_dir() 209 ent->dir_type = type; in add_cert_dir() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509/ |
| H A D | by_dir.c | 136 static void by_dir_entry_free(BY_DIR_ENTRY *ent) in by_dir_entry_free() argument 138 OPENSSL_free(ent->dir); in by_dir_entry_free() 139 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free() 140 OPENSSL_free(ent); in by_dir_entry_free() 168 BY_DIR_ENTRY *ent; in add_cert_dir() local 176 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j); in add_cert_dir() 177 if (strlen(ent->dir) == len && strncmp(ent->dir, ss, len) == 0) in add_cert_dir() 189 ent = OPENSSL_malloc(sizeof(*ent)); in add_cert_dir() 190 if (ent == NULL) { in add_cert_dir() 194 ent->dir_type = type; in add_cert_dir() [all …]
|
| /netbsd-src/external/gpl2/mkhybrid/dist/ |
| H A D | desktop.c | 49 hfsdirent ent; /* Mac finderinfo */ in make_desktop() local 56 ent.rsize = 0; /* resource size == 0 */ in make_desktop() 57 strcpy(ent.creator, DBFC); /* creator */ in make_desktop() 58 strcpy(ent.type, DBT); /* type */ in make_desktop() 59 ent.crdate = ent.mddate = time(0); /* date is now */ in make_desktop() 60 ent.fdflags = HFS_FNDR_ISINVISIBLE; /* invisible files */ in make_desktop() 70 if(hfs_create(vol, DB, ent.type, ent.creator) == 0) in make_desktop() 96 ent.dsize = clps; /* size = clump size */ in make_desktop() 106 if (hfs_fsetattr(hfp, &ent) < 0) in make_desktop() 120 if(hfs_setattr(vol, DB, &ent) < 0) in make_desktop() [all …]
|
| H A D | volume.c | 281 hfsdirent *ent; /* HFS file entities */ in FDECL2() local 314 ent = s_entry->hfs_ent; in FDECL2() 317 i = HFS_MAX_FLEN - strlen(ent->name); in FDECL2() 327 if ((hfs_create(vol, ent->name, ent->type, ent->creator)) < 0) in FDECL2() 343 sprintf(ent->name + HFS_MAX_FLEN - digits - 1, in FDECL2() 354 strcat(ent->name, LCHAR); in FDECL2() 366 fprintf(stderr, "Using HFS name: %s for %s\n", ent->name, in FDECL2() 371 if ((hfp = hfs_open(vol, ent->name)) == 0) in FDECL2() 379 if (ent->dsize) in FDECL2() 380 write_fork(hfp, ent->dsize); in FDECL2() [all …]
|
| /netbsd-src/sys/net/npf/ |
| H A D | npf_tableset.c | 318 npf_tblent_t *ent; in table_ipset_flush() local 320 while ((ent = LIST_FIRST(&t->t_list)) != NULL) { in table_ipset_flush() 321 thmap_del(t->t_map, &ent->te_addr, ent->te_alen); in table_ipset_flush() 322 LIST_REMOVE(ent, te_listent); in table_ipset_flush() 323 pool_cache_put(tblent_cache, ent); in table_ipset_flush() 331 npf_tblent_t *ent; in table_tree_flush() local 333 while ((ent = LIST_FIRST(&t->t_list)) != NULL) { in table_tree_flush() 334 LIST_REMOVE(ent, te_listent); in table_tree_flush() 335 pool_cache_put(tblent_cache, ent); in table_tree_flush() 344 npf_tblent_t *ent; in table_ifaddr_flush() local [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
| H A D | nouveau_nvkm_subdev_bios_i2c.c | 80 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local 81 if (ent) { in dcb_i2c_parse() 83 u32 ent_value = nvbios_rd32(bios, ent); in dcb_i2c_parse() 93 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse() 95 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse() 107 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse() 108 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 111 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 114 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 115 if (nvbios_rd08(bios, ent + 1) & 0x01) in dcb_i2c_parse() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/kadmin/ |
| H A D | init.c | 51 kadm5_principal_ent_rec ent; in create_random_entry() local 69 memset(&ent, 0, sizeof(ent)); in create_random_entry() 70 ent.principal = princ; in create_random_entry() 73 ent.max_life = max_life; in create_random_entry() 77 ent.max_renewable_life = max_rlife; in create_random_entry() 80 ent.attributes |= attributes | KRB5_KDB_DISALLOW_ALL_TIX; in create_random_entry() 84 ret = kadm5_create_principal(kadm_handle, &ent, mask, password); in create_random_entry() 103 ret = kadm5_get_principal(kadm_handle, princ, &ent, in create_random_entry() 110 ent.attributes &= (~KRB5_KDB_DISALLOW_ALL_TIX); in create_random_entry() 111 ent.kvno = 1; in create_random_entry() [all …]
|
| /netbsd-src/sbin/gpt/ |
| H A D | show.c | 121 struct gpt_ent *ent; in print_part_type() 124 uint8_t utfbuf[__arraycount(ent->ent_name) * 3 + 1]; in print_part_type() 180 ent = map_data; in show() 182 utf16_to_utf8(ent->ent_name, in show() 183 __arraycount(ent->ent_name), utfbuf, in show() 188 ent->ent_guid); 191 "%d", ent->ent_type); in gpt_show_sec_num() 194 ent->ent_type); in gpt_show_sec_num() 262 struct gpt_ent *ent; in show_all() 264 uint8_t utfbuf[__arraycount(ent in show_all() 80 struct gpt_ent *ent; print_part_type() local 211 struct gpt_ent *ent; show_one() local 256 struct gpt_ent *ent; show_all() local [all...] |