Home
last modified time | relevance | path

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

12345

/titanic_44/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_44/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_44/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_44/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_44/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_44/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_44/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_44/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_44/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_44/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_44/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_44/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);
H A Dlog_put.c467 log_file(dblp, lsn, namep, len) in log_file() argument
470 char *namep;
486 *namep = '\0';
489 (void)strcpy(namep, name);
529 __log_name(dblp, filenumber, namep, fdp, flags) in __log_name() argument
532 char **namep;
559 DB_APP_LOG, dblp->dir, new, 0, NULL, namep)) != 0 || fdp == NULL)
563 if ((ret = __db_open(*namep,
587 __os_freestr(*namep);
588 *namep = oname;
/titanic_44/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_44/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()
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c178 char *namep, in ufs_dirlook() argument
207 ASSERT(*namep != '\0'); /* All callers ensure *namep is non null */ in ufs_dirlook()
217 if (!skipdnlc && (vp = dnlc_lookup(dvp, namep))) { in ufs_dirlook()
241 switch (dnlc_dir_lookup(dcap, namep, &handle)) { in ufs_dirlook()
250 if (namep[0] == '.' && namep[1] == '.' && namep[2] == 0) { in ufs_dirlook()
270 if (!err && (dnlc_dir_lookup(dcap, namep, &handle2) in ufs_dirlook()
272 dnlc_update(dvp, namep, ITOV(*ipp)); in ufs_dirlook()
290 dnlc_update(dvp, namep, ITOV(*ipp)); in ufs_dirlook()
295 dnlc_enter(dvp, namep, DNLC_NO_VNODE); in ufs_dirlook()
380 namlen = strlen(namep); in ufs_dirlook()
[all …]
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mangle_name.c375 char *namep, *buf; in smb_unmangle() local
418 namep = edp->ed_name; in smb_unmangle()
423 namep = dp->d_name; in smb_unmangle()
427 if (u8_validate(namep, strlen(namep), NULL, in smb_unmangle()
431 smb_mangle(namep, ino, shortname, SMB_SHORTNAMELEN); in smb_unmangle()
434 (void) strlcpy(namebuf, namep, buflen); in smb_unmangle()
H A Dsmb_pathname.c345 char *component, *real_name, *namep; in smb_pathname() local
400 if ((namep = smb_pathname_catia_v5tov4(sr, component, in smb_pathname()
406 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
422 if ((namep = smb_pathname_catia_v5tov4(sr, real_name, in smb_pathname()
428 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
490 namep = rpn.pn_path; in smb_pathname()
492 namep = pn.pn_path; in smb_pathname()
495 namep = smb_pathname_catia_v4tov5(sr, namep, in smb_pathname()
498 fnode = smb_node_lookup(sr, NULL, cred, vp, namep, in smb_pathname()
574 char *namep; in smb_pathname_catia_v5tov4() local
[all …]
/titanic_44/usr/src/cmd/fs.d/cachefs/common/
H A Dsubr.c864 cachefs_delete_cache(char *dirp, char *namep) in cachefs_delete_cache() argument
879 snprintf(path, sizeof (path), "%s/%s", dirp, namep); in cachefs_delete_cache()
891 pr_err(gettext("\"%s\" is not a valid cache id."), namep); in cachefs_delete_cache()
914 snprintf(path, sizeof (path), "%s/%s", dirp, namep); in cachefs_delete_cache()
943 cachefs_delete_file(const char *namep, const struct stat64 *statp, int flg, in cachefs_delete_file() argument
947 if (strcmp(namep, ".") == 0 || strcmp(namep, "..") == 0) in cachefs_delete_file()
953 if (unlink(namep) == -1) { in cachefs_delete_file()
955 namep, strerror(errno)); in cachefs_delete_file()
961 if (rmdir(namep) == -1) { in cachefs_delete_file()
963 namep, strerror(errno)); in cachefs_delete_file()
[all …]
/titanic_44/usr/src/uts/sun4v/sys/
H A Dmdeg.h47 char *namep; member
64 char *namep; member
75 char *namep; member
/titanic_44/usr/src/uts/common/fs/cachefs/
H A Dcachefs_fscache.c70 int fscdir_create(cachefscache_t *cachep, char *namep, fscache_t *fscp);
217 fscache_setup(fscache_t *fscp, ino64_t fsid, char *namep, in fscache_setup() argument
229 if ((namep == NULL) || (optp == NULL) || in fscache_setup()
246 error = fscdir_create(cachep, namep, fscp); in fscache_setup()
251 namep); in fscache_setup()
255 error, namep); in fscache_setup()
306 fscache_activate(fscache_t *fscp, ino64_t fsid, char *namep, in fscache_activate() argument
309 return (fscache_setup(fscp, fsid, namep, optp, backfileno, 1)); in fscache_activate()
325 fscache_enable(fscache_t *fscp, ino64_t fsid, char *namep, in fscache_enable() argument
328 return (fscache_setup(fscp, fsid, namep, optp, backfileno, 0)); in fscache_enable()
[all …]
/titanic_44/usr/src/lib/nsswitch/files/common/
H A Dgethostent.c49 int type, const char **namep, int *namelen, in check_name() argument
73 *namep = linep; in check_name()
82 *namelen = linep - *namep; in check_name()
88 *namelen = linep - *namep; in check_name()
348 const char *namep; local
434 type, &namep, &namelen,
489 ap = (char *)namep + namelen;
522 cplen = namep - instr;
555 (void) memcpy(h_name, namep, namelen);
602 } else if (namep && h_namelen == namelen &&
[all …]
/titanic_44/usr/src/cmd/fm/schemes/hc/
H A Dscheme.c154 const char **namep; in auth_compare() local
164 for (namep = names; *namep != NULL; namep++) { in auth_compare()
167 (void) nvlist_lookup_string(auth1, *namep, &val1); in auth_compare()
168 (void) nvlist_lookup_string(auth2, *namep, &val2); in auth_compare()

12345