Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_dir.c105 if (bcmp(namep, ".", 2) == 0 || bcmp(namep, "..", 3) == 0) { in pc_dirlook()
156 if (PC_NAME_IS_DOT(namep) || PC_NAME_IS_DOTDOT(namep)) { in pc_direnter()
388 char *namep, in pc_dirremove() argument
1039 char *namep, in pc_parsename() argument
1047 c = *namep++; in pc_parsename()
1478 for (; *namep != '\0'; namep++) { in generate_short_name()
1531 if ((&namep[i] == dot) || (namep[i] == '\0')) in generate_short_name()
1534 if (namep[i] == ' ' || namep[i] == '\\') in generate_short_name()
1582 c = *namep; in pc_is_short_file_name()
1590 namep++; in pc_is_short_file_name()
[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()
/illumos-gate/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] == ' '))
/illumos-gate/usr/src/cmd/mdb/sun4v/modules/mdesc/
H A Dmdesc.c83 char *namep; in mdinfo() local
130 mdb_free(namep, namesize); in mdinfo()
140 mdb_free(namep, namesize); in mdinfo()
149 mdb_free(namep, namesize); in mdinfo()
158 mdb_free(namep, namesize); in mdinfo()
210 mdb_free(namep, namesize); in mdinfo()
234 uintptr_t mdp, mdep, namep, datap; in mddump() local
264 namep = mdep + mh.node_blk_sz; in mddump()
265 datap = namep + mh.name_blk_sz; in mddump()
275 mdb_printf("\nname section at %lx:\n", namep); in mddump()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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()
532 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
538 (void) fprintf(stderr, Badline, Cmdp, namep, lineno); in parse_line()
584 Cmdp, namep, lineno); in parse_line()
591 Cmdp, namep, lineno); in parse_line()
601 "ignored\n"), Cmdp, namep, lineno); in parse_line()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c294 char *namep; in snapshot_destroy() local
305 namep = volname; in snapshot_destroy()
309 namep = snapname; in snapshot_destroy()
315 snapshot_release(volname, namep, jname, recursive) != 0) { in snapshot_destroy()
318 namep, errno, libzfs_error_description(zlibh)); in snapshot_destroy()
323 if ((zhp = zfs_open(zlibh, namep, ztype)) == NULL) { in snapshot_destroy()
325 namep); in snapshot_destroy()
338 namep, in snapshot_destroy()
/illumos-gate/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()
997 (void) strcpy(namep, slp); in check_file()
998 if (namep[14] != '.' || namep[29] != '.') { in check_file()
1001 namep[29]); in check_file()
1003 free(namep); in check_file()
1008 if (derive_date(namep, &tme)) { in check_file()
1013 free(namep); in check_file()
1036 free(namep); in check_file()
[all …]
/illumos-gate/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,
/illumos-gate/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;
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c155 if (*namep == '\0') { in ud_dirlook()
160 namelen = strlen(namep); in ud_dirlook()
162 (namep[0] == '.') && (namep[1] == '\0')) { in ud_dirlook()
299 dnlc_enter(dvp, namep, in ud_dirlook()
328 char *namep, in ud_direnter() argument
365 if (namep[0] == '.' && in ud_direnter()
562 namep, ctp); in ud_direnter()
602 char *namep, in ud_dirremove() argument
623 namelen = (int)strlen(namep); in ud_dirremove()
632 if (namep[0] == '.') { in ud_dirremove()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c178 char *namep, in ufs_dirlook() argument
250 if (namep[0] == '.' && namep[1] == '.' && namep[2] == 0) { in ufs_dirlook()
380 namlen = strlen(namep); in ufs_dirlook()
489 if (namlen == 2 && namep[0] == '.' && namep[1] == '.') { in ufs_dirlook()
685 if (namep[0] == '.' && in ufs_direnter_cm()
832 if (namep[0] == '.' && in ufs_direnter_lr()
1766 char *namep, in ufs_diraddentry() argument
2408 char *namep, in ufs_dirremove() argument
2423 namlen = (int)strlen(namep); in ufs_dirremove()
2438 if (namep[0] == '.') { in ufs_dirremove()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/common/ficl/
H A Dloader.c80 char *namep, *name; in ficl_term_putimage() local
110 (void) strncpy(name, namep, names); in ficl_term_putimage()
127 char *namep, *name; in ficl_fb_putimage() local
147 (void) strncpy(name, namep, names); in ficl_fb_putimage()
239 char *namep, *valuep; in ficlSetenv() local
252 (void) strncpy(name, namep, names); in ficlSetenv()
269 char *namep, *valuep; in ficlSetenvq() local
300 char *namep; in ficlGetenv() local
328 char *namep; in ficlUnsetenv() local
397 char *namep, *typep; in ficlFindfile() local
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmdeg.h47 char *namep; member
64 char *namep; member
75 char *namep; member
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mangle_name.c372 char *namep, *buf; in smb_unmangle() local
431 namep = dp->d_name; in smb_unmangle()
434 if (u8_validate(namep, strlen(namep), NULL, in smb_unmangle()
438 smb_mangle(namep, ino, shortname, SMB_SHORTNAMELEN); in smb_unmangle()
440 (void) strlcpy(namebuf, namep, buflen); in smb_unmangle()
H A Dsmb_pathname.c421 char *component, *real_name, *namep; in smb_pathname() local
493 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
519 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
581 namep = rpn.pn_path; in smb_pathname()
583 namep = pn.pn_path; in smb_pathname()
586 namep = smb_pathname_catia_v4tov5(sr, namep, in smb_pathname()
589 fnode = smb_node_lookup(sr, NULL, cred, vp, namep, in smb_pathname()
700 char *namep; in smb_pathname_catia_v5tov4() local
703 namep = smb_vop_catia_v5tov4(name, namebuf, buflen); in smb_pathname_catia_v5tov4()
704 if (strchr(namep, '/') != NULL) in smb_pathname_catia_v5tov4()
[all …]
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c3103 if (checkf(namep, is_directory(namep), Fflag) == 0) { in doxtract()
3211 if (rmdir(namep) < 0) { in doxtract()
3213 (void) unlink(namep); in doxtract()
3252 if (rmdir(namep) < 0) { in doxtract()
3358 namep); in doxtract()
3364 namep, linkp); in doxtract()
4175 if (checkf(namep, is_directory(namep), Fflag) == 0) { in dotable()
5836 *namep); in wantit()
6200 *namep = fullname; in check_prefix()
8958 *namep = real_path; in rebuild_comp_path()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdhosts.c238 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()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdeg.c361 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()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_xdr.c88 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()

1234