Home
last modified time | relevance | path

Searched refs:namep (Results 1 – 25 of 143) sorted by relevance

123456

/titanic_41/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c50 static int generate_short_name(struct pcnode *dp, char *namep,
52 static struct pcdir *pc_name_to_pcdir(struct pcnode *dp, char *namep,
55 static int direntries_needed(struct pcnode *dp, char *namep);
56 static int pc_is_short_file_name(char *namep, int foldcase);
72 char *namep, /* name to lookup */ in pc_dirlook() argument
79 PC_DPRINTF2(4, "pc_dirlook (dp %p name %s)\n", (void *)dp, namep); in pc_dirlook()
94 if (*namep == '\0') { in pc_dirlook()
104 if (bcmp(namep, ".", 2) == 0 || bcmp(namep, "..", 3) == 0) { in pc_dirlook()
110 error = pc_findentry(dp, namep, &slot, NULL); in pc_dirlook()
128 char *namep, /* name of entry */ in pc_direnter() argument
[all …]
H A Dpc_subr.c279 pc_valid_long_fn(char *namep, int utf8) in pc_valid_long_fn() argument
290 if ((len = u8_validate(namep, strlen(namep), prohibited, in pc_valid_long_fn()
298 for (tmp = namep; (*tmp != '\0') || (*(tmp+1) != '\0'); in pc_valid_long_fn()
315 if ((tmp - namep) > (PCMAXNAMLEN * sizeof (uint16_t))) in pc_valid_long_fn()
322 pc_fname_ext_to_name(char *namep, char *fname, char *ext, int foldcase) in pc_fname_ext_to_name() argument
325 char *tp = namep; in pc_fname_ext_to_name()
/titanic_41/usr/src/uts/common/sys/fs/
H A Dpc_dir.h218 #define PC_NAME_IS_DOT(namep) \ argument
219 (((namep)[0] == '.') && ((namep)[1] == '\0'))
220 #define PC_NAME_IS_DOTDOT(namep) \ argument
221 (((namep)[0] == '.') && ((namep)[1] == '.') && ((namep)[2] == '\0'))
222 #define PC_SHORTNAME_IS_DOT(namep) \ argument
223 (((namep)[0] == '.') && ((namep)[1] == ' '))
224 #define PC_SHORTNAME_IS_DOTDOT(namep) \ argument
225 (((namep)[0] == '.') && ((namep)[1] == '.') && ((namep)[2] == ' '))
/titanic_41/usr/src/cmd/mdb/sun4v/modules/mdesc/
H A Dmdesc.c85 char *namep; in mdinfo() local
125 if ((namep = mdb_alloc(namesize, UM_NOSLEEP)) == NULL) { in mdinfo()
132 mdb_free(namep, namesize); in mdinfo()
142 mdb_free(namep, namesize); in mdinfo()
146 if (mdb_vread(namep, namesize, vaddr + MD_HEADER_SIZE + mdesize) in mdinfo()
151 mdb_free(namep, namesize); in mdinfo()
160 mdb_free(namep, namesize); in mdinfo()
171 MDE_NAME(mdeptr), namep + mdeptr->name_offset, in mdinfo()
176 MDE_NAME(mdeptr), namep + mdeptr->name_offset, in mdinfo()
181 MDE_NAME(mdeptr), namep + mdeptr->name_offset, in mdinfo()
[all …]
/titanic_41/usr/src/cmd/fs.d/cachefs/fsck/
H A Dfsck.c95 int cache_check_dir(char *cachedirp, char *namep);
96 int process_fsdir(char *cachedirp, char *namep, res *resp, int verbose);
97 int process_fsinfo(char *namep, ino64_t maxlocalfileno,
99 int process_fsgroup(char *dirp, char *namep, res *resp, ino64_t base,
101 int tree_remove(const char *namep, const struct stat64 *statp, int type,
104 int file_remove(const char *namep, const struct stat64 *statp, int verbose);
438 char *namep; in cfs_check() local
493 namep = RESOURCE_NAME; in cfs_check()
494 xx = strlen(cachedirp) + strlen(namep) + 3; in cfs_check()
497 cachedirp, namep); in cfs_check()
[all …]
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_getdevs.c115 mdname_t *namep, in meta_getdevs() argument
131 if (namep == NULL) in meta_getdevs()
135 if (! metaismeta(namep)) { in meta_getdevs()
143 if (strcmp(namep->bname, p->namep->bname) == 0) { in meta_getdevs()
150 (void) metanamelist_append(nlpp, namep); in meta_getdevs()
156 if ((miscname = metagetmiscname(namep, ep)) == NULL) in meta_getdevs()
162 mgd.mnum = meta_getminor(namep->dev); in meta_getdevs()
165 if (metaioctl(MD_IOCGET_DEVS, &mgd, &mgd.mde, namep->cname) != 0) { in meta_getdevs()
184 if (metaioctl(MD_IOCGET_DEVS, &mgd, &mgd.mde, namep->cname) != 0) { in meta_getdevs()
216 if (meta_fix_compnames(sp, namep, in meta_getdevs()
[all …]
H A Dmeta_attach.c41 mdname_t *namep, in meta_concat_generic() argument
51 assert(sp->setno == MD_MIN2SET(meta_getminor(namep->dev))); in meta_concat_generic()
54 if ((miscname = metagetmiscname(namep, ep)) == NULL) in meta_concat_generic()
64 mgp.mnum = meta_getminor(namep->dev); in meta_concat_generic()
66 if (metaioctl(MD_IOCGROW, &mgp, &mgp.mde, namep->cname) != 0) in meta_concat_generic()
70 meta_invalidate_name(namep); in meta_concat_generic()
H A Dmeta_print.c49 mdname_t *namep, in meta_print_name() argument
64 if ((miscname = metagetmiscname(namep, ep)) == NULL) in meta_print_name()
69 return (meta_trans_print(sp, namep, nlpp, fname, fp, in meta_print_name()
73 return (meta_mirror_print(sp, namep, nlpp, fname, fp, in meta_print_name()
77 return (meta_raid_print(sp, namep, nlpp, fname, fp, in meta_print_name()
81 return (meta_stripe_print(sp, namep, nlpp, fname, fp, in meta_print_name()
85 return (meta_sp_print(sp, namep, nlpp, fname, fp, in meta_print_name()
90 return (mdmderror(ep, MDE_UNKNOWN_TYPE, meta_getminor(namep->dev), in meta_print_name()
91 namep->cname)); in meta_print_name()
H A Dmeta_mirror_resync.c44 mdname_t *namep; /* mirror name */ member
159 if ((mirrorp = meta_get_mirror(sp, p->namep, ep)) == NULL) { in setup_units()
166 lp->namep = p->namep; in setup_units()
265 if (meta_mn_send_setsync(sp, lp->namep, in meta_mirror_resync_all()
273 if (meta_mirror_resync(sp, lp->namep, size, ep, in meta_mirror_resync_all()
306 ri.ri_mnum = meta_getminor(lp->namep->dev); in meta_mirror_resync_all()
309 lp->namep->cname) != 0) { in meta_mirror_resync_all()
450 if (meta_mirror_resync(sp, lp->namep, 0, &mde, in meta_mn_mirror_resync_all()
482 ri.ri_mnum = meta_getminor(lp->namep->dev); in meta_mn_mirror_resync_all()
485 lp->namep->cname) != 0) { in meta_mn_mirror_resync_all()
[all …]
/titanic_41/usr/src/cmd/lvm/util/
H A Dmetarecover.c65 mdname_t *namep; in main() local
142 if ((namep = metaname(&sp, devname, UNKNOWN, ep)) == NULL) { in main()
148 if ((metagetsize(namep, ep) == MD_DISKADDR_ERROR)) { in main()
165 if (!metaismeta(namep)) { in main()
166 if (! meta_is_drive_in_thisset(sp, namep->drivenamep, in main()
169 namep->dev, namep->cname); in main()
178 error = meta_recover_sp(sp, namep, --argc, ++argv, options, ep); in main()
H A Dmetastat.c104 mdname_t *namep; in print_name() local
129 if (((namep = metaname(spp, uname, META_DEVICE, ep)) == NULL) || in print_name()
130 (metachkmeta(namep, ep) != 0)) in print_name()
138 if ((miscname = metagetmiscname(namep, ep)) != NULL) { in print_name()
145 return (meta_print_name(*spp, namep, nlistpp, fname, fp, options, in print_name()
292 mdname_t *namep; in main() local
522 namep = hsp->hotspares. in main()
529 if (meta_getdevs(sp, namep, in main()
539 if (((namep = metaname(&sp, cname, in main()
541 (metachkmeta(namep, ep) != 0)) in main()
[all …]
H A Dmetareplace.c66 mdname_t *namep; in main() local
162 if (((namep = metaname(&sp, uname, META_DEVICE, ep)) == NULL)) { in main()
167 if (metachkmeta(namep, ep) != 0) { in main()
189 if ((miscname = metagetmiscname(namep, ep)) == NULL) { in main()
226 if ((result = meta_mn_send_resync_starting(namep, ep)) in main()
257 if (meta_enable_byname(sp, namep, compnp, options, ep) in main()
277 if (meta_replace_byname(sp, namep, oldnp, newnp, in main()
/titanic_41/usr/src/lib/libdiskmgt/common/
H A Dinuse_vxvm.c59 static int (*vxdl_libvxvm_get_dgs)(int len, vm_name_t namep[]);
301 vm_name_t *namep; in load_vxvm() local
326 namep = (vm_name_t *)calloc(MAX_DISK_GROUPS, nsize); in load_vxvm()
327 if (namep == NULL) { in load_vxvm()
335 free(namep); in load_vxvm()
339 n_disk_groups = (vxdl_libvxvm_get_dgs)(MAX_DISK_GROUPS, namep); in load_vxvm()
342 free(namep); in load_vxvm()
347 pnp = (char *)namep; in load_vxvm()
372 free(namep); in load_vxvm()
379 free(namep); in load_vxvm()
[all …]
/titanic_41/usr/src/cmd/fm/modules/common/eversholt/
H A Dipath.c227 struct node *namep; in ipath() local
239 namep = np; in ipath()
240 while (namep != NULL) { in ipath()
241 ASSERTinfo(namep->t == T_NAME, ptree_nodetype2str(namep->t)); in ipath()
243 namep = namep->u.name.next; in ipath()
253 namep = np; in ipath()
255 while (namep != NULL) { in ipath()
257 ret[i].s = namep->u.name.s; in ipath()
258 if (namep->u.name.child != NULL && in ipath()
259 namep->u.name.child->t == T_NUM) in ipath()
[all …]
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_kmod.c325 const char *namep, char *newnamep) in kmod_lostfound() argument
335 dbug_precond(namep); in kmod_lostfound()
337 dbug_precond(strlen(namep) < (size_t)MAXNAMELEN); in kmod_lostfound()
340 strlcpy(info.lf_name, namep, sizeof (info.lf_name)); in kmod_lostfound()
348 dbug_print(("ioctl", " suggested name '%s'", namep)); in kmod_lostfound()
712 const char *namep, in kmod_create() argument
731 dbug_precond(namep); in kmod_create()
736 dbug_assert(strlen(namep) < (size_t)MAXNAMELEN); in kmod_create()
737 strlcpy(info.cr_name, namep, sizeof (info.cr_name)); in kmod_create()
758 namep, exclusive, mode)); in kmod_create()
[all …]
H A Dcfsd_kmod.h54 const char *namep, char *newnamep);
68 const char *namep, const cfs_cid_t *cidp, cfs_vattr_t *vattrp,
86 const cfs_cid_t *cidp, const char *namep, const dl_cred_t *credp,
89 const char *namep, const cfs_fid_t *filefidp, const cfs_cid_t *cidp,
92 const char *namep, const cfs_cid_t *cidp, const cfs_vattr_t *vattrp,
95 const char *namep, const dl_cred_t *credp);
97 const char *namep, const cfs_cid_t *cidp, const char *linkvalp,
/titanic_41/usr/src/cmd/autopush/
H A Dautopush.c247 set_info(char *namep) in set_info() argument
262 if ((fp = fopen(namep, "r")) == NULL) { in set_info()
263 (void) fprintf(stderr, Openerr, Cmdp, namep); in set_info()
274 parsecode = parse_line(buf, line, namep, &push); in set_info()
293 "autopush for line %d\n"), Cmdp, namep, line); in set_info()
513 parse_line(char *linep, int lineno, char *namep, struct strapush *pushp) in parse_line() argument
532 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
538 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
552 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
565 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
[all …]
/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c293 char *namep; in snapshot_destroy() local
304 namep = volname; in snapshot_destroy()
308 namep = snapname; in snapshot_destroy()
314 snapshot_release(volname, namep, jname, recursive) != 0) { in snapshot_destroy()
317 namep, errno, libzfs_error_description(zlibh)); in snapshot_destroy()
322 if ((zhp = zfs_open(zlibh, namep, ztype)) == NULL) { in snapshot_destroy()
324 namep); in snapshot_destroy()
337 namep, in snapshot_destroy()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetnetgrent.c176 getnetgrent_r(machinep, namep, domainp, buffer, buflen) in getnetgrent_r() argument
178 char **namep;
198 *namep = args.retp[NSS_NETGR_USER];
209 getnetgrent(machinep, namep, domainp) in getnetgrent() argument
211 char **namep;
215 return (getnetgrent_r(machinep, namep, domainp,
/titanic_41/usr/src/cmd/auditreduce/
H A Doption.c969 char *namep, *slp; in check_file() local
975 for (slp = namep = fcb->fcb_file; *namep; namep++) { in check_file()
976 if (*namep == '/') in check_file()
977 slp = namep + 1; /* slp -> the filename itself */ in check_file()
996 namep = (char *)a_calloc(1, strlen(slp) + 1); in check_file()
997 (void) strcpy(namep, slp); in check_file()
998 if (namep[14] != '.' || namep[29] != '.') { in check_file()
1000 gettext("invalid filename format (%c or %c)"), namep[14], in check_file()
1001 namep[29]); in check_file()
1003 free(namep); in check_file()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/log/
H A Dlog_register.c44 void *namep; local
48 fnp = namep = reuse_fnp = NULL;
100 if ((ret = __db_shalloc(dblp->addr, len, 0, &namep)) != 0)
102 fnp->name_off = R_OFFSET(dblp, namep);
103 memcpy(namep, name, len);
131 if (namep != NULL)
132 __db_shalloc_free(dblp->addr, namep);
/titanic_41/usr/src/cmd/lvm/rpc.metad/
H A Dmetad_init.c145 char **namep; in check_gid14() local
156 for (namep = grp->gr_mem; ((*namep != NULL) && (**namep != '\0')); in check_gid14()
157 ++namep) { in check_gid14()
158 if (strcmp(*namep, pwp->pw_name) == 0) in check_gid14()
/titanic_41/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c117 char *namep, struct ud_inode **ipp, struct cred *cr, int32_t skipdnlc) in ud_dirlook() argument
155 if (*namep == '\0') { in ud_dirlook()
160 namelen = strlen(namep); in ud_dirlook()
162 (namep[0] == '.') && (namep[1] == '\0')) { in ud_dirlook()
166 dnlc_enter(dvp, namep, ITOV(*ipp)); in ud_dirlook()
170 if ((!skipdnlc) && (vp = dnlc_lookup(dvp, namep))) { in ud_dirlook()
230 (strncmp(namep, (caddr_t)fname, in ud_dirlook()
299 dnlc_enter(dvp, namep, in ud_dirlook()
328 char *namep, in ud_direnter() argument
349 for (s = namep, namlen = 0; *s; s++, namlen++) { in ud_direnter()
[all …]
/titanic_41/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_init.c266 char **namep; in check_gid14() local
277 for (namep = grp->gr_mem; ((*namep != NULL) && (**namep != '\0')); in check_gid14()
278 ++namep) { in check_gid14()
279 if (strcmp(*namep, pwp->pw_name) == 0) in check_gid14()
/titanic_41/usr/src/common/mdesc/
H A Dmdesc_findname.c42 md_find_name(md_t *ptr, char *namep) in md_find_name() argument
58 p = &(mdp->namep[idx]); in md_find_name()
62 if (strcmp(p, namep) == 0) in md_find_name()

123456