Home
last modified time | relevance | path

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

1234567

/titanic_50/usr/src/lib/libcmd/common/
H A Drm.c105 rm(State_t* state, register FTSENT* ent) in rm() argument
112 if (ent->fts_info == FTS_NS || ent->fts_info == FTS_ERR || ent->fts_info == FTS_SLNONE) in rm()
115 error(2, "%s: not found", ent->fts_path); in rm()
117 else if (state->fs3d && iview(ent->fts_statp)) in rm()
118 fts_set(NiL, ent, FTS_SKIP); in rm()
119 else switch (ent->fts_info) in rm()
125 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm()
127 fts_set(NiL, ent, FTS_AGAIN); in rm()
133 error(2, "%s: cannot %s directory", ent->fts_path, (ent->fts_info & FTS_NR) ? "read" : "search"); in rm()
136 fts_set(NiL, ent, FTS_SKIP); in rm()
[all …]
H A Dcp.c218 visit(State_t* state, register FTSENT* ent) in visit() argument
237 if (ent->fts_info == FTS_DC) in visit()
239 error(2, "%s: directory causes cycle", ent->fts_path); in visit()
240 fts_set(NiL, ent, FTS_SKIP); in visit()
243 if (ent->fts_level == 0) in visit()
245 base = ent->fts_name; in visit()
246 len = ent->fts_namelen; in visit()
251 state->presiz = ent->fts_pathlen; in visit()
257 state->presiz -= base - ent->fts_name; in visit()
258 base = ent->fts_name + len; in visit()
[all …]
H A Dchmod.c158 register FTSENT*ent; in b_chmod() local
262 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chmod()
263 switch (ent->fts_info) in b_chmod()
268 if (!(flags & FTS_PHYSICAL) || (flags & FTS_META) && ent->fts_level == 1) in b_chmod()
269 fts_set(NiL, ent, FTS_FOLLOW); in b_chmod()
278 mode = strperm(amode, &last, ent->fts_statp->st_mode); in b_chmod()
279 if (show || (*chmodf)(ent->fts_accpath, mode) >= 0) in b_chmod()
281 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) in b_chmod()
282 … sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1); in b_chmod()
285 error(ERROR_system(0), "%s: cannot change mode", ent->fts_accpath); in b_chmod()
[all …]
H A Dchgrp.c221 register FTSENT*ent; in b_chgrp() local
383 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chgrp()
384 switch (ent->fts_info) in b_chgrp()
391 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
397 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
398 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
420 uid = ent->fts_statp->st_uid; in b_chgrp()
422 gid = ent->fts_statp->st_gid; in b_chgrp()
427 error(ERROR_warn(0), "%s: uid and gid not mapped", ent->fts_path); in b_chgrp()
429 error(ERROR_warn(0), "%s: uid not mapped", ent->fts_path); in b_chgrp()
[all …]
/titanic_50/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_entry.c100 grub_entry_construct_barg(grub_entry_t *ent) in grub_entry_construct_barg() argument
107 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()
120 for (lp = ent->ge_start; lp != lend; lp = lp->gl_next) { in grub_entry_construct_barg()
141 grub_entry_get_fstyp(const grub_entry_t *ent) in grub_entry_get_fstyp() argument
143 if (IS_ENTRY_BARG_VALID(ent)) in grub_entry_get_fstyp()
144 return (ent->ge_barg.gb_root.gr_fstyp); in grub_entry_get_fstyp()
[all …]
H A Dlibgrub_menu.c85 check_entry(grub_entry_t *ent) in check_entry() argument
90 const grub_line_t * const lend = ent->ge_end->gl_next; in check_entry()
93 for (i = 0, lp = ent->ge_start; lend != lp; lp = lp->gl_next, ++i) { in check_entry()
94 lp->gl_entry_num = ent->ge_entry_num; in check_entry()
102 if ((ent->ge_emask = emask) == 0) in check_entry()
103 ent->ge_flags |= GRBM_VALID_FLAG; in check_entry()
109 grub_entry_t *ent; in add_entry() local
111 if ((ent = calloc(1, sizeof (*ent))) == NULL) in add_entry()
114 ent->ge_start = start; in add_entry()
115 ent->ge_end = end; in add_entry()
[all …]
H A Dlibgrub_impl.h66 #define IS_ENTRY_VALID(ent) ((ent) && ((ent)->ge_flags & GRBM_VALID_FLAG)) argument
68 #define IS_ENTRY_BARG_VALID(ent) \ argument
69 (IS_ENTRY_VALID(ent) && IS_BARG_VALID(&(ent)->ge_barg))
202 int grub_entry_construct_barg(grub_entry_t *ent);
203 const char *grub_entry_get_fstyp(const grub_entry_t *ent);
204 const char *grub_entry_get_kernel(const grub_entry_t *ent);
205 const char *grub_entry_get_module(const grub_entry_t *ent);
206 const grub_fsdesc_t *grub_entry_get_rootfs(const grub_entry_t *ent);
207 size_t grub_entry_get_cmdline(grub_entry_t *ent, char *cmdline, size_t size);
/titanic_50/usr/src/lib/libadm/common/
H A Ddgrpent.c429 struct dgrptabent *ent; /* Dev table entry structure */ in _getdgrptabent() local
443 if (!(ent = malloc(sizeof (struct dgrptabent)))) { in _getdgrptabent()
457 ent->comment = TRUE; in _getdgrptabent()
458 ent->entryno = recnum++; in _getdgrptabent()
461 if (ent->dataspace = malloc(strlen(record)+1)) { in _getdgrptabent()
462 (void) strcpy(ent->dataspace, record); in _getdgrptabent()
464 free(ent); in _getdgrptabent()
465 ent = NULL; in _getdgrptabent()
474 ent->comment = FALSE; in _getdgrptabent()
481 ent->entryno = recnum++; in _getdgrptabent()
[all …]
H A Ddevtab.c680 struct devtabent *ent; /* Ptr to dev table entry structure */ in _getdevtabent() local
695 if (!(ent = malloc(sizeof (struct devtabent)))) { in _getdevtabent()
703 ent->entryno = dtabrecnum++; in _getdevtabent()
707 ent->comment = TRUE; in _getdevtabent()
709 if (ent->attrstr = malloc(strlen(record)+1)) { in _getdevtabent()
710 q = ent->attrstr; in _getdevtabent()
717 free(ent); in _getdevtabent()
718 ent = NULL; in _getdevtabent()
725 ent->comment = FALSE; in _getdevtabent()
726 ent->attrstr = NULL; /* For now */ in _getdevtabent()
[all …]
H A Dputdgrp.c418 struct dgrptabent *ent; /* Ptr to struct we're making */ in mkdgrptabent() local
429 if (ent = malloc(sizeof (struct dgrptabent))) { in mkdgrptabent()
432 ent->name = NULL; /* alias */ in mkdgrptabent()
433 ent->entryno = 0; /* Entry no. */ in mkdgrptabent()
434 ent->comment = FALSE; /* data rec */ in mkdgrptabent()
435 ent->dataspace = NULL; /* string */ in mkdgrptabent()
436 ent->membership = NULL; /* attr list */ in mkdgrptabent()
439 if (ent->name = malloc(strlen(dgroup)+1)) { in mkdgrptabent()
440 (void) strcpy(ent->name, dgroup); in mkdgrptabent()
452 else ent->membership = member; in mkdgrptabent()
[all …]
/titanic_50/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()
71 if ((strcmp((const char *)ent->e_key, 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()
87 if ((ent = calloc(sizeof (Hash_ent), 1)) == 0) in get_hash()
90 ent->e_key = key; in get_hash()
[all …]
H A Dinspect.c149 Hash_ent *ent; in enterino() local
187 if ((ent = get_hash(tbl, ino, 0, in enterino()
194 if ((obj = ent->e_obj) == NULL) { in enterino()
211 ent->e_obj = obj; in enterino()
213 return (ent); in enterino()
221 _enterdir(Crle_desc *crle, const char *dir, Hash_ent *ent, Hash_obj *obj) in _enterdir() argument
234 ent->e_key = (Addr)ndir; in _enterdir()
235 ent->e_id = crle->c_dirnum++; in _enterdir()
236 ent->e_obj = obj; in _enterdir()
258 (void) printf(fmt, ent->e_id, dir); in _enterdir()
[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()
289 Hash_obj *obj = ent->e_obj; in genconfig()
290 char *dir = (char *)ent->e_key; in genconfig()
303 objtbl->co_hash = ent->e_hash; in genconfig()
304 objtbl->co_id = ent->e_id; in genconfig()
305 objtbl->co_flags = obj->o_flags | ent->e_flags; in genconfig()
308 ent->e_cobj = objtbl; in genconfig()
325 _dirtbl = &dirtbl[ent->e_id - 1]; in genconfig()
333 ((ent->e_cnt + 1) * sizeof (Rtc_file))); in genconfig()
[all …]
/titanic_50/usr/src/uts/common/fs/sockfs/
H A Dsockfilter.c189 sof_entry_t *ent = NULL; in sof_setsockopt_impl() local
218 ent = fil->spf_filter; in sof_setsockopt_impl()
219 ASSERT(ent->sofe_flags & SOFEF_PROG); in sof_setsockopt_impl()
221 if (strncmp(ent->sofe_name, (const char *)optval, in sof_setsockopt_impl()
230 inst = sof_instance_create(ent, so); in sof_setsockopt_impl()
241 if (ent->sofe_mod == NULL && in sof_setsockopt_impl()
242 (error = sof_entry_load_module(ent)) != 0) { in sof_setsockopt_impl()
248 ASSERT(ent->sofe_mod != NULL); in sof_setsockopt_impl()
249 inst->sofi_ops = &ent->sofe_mod->sofm_ops; in sof_setsockopt_impl()
283 ent = inst->sofi_filter; in sof_setsockopt_impl()
[all …]
/titanic_50/usr/src/cmd/rcm_daemon/common/
H A Ddump_rcm.c441 dump_conf_t *ent, *curr_dump, *tmp; in update_cache() local
452 for (ent = cache; ent != NULL; ent = ent->next) { in update_cache()
453 ent->cache_flags |= DUMP_CACHE_STALE; in update_cache()
461 } else if ((ent = cache_lookup(curr_dump->device)) != NULL) { in update_cache()
462 ent->cache_flags &= ~DUMP_CACHE_STALE; in update_cache()
463 ent->conf_flags = curr_dump->conf_flags; in update_cache()
473 ent = cache; in update_cache()
474 while (ent != NULL) { in update_cache()
475 if (ent->cache_flags & DUMP_CACHE_OFFLINED) { in update_cache()
476 ent = ent->next; in update_cache()
[all …]
H A Dswap_rcm.c670 cache_insert(swap_file_t *ent) in cache_insert() argument
672 ent->next = cache; in cache_insert()
673 if (ent->next) in cache_insert()
674 ent->next->prev = ent; in cache_insert()
675 ent->prev = NULL; in cache_insert()
676 cache = ent; in cache_insert()
699 cache_remove(swap_file_t *ent) in cache_remove() argument
701 assert(ent != NULL); in cache_remove()
703 if (ent->next != NULL) { in cache_remove()
704 ent->next->prev = ent->prev; in cache_remove()
[all …]
/titanic_50/usr/src/cmd/ssh/sshd/
H A Dauth-sia.c54 SIAENTITY *ent = NULL; in auth_sia_password() local
63 if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0, in auth_sia_password()
67 if ((ret = sia_ses_authent(NULL, pass, ent)) != SIASUCCESS) { in auth_sia_password()
70 sia_ses_release(&ent); in auth_sia_password()
74 sia_ses_release(&ent); in auth_sia_password()
83 SIAENTITY *ent = NULL; in session_setup_sia() local
88 if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, tty, 0, in session_setup_sia()
94 sia_ses_release(&ent); in session_setup_sia()
97 if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { in session_setup_sia()
98 sia_ses_release(&ent); in session_setup_sia()
[all …]
/titanic_50/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()
331 if ((ret = krb5_db_get_principal_nolock(context, ent->princ, &curr, in ulog_conv_2logentry()
356 find_changed_attrs(&curr, ent, attr_types, &nattrs); in ulog_conv_2logentry()
364 if (ent->attributes >= 0) { in ulog_conv_2logentry()
368 (uint32_t)ent->attributes; in ulog_conv_2logentry()
373 if (ent->max_life >= 0) { in ulog_conv_2logentry()
377 (uint32_t)ent->max_life; in ulog_conv_2logentry()
382 if (ent->max_renewable_life >= 0) { in ulog_conv_2logentry()
387 (uint32_t)ent->max_renewable_life; in ulog_conv_2logentry()
[all …]
/titanic_50/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()
/titanic_50/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_pwd_policy.c188 LDAPMessage *ent, in populate_policy() argument
199 krb5_ldap_get_value(ld, ent, "krbmaxpwdlife", (int *)&(pol_entry->pw_max_life)); in populate_policy()
200 krb5_ldap_get_value(ld, ent, "krbminpwdlife", (int *)&(pol_entry->pw_min_life)); in populate_policy()
201 krb5_ldap_get_value(ld, ent, "krbpwdmindiffchars", (int *)&(pol_entry->pw_min_classes)); in populate_policy()
202 krb5_ldap_get_value(ld, ent, "krbpwdminlength", (int *)&(pol_entry->pw_min_length)); in populate_policy()
203 krb5_ldap_get_value(ld, ent, "krbpwdhistorylength", (int *)&(pol_entry->pw_history_num)); in populate_policy()
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()
[all …]
/titanic_50/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
74 #define SCF_ENTITY_SET_TO_INSTANCE(ent, i) \ argument
75 { ent.type = ENT_INSTANCE; ent.u.inst = i; }
77 #define scf_entity_get_pg(ent, name, pg) \ argument
78 (ent.type ? scf_service_get_pg(ent.u.svc, name, pg) : \
79 scf_instance_get_pg(ent.u.inst, name, pg))
81 #define scf_entity_to_fmri(ent, buf, buf_sz) \ argument
82 (ent.type ? scf_service_to_fmri(ent.u.svc, buf, buf_sz) : \
83 scf_instance_to_fmri(ent.u.inst, buf, buf_sz))
85 #define SCF_ENTITY_TYPE_NAME(ent) (ent.type ? "service" : "instance") argument
[all …]
/titanic_50/usr/src/lib/libast/common/misc/
H A Dmime.c126 register Ent_t* ent = (Ent_t*)object; in drop() local
129 while (cap = ent->cap) in drop()
131 ent->cap = cap->next; in drop()
134 free(ent); in drop()
144 register Ent_t* ent; in mimeset() local
240 ent = (Ent_t*)dtmatch(mp->cap, s); in mimeset()
243 if (ent) in mimeset()
248 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next) in mimeset()
256 ent->cap = cap; in mimeset()
258 ent->pac = cap; in mimeset()
[all …]
/titanic_50/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()
281 ent.attributes = attrs | KRB5_KDB_DISALLOW_ALL_TIX; 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()
[all …]
/titanic_50/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()
317 if (func(arg, ent, level) == SBP2_WALK_STOP) { in sbp2_cfgrom_walk_impl()
320 if (ent->ce_kt == IEEE1212_DIRECTORY_TYPE) { in sbp2_cfgrom_walk_impl()
321 if (sbp2_cfgrom_walk_impl(ent, func, arg, level + 1) == 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()
348 sbp2_cfgrom_ent_by_key_walker(void *arg, sbp2_cfgrom_ent_t *ent, int level) in sbp2_cfgrom_ent_by_key_walker() argument
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()
[all …]
/titanic_50/usr/src/lib/libipmi/common/
H A Dipmi_sdr.c185 ipmi_sdr_cache_ent_t *ent; in ipmi_sdr_refresh() local
330 if ((ent = ipmi_zalloc(ihp, in ipmi_sdr_refresh()
336 ent->isc_sdr = sdr; in ipmi_sdr_refresh()
339 if ((ent->isc_name = ipmi_alloc(ihp, namelen + 1)) == in ipmi_sdr_refresh()
341 ipmi_free(ihp, ent->isc_sdr); in ipmi_sdr_refresh()
342 ipmi_free(ihp, ent); in ipmi_sdr_refresh()
346 ipmi_decode_string(type, namelen, name, ent->isc_name); in ipmi_sdr_refresh()
356 if (ipmi_hash_lookup(ihp->ih_sdr_cache, ent) != NULL) { in ipmi_sdr_refresh()
357 ipmi_free(ihp, ent->isc_sdr); in ipmi_sdr_refresh()
358 ipmi_free(ihp, ent->isc_name); in ipmi_sdr_refresh()
[all …]

1234567