/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_response.c | 144 struct smf_uuid_cache_ent *entp; in uuid_cache_gc() local 151 entp = &uuid_cache->entry[i]; in uuid_cache_gc() 153 if (entp->uuid[0] == '\0') in uuid_cache_gc() 156 if (fmd_case_uuisresolved(hdl, entp->uuid)) { in uuid_cache_gc() 157 bzero(entp->uuid, sizeof (entp->uuid)); in uuid_cache_gc() 158 bzero(entp->fmristr, sizeof (entp->fmristr)); in uuid_cache_gc() 159 entp->mark = 0; in uuid_cache_gc() 164 if (topo_fmri_str2nvl(thp, entp->fmristr, &svcfmri, in uuid_cache_gc() 167 entp->fmristr); in uuid_cache_gc() 174 (void) fmd_repair_asru(hdl, entp->fmristr); in uuid_cache_gc() [all …]
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 64 struct mnttab *entp; in z_createMountTable() local 86 entp = &mountTable[mountTableSize++]; in z_createMountTable() 91 (void) memset(entp, 0, sizeof (*entp)); in z_createMountTable() 94 entp->mnt_special = _z_strdup(ent.mnt_special); in z_createMountTable() 96 entp->mnt_mntopts = _z_strdup(ent.mnt_mntopts); in z_createMountTable() 97 entp->mnt_mountp = _z_strdup(ent.mnt_mountp); in z_createMountTable() 98 entp->mnt_fstype = _z_strdup(ent.mnt_fstype); in z_createMountTable()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ipmp.c | 603 ipmp_arpent_t *entp; in ipmp_illgrp_add_ipif() local 613 entp = ipmp_illgrp_lookup_arpent(illg, &ipif->ipif_lcl_addr); in ipmp_illgrp_add_ipif() 614 if (entp != NULL) in ipmp_illgrp_add_ipif() 615 ipmp_illgrp_destroy_arpent(illg, entp); in ipmp_illgrp_add_ipif() 841 ipmp_arpent_t *entp, *oentp; in ipmp_illgrp_create_arpent() local 845 if ((entp = kmem_alloc(sizeof (ipmp_arpent_t) + lladdr_len, in ipmp_illgrp_create_arpent() 852 if ((oentp = ipmp_illgrp_lookup_arpent(illg, &entp->ia_ipaddr)) != NULL) in ipmp_illgrp_create_arpent() 858 entp->ia_ipaddr = ipaddr; in ipmp_illgrp_create_arpent() 859 entp->ia_flags = flags; in ipmp_illgrp_create_arpent() 860 entp->ia_lladdr_len = lladdr_len; in ipmp_illgrp_create_arpent() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/ |
H A D | clnt_policy.c | 131 kadm5_policy_ent_t *entp; in kadm5_get_policy() local 133 entp = (kadm5_policy_ent_t *) ent; in kadm5_get_policy() 135 if (!(*entp = (kadm5_policy_ent_t) in kadm5_get_policy() 138 memcpy(*entp, &r->rec, sizeof(**entp)); in kadm5_get_policy() 140 *entp = NULL; in kadm5_get_policy()
|
H A D | client_principal.c | 264 kadm5_principal_ent_t_v1 *entp; in kadm5_get_principal() local 266 entp = (kadm5_principal_ent_t_v1 *) ent; in kadm5_get_principal() 268 if (!(*entp = (kadm5_principal_ent_t_v1) in kadm5_get_principal() 274 memcpy(*entp, &r->rec, sizeof(**entp)); in kadm5_get_principal() 276 *entp = NULL; in kadm5_get_principal()
|
/illumos-gate/usr/src/uts/sun4v/io/n2rng/ |
H A D | n2rng_entp_algs.c | 235 n2rng_renyi_entropy(uint64_t *samples, int lg2samples, n2rng_osc_perf_t *entp) in n2rng_renyi_entropy() argument 277 entp->numvals = numdistinct; in n2rng_renyi_entropy() 279 entp->H1 = shannonsum / 64; in n2rng_renyi_entropy() 281 entp->H2 = -(lg2(sqsum) + in n2rng_renyi_entropy() 284 entp->Hinf = -(lg2(largestcount) + in n2rng_renyi_entropy()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_readdir.c | 141 if (rdcp->entp) { in do_readdir() 142 free_dir_list(rdcp->entp); in do_readdir() 143 rdcp->entp = NULL; in do_readdir() 176 if (rdcp->entp) { in do_readdir() 177 free_dir_list(rdcp->entp); in do_readdir() 178 rdcp->entp = NULL; in do_readdir() 459 if (p->entp) in autofs_rddir_cache_entry_free() 460 free_dir_list(p->entp); in autofs_rddir_cache_entry_free() 517 assert(rdcp->entp == NULL); in build_dir_entry_list() 518 rdcp->entp = list; in build_dir_entry_list()
|
H A D | autod_lookup.c | 81 found = (rddir_entry_lookup(key, rdcp->entp) != NULL); in do_lookup1()
|
H A D | automount.h | 212 struct dir_entry *entp; member
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prtable.c | 171 zonename_t *entp; in add_zone() local 200 entp = &tbl->z_list[tbl->z_nent++]; in add_zone() 202 (void) strlcpy(entp->z_name, str, ZONENAME_MAX); in add_zone() 204 entp->z_name[0] = '\0'; in add_zone() 205 entp->z_id = id; in add_zone()
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | genf.c | 443 struct dirent *entp; in g_get_physical_name() local 494 while ((entp = readdir(dirp)) != NULL) { in g_get_physical_name() 495 if (strcmp(entp->d_name, ".") == 0 || in g_get_physical_name() 496 strcmp(entp->d_name, "..") == 0) in g_get_physical_name() 499 if (entp->d_name[0] != 'c') in g_get_physical_name() 506 sprintf(namebuf, "%s/%s", dev_name, entp->d_name); in g_get_physical_name() 522 if (strstr(entp->d_name, s) != NULL) { in g_get_physical_name() 530 if (atoi(&s[1]) == atoi(&entp->d_name[1])) { in g_get_physical_name() 533 s, entp->d_name); in g_get_physical_name()
|
H A D | map.c | 5725 struct dirent *entp; in get_dev_path() local 5748 while ((entp = readdir(dirp)) != NULL) { in get_dev_path() 5753 if ((strcmp(entp->d_name, ".") == 0) || in get_dev_path() 5754 (strcmp(entp->d_name, "..") == 0) || in get_dev_path() 5755 (fnmatch(pattern_match, entp->d_name, 0) != 0)) in get_dev_path() 5759 sprintf(namebuf, "%s/%s", dir_name, entp->d_name); in get_dev_path() 5978 struct dirent *entp; in init_drv() local 5987 while ((entp = readdir(dirp)) != NULL) { in init_drv() 5992 if ((strcmp(entp->d_name, ".") == 0) || in init_drv() 5993 (strcmp(entp->d_name, "..") == 0) || in init_drv() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 39 char *entp; variable 433 sentp = entp; in match() 434 entp = s; in match() 436 entp = sentp; in match() 509 s = entp; in amatch()
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 1844 struct mnttab *entp = NULL; in unmount_shared_fs() local 1866 entp = &table[size++]; in unmount_shared_fs() 1872 (void) memset(entp, 0, sizeof (*entp)); in unmount_shared_fs() 1873 if ((entp->mnt_mountp = strdup(ent.mnt_mountp)) == NULL || in unmount_shared_fs() 1874 (entp->mnt_fstype = strdup(ent.mnt_fstype)) == NULL) { in unmount_shared_fs() 1888 entp = &table[i - 1]; in unmount_shared_fs() 1891 if (strcmp(entp->mnt_fstype, MNTTYPE_LOFS) != 0) in unmount_shared_fs() 1895 if (strncmp(entp->mnt_mountp, ud->altroot, altroot_len) == 0 && in unmount_shared_fs() 1896 entp->mnt_mountp[altroot_len] == '/') { in unmount_shared_fs() 1897 if (umount(entp->mnt_mountp) != 0) { in unmount_shared_fs() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | glob.c | 109 static char *entp; variable 402 sentp = entp; in match() 403 entp = s; in match() 405 entp = sentp; in match() 503 s = entp; in amatch()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 1592 ndmp_name *entp; in ndmpd_path_restored() local 1623 entp = (ndmp_name *)MOD_GETNAME(params, pos); in ndmpd_path_restored() 1624 if (entp && entp->name) in ndmpd_path_restored() 1625 name = entp->name; in ndmpd_path_restored() 1646 struct dirent *entp; in dp_readdir() local 1649 if ((entp = readdir(dirp)) == 0) { in dp_readdir() 1657 *fileidp = entp->d_ino; in dp_readdir() 1658 (void) strlcpy(name, entp->d_name, *n_namep); in dp_readdir() 1659 *n_namep = entp->d_reclen + 1; in dp_readdir()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | ix_altsctr.c | 478 struct alts_ent *entp; in gen_alts_ent() local 485 entp = malloc(ap->ap_ent_secsiz); in gen_alts_ent() 486 if (entp == NULL) { in gen_alts_ent() 492 ent_used = ent_merge(entp, ap->ap_entp, ap->ap_tblp->alts_ent_used, in gen_alts_ent() 496 ap->ap_entp = entp; in gen_alts_ent()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.glob.c | 38 tchar *entp; variable 377 sentp = entp; in match() 378 entp = s; in match() 380 entp = sentp; in match() 478 s = entp; in amatch()
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_gettpent.c | 165 str_to_tpstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_tpstr() argument 171 tsol_tpstr_t *tpstrp = (tsol_tpstr_t *)entp; in str_to_tpstr()
|
H A D | tsol_getrhent.c | 170 str_to_rhstr(const char *instr, int lenstr, void *entp, char *buffer, in str_to_rhstr() argument 177 tsol_rhstr_t *rhstrp = (tsol_rhstr_t *)entp; in str_to_rhstr()
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | fme.c | 158 static void istat_counter_reset_cb(struct istat_entry *entp, 160 static void istat_counter_topo_chg_cb(struct istat_entry *entp, 162 static void serd_reset_cb(struct serd_entry *entp, void *unused, 164 static void serd_topo_chg_cb(struct serd_entry *entp, void *unused, 2428 istat_verify(struct node *snp, struct istat_entry *entp) in istat_verify() argument 2442 lut_lookup(Istats, entp, (lut_cmp)istat_cmp)) == NULL || in istat_verify() 2541 struct istat_entry *entp = (struct istat_entry *)left; in istat_destructor() local 2543 FREE(entp); in istat_destructor() 2551 istat_counter_reset_cb(struct istat_entry *entp, struct stats *statp, in istat_counter_reset_cb() argument 2556 if (entp->ipath == ipp) { in istat_counter_reset_cb() [all …]
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 1220 struct dirent *entp; in load_modules() local 1239 while ((entp = readdir(mod_dir)) != NULL) { in load_modules() 1243 if (((tmp = strstr(entp->d_name, MODULE_SUFFIX)) == NULL) || in load_modules() 1249 dirname, entp->d_name) >= sizeof (modpath)) { in load_modules() 1272 mod->name = strdup(entp->d_name); in load_modules() 1344 syseventd_print(3, "loaded module %s\n", entp->d_name); in load_modules()
|
/illumos-gate/usr/src/cmd/addbadsec/ |
H A D | ix_altsctr.c | 457 struct alts_ent *entp; in gen_alts_ent() local 464 entp=(struct alts_ent *) malloc (ap->ap_ent_secsiz); in gen_alts_ent() 465 ent_used = ent_merge(entp, ap->ap_entp, ap->ap_tblp->alts_ent_used, in gen_alts_ent() 471 ap->ap_entp = entp; in gen_alts_ent()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_subr.c | 1543 struct dirent *entp; in rcmd_db_init() local 1563 while ((entp = readdir(mod_dir)) != NULL) { in rcmd_db_init() 1566 if (strcmp(entp->d_name, ".") == 0 || in rcmd_db_init() 1567 strcmp(entp->d_name, "..") == 0) in rcmd_db_init() 1572 if (((tmp = strstr(entp->d_name, in rcmd_db_init() 1579 module = cli_module_hold(entp->d_name); in rcmd_db_init() 1584 entp->d_name); in rcmd_db_init()
|
/illumos-gate/usr/src/cmd/ps/ |
H A D | ps.c | 2133 struct ugdata *entp; in add_ugentry() local 2140 entp = &tbl->ent[tbl->nent++]; in add_ugentry() 2141 entp->id = 0; in add_ugentry() 2142 (void) strncpy(entp->name, name, MAXUGNAME); in add_ugentry() 2143 entp->name[MAXUGNAME] = '\0'; in add_ugentry()
|