Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 25 of 188) sorted by relevance

12345678

/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Drm.c113 if (ent->fts_info == FTS_NS || ent->fts_info == FTS_ERR || ent->fts_info == FTS_SLNONE) in rm()
140 nonempty(ent); in rm()
168 if (ent->fts_accpath == ent->fts_name || !(s = strrchr(ent->fts_accpath, '/'))) in rm()
191 nonempty(ent); in rm()
224 if (ent->fts_info == FTS_DP && !beenhere(ent)) in rm()
226 retry(ent); in rm()
247 nonempty(ent); in rm()
264 nonempty(ent); in rm()
280 nonempty(ent); in rm()
311 nonempty(ent); in rm()
[all …]
H A Dcp.c255 if (ent->fts_info == FTS_DC) in visit()
258 fts_set(NiL, ent, FTS_SKIP); in visit()
261 if (ent->fts_level == 0) in visit()
263 base = ent->fts_name; in visit()
264 len = ent->fts_namelen; in visit()
324 switch (ent->fts_info) in visit()
358 else switch (ent->fts_info) in visit()
639 …else if (S_ISBLK(ent->fts_statp->st_mode) || S_ISCHR(ent->fts_statp->st_mode) || S_ISFIFO(ent->fts… in visit()
641 if (mknod(state->path, ent->fts_statp->st_mode, idevice(ent->fts_statp))) in visit()
686 FTSENT* ent; in b_cp() local
[all …]
H A Dchmod.c167 register FTSENT*ent; in b_chmod() local
268 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chmod()
269 switch (ent->fts_info) in b_chmod()
282 error(ERROR_system(0), "%s: cannot change symlink mode", ent->fts_path); in b_chmod()
295 mode = strperm(amode, &last, ent->fts_statp->st_mode); in b_chmod()
296 if (show || (*chmodf)(ent->fts_accpath, mode) >= 0) in b_chmod()
302 error(ERROR_system(0), "%s: cannot change mode", ent->fts_path); in b_chmod()
306 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_path); in b_chmod()
310 error(ERROR_system(0), "%s: cannot read directory", ent->fts_path); in b_chmod()
314 error(ERROR_system(0), "%s: cannot search directory", ent->fts_path); in b_chmod()
[all …]
H A Dchgrp.c232 register FTSENT*ent; in b_chgrp() local
403 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chgrp()
404 switch (ent->fts_info) in b_chgrp()
435 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
436 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
458 uid = ent->fts_statp->st_uid; in b_chgrp()
460 gid = ent->fts_statp->st_gid; in b_chgrp()
471 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
477 ent->fts_statp->st_uid = 0; in b_chgrp()
478 ent->fts_statp->st_gid = 0; in b_chgrp()
[all …]
/illumos-gate/usr/src/common/core/
H A Dcore_shstrtab.c62 kmem_free(ent, sizeof (*ent)); in shstrtab_free()
64 free(ent->sste_name); in shstrtab_free()
65 free(ent); in shstrtab_free()
73 shstrtab_ent_t *ent; in shstrtab_ndx() local
75 for (ent = list_head(&s->sst_names); ent != NULL; in shstrtab_ndx()
76 ent = list_next(&s->sst_names, ent)) { in shstrtab_ndx()
85 if (ent == NULL) { in shstrtab_ndx()
91 shstrtab_free(ent); in shstrtab_ndx()
139 for (shstrtab_ent_t *ent = list_head(&s->sst_names); ent != NULL; in shstrtab_dump() local
140 ent = list_next(&s->sst_names, ent)) { in shstrtab_dump()
[all …]
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_menu.c109 grub_entry_t *ent; in add_entry() local
111 if ((ent = calloc(1, sizeof (*ent))) == NULL) in add_entry()
115 ent->ge_end = end; in add_entry()
146 for (ent = mp->gm_ent_start; ent != NULL && defent != ent->ge_entry_num; in default_entry()
147 ent = ent->ge_next) in default_entry()
189 for (ent = mp->gm_ent_start; (tmp = ent) != NULL; in free_entries()
299 for (ent = mp->gm_ent_start; NULL != ent; ent = ent->ge_next) in grub_menu_process()
524 ent = NULL; in grub_menu_get_entry()
527 ent != NULL && num != ent->ge_entry_num; in grub_menu_get_entry()
528 ent = ent->ge_next) in grub_menu_get_entry()
[all …]
H A Dlibgrub_entry.c107 assert(ent); in grub_entry_construct_barg()
109 barg = &ent->ge_barg; in grub_entry_construct_barg()
110 mp = ent->ge_menu; in grub_entry_construct_barg()
116 barg->gb_entry = ent; in grub_entry_construct_barg()
119 lend = ent->ge_end->gl_next; in grub_entry_construct_barg()
143 if (IS_ENTRY_BARG_VALID(ent)) in grub_entry_get_fstyp()
152 if (IS_ENTRY_BARG_VALID(ent)) in grub_entry_get_kernel()
161 if (IS_ENTRY_BARG_VALID(ent)) in grub_entry_get_module()
170 assert(ent != NULL); in grub_entry_get_error_desc()
177 if (IS_ENTRY_BARG_VALID(ent)) in grub_entry_get_rootfs()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Ddgrpent.c464 free(ent); in _getdgrptabent()
465 ent = NULL; in _getdgrptabent()
486 free(ent); in _getdgrptabent()
503 free(ent); in _getdgrptabent()
526 free(ent); in _getdgrptabent()
537 free(ent); in _getdgrptabent()
561 free(ent); in _getdgrptabent()
562 ent = NULL; in _getdgrptabent()
566 return (ent); in _getdgrptabent()
605 if (ent->name) free(ent->name); in _freedgrptabent()
[all …]
H A Ddevtab.c757 if (ent->alias) free(ent->alias); in _getdevtabent()
758 if (ent->cdevice) free(ent->cdevice); in _getdevtabent()
773 if (ent->alias) free(ent->alias); in _getdevtabent()
774 if (ent->cdevice) free(ent->cdevice); in _getdevtabent()
775 if (ent->bdevice) free(ent->bdevice); in _getdevtabent()
867 if (ent->alias) free(ent->alias); in _freedevtabent()
868 if (ent->cdevice) free(ent->cdevice); in _freedevtabent()
869 if (ent->bdevice) free(ent->bdevice); in _freedevtabent()
870 if (ent->pathname) free(ent->pathname); in _freedevtabent()
874 if (ent->attrstr) free(ent->attrstr); in _freedevtabent()
[all …]
H A Dputdgrp.c471 _freedgrptabent(ent); in mkdgrptabent()
472 ent = NULL; in mkdgrptabent()
479 return (ent); in mkdgrptabent()
628 if (ent = _getdgrprec(dgrp)) { in _adddgrptabrec()
677 if (ent->entryno != p->entryno) in _adddgrptabrec()
696 _freedgrptabent(ent); in _adddgrptabrec()
742 if (ent = _getdgrprec(dgrp)) { in _rmdgrptabrec()
758 _freedgrptabent(ent); in _rmdgrptabrec()
817 if (ent = _getdgrprec(dgrp)) { in _rmdgrpmems()
835 pm = ent->membership; in _rmdgrpmems()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockfilter.c804 for (ent = list_head(&sof_entry_list); ent != NULL; in sof_entry_find()
805 ent = list_next(&sof_entry_list, ent)) { in sof_entry_find()
845 ent->sofe_kstat.sofek_nactive.value.ui64 = ent->sofe_refcnt; in sof_entry_kstat_update()
878 ent->sofe_ksp->ks_data = &ent->sofe_kstat; in sof_entry_kstat_create()
880 ent->sofe_ksp->ks_private = ent; in sof_entry_kstat_create()
945 ASSERT(ent->sofe_mod == mod || ent->sofe_mod == NULL); in sof_entry_load_module()
1018 return (ent); in sof_entry_remove_by_name()
1157 for (ent = list_head(&sof_entry_list); ent != NULL; in sof_sockparams_init()
1158 ent = list_next(&sof_entry_list, ent)) { in sof_sockparams_init()
1174 for (ent = list_head(&sof_module_list); ent != NULL; in sof_module_find()
[all …]
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dhash.c57 Hash_ent * ent; in get_hash() local
68 for (ent = tbl->t_entry[bucket]; ent != NULL; in get_hash()
69 ent = ent->e_next) { in get_hash()
73 (id == ent->e_id))) in get_hash()
74 return (ent); in get_hash()
76 if (ent->e_key == key) in get_hash()
77 return (ent); in get_hash()
90 ent->e_key = key; in get_hash()
91 ent->e_hash = hashval; in get_hash()
97 tbl->t_entry[bucket] = ent; in get_hash()
[all …]
H A Dinspect.c151 Hash_ent *ent; in enterino() local
215 return (ent); in enterino()
272 Hash_ent *ent; in enterdir() local
325 return (ent); in enterdir()
343 return (ent); in enterdir()
353 Hash_ent *ent; in enternoexistdir() local
376 return (ent); in enternoexistdir()
498 return (ent); in enternoexistfile()
605 return (ent); in enterfile()
644 return (ent); in enterfile()
[all …]
H A Dconfig.c74 Hash_ent *ent; in genconfig() local
287 for (ent = stbl->t_entry[bkt]; ent; ent = ent->e_next) { in genconfig()
304 objtbl->co_id = ent->e_id; in genconfig()
308 ent->e_cobj = objtbl; in genconfig()
359 for (ent = stbl->t_entry[bkt]; ent; ent = ent->e_next) { in genconfig()
374 (ent->e_off)) in genconfig()
385 ent->e_cobj = objtbl; in genconfig()
454 for (ent = stbl->t_entry[bkt]; ent; ent = ent->e_next) { in genconfig()
464 if (ent->e_off == 0) in genconfig()
476 ent->e_cobj = objtbl; in genconfig()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Ddump_rcm.c450 for (ent = cache; ent != NULL; ent = ent->next) { in update_cache()
471 ent = cache; in update_cache()
474 ent = ent->next; in update_cache()
484 tmp = ent; in update_cache()
485 ent = ent->next; in update_cache()
492 ent = ent->next; in update_cache()
506 ent = ent->next; in update_cache()
538 ent->next->prev = ent; in cache_insert()
540 cache = ent; in cache_insert()
550 ent->next->prev = ent->prev; in cache_remove()
[all …]
/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_convert.c302 krb5_db_entry *ent; in ulog_conv_2logentry() local
309 ent = entries; in ulog_conv_2logentry()
498 ent, &tmpint); in ulog_conv_2logentry()
567 (int16_t)ent->len; in ulog_conv_2logentry()
588 ent++; in ulog_conv_2logentry()
605 krb5_db_entry *ent; in ulog_conv_2dbentry() local
611 ent = entries; in ulog_conv_2dbentry()
659 ent->n_tl_data = 0; in ulog_conv_2dbentry()
717 ent->key_data = (krb5_key_data *)realloc(ent->key_data, in ulog_conv_2dbentry()
718 (ent->n_key_data * in ulog_conv_2dbentry()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dgpt.c96 struct gpt_ent *ent; in gptfind() local
104 ent = &gpttable[part - 1]; in gptfind()
126 ent = &gpttable[curent]; in gptfind()
140 ent = &gpttable[curent]; in gptfind()
156 ent = &gpttable[curent]; in gptfind()
166 ent = &gpttable[curent]; in gptfind()
167 dskp->start = ent->ent_lba_start; in gptfind()
237 struct gpt_ent *ent; in gptbootconv() local
249 ent = &table[nent + part]; in gptbootconv()
286 struct gpt_ent *ent; in gptread_table() local
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_pwd_policy.c188 LDAPMessage *ent, in populate_policy() argument
206 pol_dn = ldap_get_dn(ld, ent); in populate_policy()
229 LDAPMessage *result=NULL,*ent=NULL; in krb5_ldap_get_password_policy_from_dn() local
261 ent=ldap_first_entry(ld, result); in krb5_ldap_get_password_policy_from_dn()
262 if (ent != NULL) { in krb5_ldap_get_password_policy_from_dn()
263 if ((st = populate_policy(context, ld, ent, pol_name, *policy)) != 0) in krb5_ldap_get_password_policy_from_dn()
389 LDAPMessage *result=NULL, *ent=NULL; local
406 for (ent=ldap_first_entry(ld, result); ent != NULL; ent=ldap_next_entry(ld, ent)) {
409 st = krb5_ldap_get_string(ld, ent, "cn", &policy, &attr_present);
418 if ((st = populate_policy(context, ld, ent, policy, entry)) != 0)
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_findrealm.c39 krb5_keytab_entry ent; in krb5_kt_find_realm() local
49 while ((ret = krb5_kt_next_entry(context, keytab, &ent, &cur)) == 0) { in krb5_kt_find_realm()
51 memcpy(&tmp_realm, &ent.principal->realm, sizeof (krb5_data)); in krb5_kt_find_realm()
52 memcpy(&ent.principal->realm, &princ->realm, in krb5_kt_find_realm()
55 match = krb5_principal_compare(context, ent.principal, princ); in krb5_kt_find_realm()
58 memcpy(&ent.principal->realm, &tmp_realm, sizeof (krb5_data)); in krb5_kt_find_realm()
66 &ent.principal->realm, realm); in krb5_kt_find_realm()
68 krb5_kt_free_entry(context, &ent); in krb5_kt_find_realm()
73 krb5_kt_free_entry(context, &ent); in krb5_kt_find_realm()
77 krb5_kt_free_entry(context, &ent); in krb5_kt_find_realm()
/illumos-gate/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c72 #define SCF_ENTITY_SET_TO_SERVICE(ent, s) { ent.type = 1; ent.u.svc = s; } argument
75 { ent.type = ENT_INSTANCE; ent.u.inst = i; }
78 (ent.type ? scf_service_get_pg(ent.u.svc, name, pg) : \
82 (ent.type ? scf_service_to_fmri(ent.u.svc, buf, buf_sz) : \
85 #define SCF_ENTITY_TYPE_NAME(ent) (ent.type ? "service" : "instance") argument
353 if (ent.type) { in scf_iter_entity_pgs()
413 process_ent(scf_entityp_t ent) in process_ent() argument
487 if (ent.type == ENT_INSTANCE) { in process_ent()
686 scf_entityp_t ent; in process_fmri() local
698 process_ent(ent); in process_fmri()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/mm/
H A Dmm.c63 mm_logentry_t *ent; in kmemlog_walk_step() local
66 ent = &kw->kmlw_entries[kw->kmlw_entry]; in kmemlog_walk_step()
71 if (ent->mle_hrtime != 0) { in kmemlog_walk_step()
72 rval = wsp->walk_callback(kw->kmlw_addr + ((uintptr_t)ent - in kmemlog_walk_step()
73 (uintptr_t)kw->kmlw_entries), ent, wsp->walk_cbdata); in kmemlog_walk_step()
94 mm_logentry_t ent; in kmemlog() local
109 if (mdb_vread(&ent, sizeof (ent), addr) == -1) { in kmemlog()
115 addr, ent.mle_hrestime.tv_sec, ent.mle_vaddr, ent.mle_pid, in kmemlog()
116 ent.mle_psargs); in kmemlog()
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Dkadm5_create.c272 kadm5_principal_ent_rec ent; in add_admin_princ() local
274 memset(&ent, 0, sizeof(ent)); in add_admin_princ()
279 ent.principal = principal; in add_admin_princ()
280 ent.max_life = lifetime; in add_admin_princ()
283 ret = kadm5_create_principal(handle, &ent, in add_admin_princ()
291 krb5_free_principal(context, ent.principal); in add_admin_princ()
312 krb5_free_principal(context, ent.principal); in add_admin_princ()
326 krb5_free_principal(context, ent.principal); in add_admin_princ()
337 krb5_free_principal(context, ent.principal); in add_admin_princ()
362 ent.attributes = attrs; in add_admin_princ()
[all …]
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/
H A Dfpu_getset.c79 switch (ent->vfde_feature) { in check_sse()
82 if (ent->vfde_off != 0 || in check_sse()
83 ent->vfde_size != sizeof (struct fxsave_state)) { in check_sse()
86 "size=%x off=%x\n", ent->vfde_feature, in check_sse()
87 ent->vfde_size, ent->vfde_off); in check_sse()
93 if (ent->vfde_off != 0 || in check_sse()
97 "size=%x off=%x\n", ent->vfde_feature, in check_sse()
98 ent->vfde_size, ent->vfde_off); in check_sse()
173 if (ent->vfde_feature == XFEATURE_AVX) { in check_avx()
175 avx_size = ent->vfde_size; in check_avx()
[all …]
/illumos-gate/usr/src/uts/common/io/sbp2/
H A Dcfgrom.c313 sbp2_cfgrom_ent_t *ent; in sbp2_cfgrom_walk_impl() local
316 ent = &dir->ce_data.dir.cd_ent[i]; in sbp2_cfgrom_walk_impl()
339 ebk.ent = NULL; in sbp2_cfgrom_ent_by_key()
343 return (ebk.ent); in sbp2_cfgrom_ent_by_key()
352 if ((ent->ce_kt == ebk->kt) && (ent->ce_kv == ebk->kv)) { in sbp2_cfgrom_ent_by_key_walker()
354 ebk->ent = ent; in sbp2_cfgrom_ent_by_key_walker()
375 sbp2_cfgrom_ent_t *ent = cdp->cd_ent; in sbp2_cfgrom_walk_free() local
379 sbp2_cfgrom_walk_free(&ent[i]); in sbp2_cfgrom_walk_free()
381 (ent[i].ce_data.leaf != NULL)) { in sbp2_cfgrom_walk_free()
382 kmem_free(ent[i].ce_data.leaf, ent[i].ce_len * 4); in sbp2_cfgrom_walk_free()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmime.c134 free(ent); in drop()
144 Ent_t* ent; in mimeset() local
243 if (ent) in mimeset()
264 ent->pac = ent->pac->next = cap; in mimeset()
271 ent->cap = ent->pac = cap; in mimeset()
387 Ent_t* ent; in find() local
395 return ent; in find()
418 return ent; in find()
426 return ent; in find()
444 Ent_t* ent; in mimelist() local
[all …]

12345678