Home
last modified time | relevance | path

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

12345678

/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Drm.c106 rm(State_t* state, register FTSENT* ent) in rm() argument
113 if (ent->fts_info == FTS_NS || ent->fts_info == FTS_ERR || ent->fts_info == FTS_SLNONE) in rm()
116 error(2, "%s: not found", ent->fts_path); in rm()
118 else if (state->fs3d && iview(ent->fts_statp)) in rm()
119 fts_set(NiL, ent, FTS_SKIP); in rm()
120 else switch (ent->fts_info) in rm()
126 if (!beenhere(ent)) in rm()
128 if (!chmod(ent in rm()
334 FTSENT* ent; b_rm() local
[all...]
H A Dcp.c236 visit(State_t* state, register FTSENT* ent) in visit() argument
255 if (ent->fts_info == FTS_DC) in visit()
257 error(2, "%s: directory causes cycle", ent->fts_path); 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()
269 state->presiz = ent->fts_pathlen; in visit()
275 state->presiz -= base - ent->fts_name; in visit()
276 base = ent in visit()
686 FTSENT* ent; 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()
298 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) in b_chmod()
299 sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1); 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 in b_chmod()
[all...]
H A Dchgrp.c226 register FTSENT*ent; in b_chgrp() local
397 while (!sh_checksig(context) && (ent = fts_read(fts))) in b_chgrp()
398 switch (ent->fts_info) in b_chgrp()
412 error(ERROR_system(0), "%s: cannot change symlink owner/group", ent->fts_path); in b_chgrp()
423 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
430 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
452 uid = ent->fts_statp->st_uid; in b_chgrp()
454 gid = ent->fts_statp->st_gid; in b_chgrp()
459 error(ERROR_warn(0), "%s: uid and gid not mapped", ent in b_chgrp()
[all...]
/titanic_51/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_51/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 in grub_entry_get_fstyp()
150 grub_entry_get_kernel(const grub_entry_t * ent) grub_entry_get_kernel() argument
159 grub_entry_get_module(const grub_entry_t * ent) grub_entry_get_module() argument
168 grub_entry_get_error_desc(const grub_entry_t * ent) grub_entry_get_error_desc() argument
175 grub_entry_get_rootfs(const grub_entry_t * ent) grub_entry_get_rootfs() argument
184 grub_entry_get_cmdline(grub_entry_t * ent,char * cmdline,size_t size) grub_entry_get_cmdline() argument
[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 in add_entry()
134 grub_entry_t *ent; default_entry() local
184 grub_entry_t *ent, *tmp; free_entries() local
264 grub_entry_t *ent; grub_menu_process() local
482 grub_entry_t *ent; grub_menu_get_cmdline() local
492 grub_menu_next_entry(const grub_menu_t * mp,const grub_entry_t * ent) grub_menu_next_entry() argument
504 grub_menu_prev_entry(const grub_menu_t * mp,const grub_entry_t * ent) grub_menu_prev_entry() argument
518 grub_entry_t *ent; grub_menu_get_entry() local
[all...]
/titanic_51/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 in _getdgrptabent()
583 _freedgrptabent(struct dgrptabent * ent) _freedgrptabent() argument
[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 in _getdevtabent()
836 _freedevtabent(struct devtabent * ent) _freedevtabent() argument
[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 in mkdgrptabent()
597 struct dgrptabent *ent; /* Ptr to dev tab entry */ _adddgrptabrec() local
733 struct dgrptabent *ent; /* Entry to remove */ _rmdgrptabrec() local
794 struct dgrptabent *ent; /* Entry to modify */ _rmdgrpmems() local
[all...]
/titanic_51/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()
[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 in _enterdir()
270 Hash_ent *ent; enterdir() local
351 Hash_ent *ent; enternoexistdir() local
449 Hash_ent *rent, *ent; enternoexistfile() local
507 Hash_ent *ent, *rent, *ndent = odent; enterfile() local
651 Hash_ent *ent; inspect_file() local
850 Hash_ent *ent; inspect_dir() local
938 Hash_ent *ent; inspect() local
[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 in genconfig()
[all...]
/titanic_51/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 in sof_setsockopt_impl()
538 sof_entry_t *ent = inst->sofi_filter; sof_sonode_autoattach_filters() local
742 sof_instance_create(sof_entry_t * ent,struct sonode * so) sof_instance_create() argument
802 sof_entry_t *ent; sof_entry_find() local
813 sof_entry_free(sof_entry_t * ent) sof_entry_free() argument
840 sof_entry_t *ent = ksp->ks_private; sof_entry_kstat_update() local
854 sof_entry_kstat_create(sof_entry_t * ent) sof_entry_kstat_create() argument
890 sof_entry_kstat_destroy(sof_entry_t * ent) sof_entry_kstat_destroy() argument
899 sof_entry_hold(sof_entry_t * ent) sof_entry_hold() argument
912 sof_entry_rele(sof_entry_t * ent) sof_entry_rele() argument
935 sof_entry_load_module(sof_entry_t * ent) sof_entry_load_module() argument
963 sof_entry_add(sof_entry_t * ent) sof_entry_add() argument
1006 sof_entry_t *ent; sof_entry_remove_by_name() local
1029 sof_entry_proc_sockparams(sof_entry_t * ent,struct sockparams * sp) sof_entry_proc_sockparams() argument
1152 sof_entry_t *ent; sof_sockparams_init() local
1169 sof_module_t *ent; sof_module_find() local
[all...]
/titanic_51/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 in update_cache()
536 cache_insert(dump_conf_t * ent) cache_insert() argument
549 cache_remove(dump_conf_t * ent) cache_remove() argument
[all...]
/titanic_51/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 in ulog_conv_2logentry()
605 krb5_db_entry *ent; ulog_conv_2dbentry() local
[all...]
/titanic_51/usr/src/boot/sys/boot/common/
H A Dgpt.c95 struct gpt_ent *ent; in gptfind() local
103 ent = &gpttable[part - 1]; in gptfind()
104 if (bcmp(&ent->ent_type, uuid, sizeof(uuid_t)) != 0) { in gptfind()
125 ent = &gpttable[curent]; in gptfind()
126 if (bcmp(&ent->ent_type, uuid, sizeof(uuid_t)) != 0) in gptfind()
128 if (!(ent->ent_attr & GPT_ENT_ATTR_BOOTME)) in gptfind()
130 if (!(ent->ent_attr & GPT_ENT_ATTR_BOOTONCE)) in gptfind()
139 ent = &gpttable[curent]; in gptfind()
140 if (bcmp(&ent->ent_type, uuid, sizeof(uuid_t)) != 0) in gptfind()
142 if (!(ent in gptfind()
236 struct gpt_ent *ent; gptbootconv() local
283 struct gpt_ent *ent; gptread_table() local
[all...]
/titanic_51/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()
[all...]
/titanic_51/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 ! in krb5_ldap_get_password_policy_from_dn()
389 LDAPMessage *result=NULL, *ent=NULL; global() local
[all...]
/titanic_51/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
81 scf_entity_to_fmri(ent,buf,buf_sz) global() argument
85 SCF_ENTITY_TYPE_NAME(ent) global() argument
349 scf_iter_entity_pgs(scf_iter_t * iter,scf_entityp_t ent) scf_iter_entity_pgs() argument
413 process_ent(scf_entityp_t ent) process_ent() argument
688 scf_entityp_t ent; process_fmri() local
[all...]
/titanic_51/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_51/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 in add_admin_princ()
[all...]

12345678