/osnet-11/usr/src/lib/libcmd/common/ |
H A D | rm.c | 105 rm(State_t* state, register FTSENT* ent) argument 112 if (ent->fts_info == FTS_NS || ent->fts_info == FTS_ERR || ent->fts_info == FTS_SLNONE) 115 error(2, "%s: not found", ent->fts_path); 117 else if (state->fs3d && iview(ent->fts_statp)) 118 fts_set(NiL, ent, FTS_SKIP); 119 else switch (ent->fts_info) 125 if (!beenhere(ent)) 127 if (!chmod(ent 333 FTSENT* ent; local [all...] |
H A D | chmod.c | 158 register FTSENT*ent; local 262 while (!sh_checksig(context) && (ent = fts_read(fts))) 263 switch (ent->fts_info) 268 if (!(flags & FTS_PHYSICAL) || (flags & FTS_META) && ent->fts_level == 1) 269 fts_set(NiL, ent, FTS_FOLLOW); 278 mode = strperm(amode, &last, ent->fts_statp->st_mode); 279 if (show || (*chmodf)(ent->fts_accpath, mode) >= 0) 281 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) 282 sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1); 285 error(ERROR_system(0), "%s: cannot change mode", ent [all...] |
H A D | cp.c | 236 visit(State_t* state, register FTSENT* ent) argument 255 if (ent->fts_info == FTS_DC) 257 error(2, "%s: directory causes cycle", ent->fts_path); 258 fts_set(NiL, ent, FTS_SKIP); 261 if (ent->fts_level == 0) 263 base = ent->fts_name; 264 len = ent->fts_namelen; 269 state->presiz = ent->fts_pathlen; 275 state->presiz -= base - ent->fts_name; 276 base = ent 683 FTSENT* ent; local [all...] |
H A D | chgrp.c | 231 register FTSENT*ent; local 402 while (!sh_checksig(context) && (ent = fts_read(fts))) 403 switch (ent->fts_info) 410 if ((unsigned long)ent->fts_statp->st_ctime >= before) 416 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; 417 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; 439 uid = ent->fts_statp->st_uid; 441 gid = ent->fts_statp->st_gid; 446 error(ERROR_warn(0), "%s: uid and gid not mapped", ent->fts_path); 448 error(ERROR_warn(0), "%s: uid not mapped", ent [all...] |
H A D | cksum.c | 449 FTSENT* ent; local 596 while (!sh_checksig(context) && (ent = fts_read(fts))) 597 switch (ent->fts_info) 600 if (!(flags & FTS_PHYSICAL) || (flags & FTS_META) && ent->fts_level == 1) 601 fts_set(NiL, ent, FTS_FOLLOW); 604 if (sp = openfile(ent->fts_accpath, "rb")) 606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check); 611 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_path); 614 error(ERROR_system(0), "%s: cannot read directory", ent [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_findrealm.c | 39 krb5_keytab_entry ent; local 49 while ((ret = krb5_kt_next_entry(context, keytab, &ent, &cur)) == 0) { 51 memcpy(&tmp_realm, &ent.principal->realm, sizeof (krb5_data)); 52 memcpy(&ent.principal->realm, &princ->realm, 55 match = krb5_principal_compare(context, ent.principal, princ); 58 memcpy(&ent.principal->realm, &tmp_realm, sizeof (krb5_data)); 66 &ent.principal->realm, realm); 68 krb5_kt_free_entry(context, &ent); 73 krb5_kt_free_entry(context, &ent); 77 krb5_kt_free_entry(context, &ent); [all...] |
H A D | kt_srvtab.c | 168 krb5_keytab_entry best_entry, ent; local 191 while ((kerror = krb5_ktsrvint_read_entry(context, id, &ent)) == 0) { 192 ent.key.enctype = enctype; 193 if (krb5_principal_compare(context, principal, ent.principal)) { 195 if (!best_entry.principal || (best_entry.vno < ent.vno)) { 197 best_entry = ent; 200 if (ent.vno == kvno) { 201 best_entry = ent; 208 krb5_kt_free_entry(context, &ent);
|
/osnet-11/usr/src/lib/krb5/kdb/ |
H A D | kdb_convert.c | 316 krb5_db_entry *ent; local 325 ent = entries; 351 if ((ret = krb5_db_get_principal(context, ent->princ, &curr, 376 find_changed_attrs(&curr, ent, exclude_nra, attr_types, &nattrs); 384 if (ent->attributes >= 0) { 388 (uint32_t)ent->attributes; 393 if (ent->max_life >= 0) { 397 (uint32_t)ent->max_life; 402 if (ent->max_renewable_life >= 0) { 407 (uint32_t)ent 630 krb5_db_entry *ent; local [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_pwd_policy.c | 201 LDAPMessage *ent, 212 krb5_ldap_get_value(ld, ent, "krbmaxpwdlife", &(pol_entry->pw_max_life)); 213 krb5_ldap_get_value(ld, ent, "krbminpwdlife", &(pol_entry->pw_min_life)); 214 krb5_ldap_get_value(ld, ent, "krbpwdmindiffchars", &(pol_entry->pw_min_classes)); 215 krb5_ldap_get_value(ld, ent, "krbpwdminlength", &(pol_entry->pw_min_length)); 216 krb5_ldap_get_value(ld, ent, "krbpwdhistorylength", &(pol_entry->pw_history_num)); 218 krb5_ldap_get_value(ld, ent, "krbpwdmaxfailure", &(pol_entry->pw_max_fail)); 219 krb5_ldap_get_value(ld, ent, "krbpwdfailurecountinterval", &(pol_entry->pw_failcnt_interval)); 220 krb5_ldap_get_value(ld, ent, "krbpwdlockoutduration", &(pol_entry->pw_lockout_duration)); 223 pol_dn = ldap_get_dn(ld, ent); 199 populate_policy(krb5_context context, LDAP *ld, LDAPMessage *ent, char *pol_name, osa_policy_ent_t pol_entry) argument 245 LDAPMessage *result=NULL,*ent=NULL; local 398 LDAPMessage *result=NULL, *ent=NULL; local [all...] |
H A D | ldap_krbcontainer.c | 80 LDAPMessage *result=NULL, *ent=NULL; local 157 if ((ent = ldap_first_entry(ld, result)) != NULL) { 158 if ((st=krb5_ldap_get_string(ld, ent, "krbcontainerreference", 175 if ((ent = ldap_first_entry(ld, result))) { 176 if ((st=krb5_ldap_get_string(ld, ent, "krbticketpolicyreference", 190 ent=ldap_first_entry(ld, result); 191 if (ent != NULL) { 192 krb5_ldap_get_value(ld, ent, "krbmaxtktlife", &(cparams->max_life)); 193 krb5_ldap_get_value(ld, ent, "krbmaxrenewableage", &(cparams->max_renewable_life)); 194 krb5_ldap_get_value(ld, ent, "krbticketflag [all...] |
H A D | ldap_tkt_policy.c | 202 LDAPMessage *result=NULL,*ent=NULL; local 245 ent=ldap_first_entry(ld, result); 246 if (ent != NULL) { 247 if (krb5_ldap_get_value(ld, ent, "krbmaxticketlife", (int *) &(lpolicy->maxtktlife)) == 0) 250 if (krb5_ldap_get_value(ld, ent, "krbmaxrenewableage", (int *) &(lpolicy->maxrenewlife)) == 0) 253 if (krb5_ldap_get_value(ld, ent, "krbticketflags", (int *) &(lpolicy->tktflags)) == 0) 422 LDAPMessage *result=NULL,*ent=NULL; local 461 for (ent=ldap_first_entry(ld, result), count=0; ent != NULL; ent [all...] |
H A D | ldap_realm.c | 173 LDAPMessage *result = NULL, *ent = NULL; local 210 for (ent = ldap_first_entry(ld, result), count = 0; ent != NULL; 211 ent = ldap_next_entry(ld, ent)) { 213 if ((values = ldap_get_values (ld, ent, "cn")) != NULL) { 221 } /* for (ent= ... */ 259 LDAPMessage **result_arr=NULL, *result = NULL, *ent = NULL; local 319 for (ent = ldap_first_entry (ld, result); ent ! 399 LDAPMessage *result=NULL, *ent=NULL; local 1200 LDAPMessage *result=NULL,*ent=NULL; local [all...] |
H A D | ldap_services.c | 188 LDAPMessage *result=NULL, *ent=NULL; local 262 ent = ldap_first_entry(ld, result); 263 if (ent) { 264 if ((values=ldap_get_values(ld, ent, "krbRealmReferences")) != NULL) { 412 LDAPMessage *result=NULL,*ent=NULL; local 458 ent=ldap_first_entry(ld, result); 459 if (ent != NULL) { 461 if ((values=ldap_get_values(ld, ent, "krbServiceFlags")) != NULL) { 467 if ((values=ldap_get_values(ld, ent, "krbHostServer")) != NULL) { 475 if ((values=ldap_get_values(ld, ent, "krbRealmReference [all...] |
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | mime.c | 126 register Ent_t* ent = (Ent_t*)object; local 129 while (cap = ent->cap) 131 ent->cap = cap->next; 134 free(ent); 144 register Ent_t* ent; local 240 ent = (Ent_t*)dtmatch(mp->cap, s); 243 if (ent) 248 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next) 256 ent->cap = cap; 258 ent 344 register Ent_t* ent = (Ent_t*)object; local 387 Ent_t* ent; local 444 Ent_t* ent; local 604 register Ent_t* ent; local [all...] |
/osnet-11/usr/src/lib/libipadm/common/ |
H A D | ipadm_cong.c | 86 ipadm_cong_ent_t *ent; local 92 while ((ent = uu_list_teardown(list, &cookie)) != NULL) { 93 uu_list_node_fini(ent, &(ent->node), pool); 94 free(ent->value); 95 free(ent); 107 ipadm_cong_ent_t *ent; local 109 ent = calloc(1, sizeof (ipadm_cong_ent_t)); 110 if (ent == NULL) 113 (void) strlcpy(ent 129 ipadm_cong_ent_t *ent; local 154 ipadm_cong_ent_t *ent; local 368 ipadm_cong_ent_t *ent; local 639 scf_transaction_entry_t *ent = NULL; local 727 scf_transaction_entry_t *ent = NULL; local 914 ipadm_cong_ent_t *ent; local [all...] |
/osnet-11/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 63 struct mnttab ent; local 81 while (getmntent(fp, &ent) == 0) { 84 (mountTableSize + MNTTAB_HUNK) * sizeof (ent)); 93 if (ent.mnt_special != NULL) 94 entp->mnt_special = _z_strdup(ent.mnt_special); 95 if (ent.mnt_mntopts != NULL) 96 entp->mnt_mntopts = _z_strdup(ent.mnt_mntopts); 97 entp->mnt_mountp = _z_strdup(ent.mnt_mountp); 98 entp->mnt_fstype = _z_strdup(ent.mnt_fstype);
|
/osnet-11/usr/src/lib/libidmap/common/ |
H A D | directory_client.c | 51 static directory_error_t copy_directory_entry(directory_entry_t *ent, 202 directory_entry_t *ent; local 213 ent = &del[i]; 215 if (ent->attrs != NULL) { 217 for (j = 0; j < sized_array_n(ent->attrs); j++) { 218 dav = ent->attrs[j]; 226 sized_array_free(ent->attrs); 229 directory_error_free(ent->err); 280 directory_entry_t *ent, 292 ent 279 copy_directory_entry( directory_entry_t *ent, directory_entry_rpc *ent_rpc) argument [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/disk/ieee1275/ |
H A D | ofdisk.c | 167 static struct ofdisk_hash_ent *ent; local 168 for (ent = ofdisk_hash[i]; ent; ent = ent->next) 170 if (!ent->shortest) 177 if (grub_ieee1275_finddevice (ent->devpath, &dev)) 180 ent->devpath); 198 if (grub_strncmp (ent->shortest, "cdrom", 5) == 0) 202 char buffer[sizeof ("ieee1275/") + grub_strlen (ent [all...] |
/osnet-11/usr/src/lib/libipmi/common/ |
H A D | ipmi_sdr.c | 185 ipmi_sdr_cache_ent_t *ent; local 330 if ((ent = ipmi_zalloc(ihp, 336 ent->isc_sdr = sdr; 339 if ((ent->isc_name = ipmi_alloc(ihp, namelen + 1)) == 341 ipmi_free(ihp, ent->isc_sdr); 342 ipmi_free(ihp, ent); 346 ipmi_decode_string(type, namelen, name, ent->isc_name); 356 if (ipmi_hash_lookup(ihp->ih_sdr_cache, ent) != NULL) { 357 ipmi_free(ihp, ent->isc_sdr); 358 ipmi_free(ihp, ent 439 ipmi_sdr_cache_ent_t *ent; local 548 ipmi_sdr_cache_ent_t *ent; local 567 ipmi_sdr_cache_ent_t *ent, search; local [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ext2/ |
H A D | ext2_inode_relocator.c | 101 struct ext2_inode_entry *ent; local 104 if ((ent = findit(state, inode)) == NULL) 107 for (i=0;i<ent->numreferences;i++) 108 if (!ent->ref[i].block) 111 if (i == ent->numreferences) 119 if (i == ent->numreferences - 1) 122 ent->ref[i].block = block; 123 ent->ref[i].offset = offset; 525 struct ext2_inode_entry *ent; local 544 ent [all...] |
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | gethostent6.c | 57 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument 59 return (__str2hostent(AF_INET6, instr, lenstr, ent, buffer, buflen));
|
H A D | gethostent_r.c | 52 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument 54 return (__str2hostent(AF_INET, instr, lenstr, ent, buffer, buflen));
|
/osnet-11/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_misc.c | 148 struct passwd *ent; local 188 ent = hes_getpwnam(cp); 189 if (ent && ent->pw_gecos) 190 if (str_check_gecos(ent->pw_gecos, password))
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | getauuser.c | 61 str2auuser(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument 65 au_user_str_t *au_user = ent; 82 if (ent == NULL)
|
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/ |
H A D | dhcp_network.c | 179 char *ent0, *ent, *entend; local 212 ent = ent0; 213 for (nrecords = 0; count < 0 || nrecords < count; ent = entend + 1) { 217 if (ent - ent0 >= st.st_size) 232 ent = strstr(ent, cip); 233 if (ent == NULL) 235 ent++; 245 entend = strchr(ent, '\n'); 255 if (ent[ 727 char entbuf[1024], *ent = entbuf; local [all...] |