/titanic_50/usr/src/uts/common/fs/pcfs/ |
H A D | pc_dir.c | 50 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 D | pc_subr.c | 279 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_50/usr/src/uts/common/sys/fs/ |
H A D | pc_dir.h | 218 #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_50/usr/src/cmd/mdb/sun4v/modules/mdesc/ |
H A D | mdesc.c | 85 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_50/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_vxvm.c | 59 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_50/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | ipath.c | 227 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_50/usr/src/cmd/autopush/ |
H A D | autopush.c | 247 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_50/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_chkpnt.c | 293 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_50/usr/src/lib/libc/port/gen/ |
H A D | getnetgrent.c | 176 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_50/usr/src/cmd/auditreduce/ |
H A D | option.c | 969 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_50/usr/src/cmd/sendmail/db/log/ |
H A D | log_register.c | 44 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 D | log_put.c | 467 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_50/usr/src/uts/common/fs/udfs/ |
H A D | udf_dir.c | 117 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_50/usr/src/common/mdesc/ |
H A D | mdesc_findname.c | 42 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()
|
H A D | mdesc_getpropval.c | 41 md_get_prop_val(md_t *ptr, mde_cookie_t node, char *namep, uint64_t *valp) in md_get_prop_val() argument 53 prop_name = md_find_name(ptr, namep); in md_get_prop_val()
|
/titanic_50/usr/src/uts/common/fs/ufs/ |
H A D | ufs_dir.c | 178 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_50/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_mangle_name.c | 375 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 D | smb_pathname.c | 362 char *component, *real_name, *namep; in smb_pathname() local 417 if ((namep = smb_pathname_catia_v5tov4(sr, component, in smb_pathname() 423 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname() 439 if ((namep = smb_pathname_catia_v5tov4(sr, real_name, in smb_pathname() 445 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname() 507 namep = rpn.pn_path; in smb_pathname() 509 namep = pn.pn_path; in smb_pathname() 512 namep = smb_pathname_catia_v4tov5(sr, namep, in smb_pathname() 515 fnode = smb_node_lookup(sr, NULL, cred, vp, namep, in smb_pathname() 591 char *namep; in smb_pathname_catia_v5tov4() local [all …]
|
/titanic_50/usr/src/uts/sun4v/sys/ |
H A D | mdeg.h | 47 char *namep; member 64 char *namep; member 75 char *namep; member
|
/titanic_50/usr/src/lib/nsswitch/files/common/ |
H A D | gethostent.c | 49 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_50/usr/src/cmd/fm/schemes/hc/ |
H A D | scheme.c | 154 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()
|
/titanic_50/usr/src/cmd/tar/ |
H A D | tar.c | 428 static int check_prefix(char **namep, char **dirp, char **compp); 432 static void delete_target(int fd, char *comp, char *namep); 498 static int wantit(char *argv[], char **namep, char **dirp, char **comp, 532 static void rebuild_comp_path(char *str, char **namep); 533 static int rebuild_lk_comp_path(char *str, char **namep); 2942 char *namep, *dirp, *comp, *linkp; /* for removing absolute paths */ in doxtract() local 2996 if ((want = wantit(argv, &namep, &dirp, &comp, in doxtract() 3023 orig_namep = namep; /* save original */ in doxtract() 3025 namep = real_path; /* use zone path */ in doxtract() 3034 (void) strcpy(&dirname[0], namep); in doxtract() [all …]
|
/titanic_50/usr/src/cmd/ypcmd/ |
H A D | stdhosts.c | 238 char *namep; /* First character of a name */ in verify_and_output() local 286 namep = p; in verify_and_output() 290 namelen = p - namep; in verify_and_output() 307 memcpy(tmpbufp, namep, namelen+1); /* Plus the '\0' */ in verify_and_output()
|
/titanic_50/usr/src/lib/libnisdb/ |
H A D | ldap_xdr.c | 88 nis_name *namep, in xdr_nis_name_abbrev() argument 100 name = *namep; in xdr_nis_name_abbrev() 103 return (xdr_nis_name(xdrs, namep)); in xdr_nis_name_abbrev() 122 if (*namep) { in xdr_nis_name_abbrev() 123 strcpy(*namep, buf); in xdr_nis_name_abbrev() 126 if ((*namep = strdup(buf)) == NULL) in xdr_nis_name_abbrev() 141 if (*namep) { in xdr_nis_name_abbrev() 142 strcpy(*namep, buf); in xdr_nis_name_abbrev() 144 if ((*namep = strdup(buf)) == NULL) in xdr_nis_name_abbrev() 150 return (xdr_nis_name(xdrs, namep)); in xdr_nis_name_abbrev()
|
/titanic_50/usr/src/uts/sun4v/io/ |
H A D | mdeg.c | 361 nname = md_find_name(mdp, clnt->nmatch->namep); in mdeg_notify_client_reg() 624 md_curr_start, clnt->nmatch->namep, clnt->nmatch->matchp); in mdeg_notify_client() 658 nname = md_find_name(md, nspec->namep); in mdeg_find_start_node() 699 if (md_get_prop_val(md, node, prop->namep, &val) != 0) in mdeg_node_spec_match() 710 if (md_get_prop_str(md, node, prop->namep, &str) != 0) in mdeg_node_spec_match() 787 offset = snprintf(buf, len, "%s:{", spec->namep); in mdeg_spec_str() 801 (first) ? "" : ",", prop->namep, prop->ps_val); in mdeg_spec_str() 810 (first) ? "" : ",", prop->namep, prop->ps_str); in mdeg_spec_str() 855 offset = snprintf(buf, len, "%s:{", match->namep); in mdeg_match_str() 866 prop->namep); in mdeg_match_str()
|