Searched refs:pn_path (Results 1 - 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dpathname.c70 pnp->pn_path = (char *)pnp->pn_buf;
83 bcopy(str, pnp->pn_path, strlen(str));
94 pnp->pn_path = pnp->pn_buf;
95 pnp->pn_pathlen = strlen(pnp->pn_path); /* don't count null byte */
96 bcopy(pnp->pn_path, path, pnp->pn_pathlen);
113 bcopy(pnp->pn_path, pnp->pn_buf + sympnp->pn_pathlen,
115 bcopy(sympnp->pn_path, pnp->pn_buf, (uint_t)sympnp->pn_pathlen);
118 pnp->pn_path = pnp->pn_buf;
136 cp = pnp->pn_path;
146 pnp->pn_path
[all...]
H A Dst_pathname.h45 char *pn_path; /* remaining pathname */ member in struct:st_pathname
55 *((PNP)->pn_path) : (char)0)
57 #define stpn_getpath(PNP) ((PNP)->pn_path)
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c80 pnp->pn_path = pnp->pn_buf = kmem_alloc(sz, KM_SLEEP);
93 pnp->pn_path = pnp->pn_buf = NULL;
109 pnp->pn_path = pnp->pn_buf = buf;
112 error = copyinstr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
114 error = copystr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
147 pnp->pn_path = pnp->pn_buf;
148 error = copystr(path, pnp->pn_path, pnp->pn_bufsize, &pnp->pn_pathlen);
168 if (*sympnp->pn_path == '/') {
175 ovbcopy(pnp->pn_path, pnp->pn_buf + sympnp->pn_pathlen,
177 bcopy(sympnp->pn_path, pn
[all...]
H A Dlookup.c160 if (pnp->pn_path[0] == '/') {
171 if (pnp->pn_path[0] == '/') {
173 pnp->pn_path++;
175 } while (pnp->pn_path[0] == '/');
481 if (pnp->pn_path[0] == '/') {
483 pnp->pn_path++;
485 } while (pnp->pn_path[0] == '/');
511 strncmp(rpnp->pn_path+rpnp->pn_pathlen-3, "/..", 3) == 0) ||
513 strncmp(rpnp->pn_path, "..", 2) == 0))) {
515 rpnp->pn_path[rpn
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_rename.c69 rc = smbsr_decode_data(sr, "%SS", sr, &src_fqi->fq_path.pn_path,
70 &dst_fqi->fq_path.pn_path);
101 smb_pathname_init(sr, src_pn, src_pn->pn_path);
102 smb_pathname_init(sr, dst_pn, dst_pn->pn_path);
143 &src_fqi->fq_path.pn_path, &dst_fqi->fq_path.pn_path);
174 smb_pathname_init(sr, src_pn, src_pn->pn_path);
175 smb_pathname_init(sr, dst_pn, dst_pn->pn_path);
181 if (smb_contains_wildcards(src_pn->pn_path)) {
H A Dsmb_trans2_create_directory.c72 if (smb_mbc_decodef(&xa->req_param_mb, "%4.u", sr, &pn->pn_path) != 0)
75 smb_pathname_init(sr, pn, pn->pn_path);
H A Dsmb_create.c45 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
87 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
129 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
159 op->fqi.fq_path.pn_path, name);
160 op->fqi.fq_path.pn_path = buf;
189 op->fqi.fq_path.pn_path);
H A Dsmb_pathname.c286 (void) strlcpy(last_component, ppn.pn_path, MAXNAMELEN);
287 ppn.pn_path[0] = '\0';
319 char *p = mnt_pn.pn_path;
330 (void) strlcpy(last_component, mnt_pn.pn_path,
332 mnt_pn.pn_path[0] = '\0';
569 if (upn.pn_path[0] == '/') {
579 if (strcmp(rpn.pn_path, "/") != 0)
581 namep = rpn.pn_path;
583 namep = pn.pn_path;
599 while (upn.pn_path[
[all...]
H A Dsmb_directory.c60 &sr->arg.dirop.fqi.fq_path.pn_path);
85 smb_pathname_init(sr, pn, pn->pn_path);
120 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path,
206 &sr->arg.dirop.fqi.fq_path.pn_path);
236 smb_pathname_init(sr, &fqi->fq_path, fqi->fq_path.pn_path);
242 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path,
356 &sr->arg.dirop.fqi.fq_path.pn_path);
388 if (pn->pn_path[0] == '\0') {
393 smb_pathname_init(sr, pn, pn->pn_path);
399 path = pn->pn_path;
[all...]
H A Dsmb_find.c251 rc = smbsr_decode_data(sr, "%Abw", sr, &pn->pn_path, &type, &key_len);
255 smb_pathname_init(sr, pn, pn->pn_path);
257 smb_is_stream_name(pn->pn_path)) {
278 1, 0, VAR_BCC, 5, 0, 0, pn->pn_path+1,
296 status = smb_odir_openpath(sr, pn->pn_path, sattr, 0, &od);
432 rc = smbsr_decode_data(sr, "%Abw", sr, &pn->pn_path, &type, &key_len);
439 smb_pathname_init(sr, pn, pn->pn_path);
443 if (smb_is_stream_name(pn->pn_path)) {
454 status = smb_odir_openpath(sr, pn->pn_path, sattr, 0, &od);
649 if ((smbsr_decode_data(sr, "%AV", sr, &pn->pn_path, vd
[all...]
H A Dsmb_open_andx.c228 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
253 op->fqi.fq_path.pn_path);
344 rc = smbsr_decode_data(sr, "%u", sr, &op->fqi.fq_path.pn_path);
394 op->fqi.fq_path.pn_path);
520 &creation_time, &op->ofun, &alloc_size, &op->fqi.fq_path.pn_path);
552 op->fqi.fq_path.pn_path);
H A Dsmb_cmn_rename.c106 path = dst_fqi->fq_path.pn_path;
350 char *src_path = src_fqi->fq_path.pn_path;
351 char *dst_path = dst_fqi->fq_path.pn_path;
440 path = dst_fqi->fq_path.pn_path;
443 if (smb_is_stream_name(src_fqi->fq_path.pn_path) ||
444 smb_is_stream_name(dst_fqi->fq_path.pn_path)) {
550 if (smb_is_stream_name(src_fqi->fq_path.pn_path))
555 path = src_fqi->fq_path.pn_path;
H A Dsmb_delete.c105 rc = smbsr_decode_data(sr, "%S", sr, &fqi->fq_path.pn_path);
155 smb_pathname_init(sr, pn, pn->pn_path);
163 rc = smb_pathname_reduce(sr, sr->user_cr, fqi->fq_path.pn_path,
297 status = smb_odir_openpath(sr, fqi->fq_path.pn_path,
H A Dsmb_trans2_find.c304 &pn->pn_path) != 0) {
308 smb_pathname_init(sr, pn, pn->pn_path);
312 if (smb_is_stream_name(pn->pn_path)) {
328 status = smb_odir_openpath(sr, pn->pn_path, sattr, odir_flags, &od);
H A Dsmb_set_fileinfo.c115 sr, &infolev, &fqi->fq_path.pn_path) != 0)
152 if (smbsr_decode_data(sr, "%S", sr, &fqi->fq_path.pn_path) != 0)
284 smb_pathname_init(sr, pn, pn->pn_path);
289 rc = smb_pathname_reduce(sr, sr->user_cr, pn->pn_path,
H A Dsmb_print.c74 op->fqi.fq_path.pn_path = path;
131 op->fqi.fq_path.pn_path);
H A Dsmb_nt_create_andx.c196 op->fqi.fq_path.pn_path = "\\";
203 &op->fqi.fq_path.pn_path);
H A Dsmb_nt_transact_create.c87 op->fqi.fq_path.pn_path = "\\";
94 sr, NameLength, &op->fqi.fq_path.pn_path);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c327 if (pnp->pn_path[0] == '/') {
329 pnp->pn_path++;
331 } while (pnp->pn_path[0] == '/');
355 strncmp(rpnp->pn_path+rpnp->pn_pathlen-3, "/..", 3) == 0) ||
357 strncmp(rpnp->pn_path, "..", 2) == 0))) {
359 rpnp->pn_path[rpnp->pn_pathlen-1] != '/')
363 rpnp->pn_path[rpnp->pn_pathlen] = '\0';
366 rpnp->pn_path[rpnp->pn_pathlen-1] != '/')
367 rpnp->pn_path[rpnp->pn_pathlen++] = '/';
374 rpnp->pn_path
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dresolvepath.c51 if (copyout(resolvepn.pn_path, buf, count))
H A Dumount.c160 (vfsp = vfs_mntpoint2vfsp(pn.pn_path)) == NULL) {
164 if (error = lookupname(pn.pn_path, UIO_SYSSPACE, FOLLOW,
H A Dsymlink.c94 error = VOP_SYMLINK(dvp, lpn.pn_path, &vattr,
97 audit_symlink_create(dvp, lpn.pn_path,
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_lookup.c80 pn.pn_path = path;
102 pn.pn_path = p;
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dsmb.d105 soa_name = (P->arg.dirop.fqi.fq_path.pn_path == NULL) ? "<NULL>" :
106 P->arg.dirop.fqi.fq_path.pn_path;
119 soa_name = (P->arg.open.fqi.fq_path.pn_path == NULL) ? "<NULL>" :
120 P->arg.open.fqi.fq_path.pn_path;
/illumos-gate/usr/src/uts/common/sys/
H A Dpathname.h56 * do so by changing pn_path and pn_pathlen. pn_pathlen is redundant
62 char *pn_path; /* remaining pathname */ member in struct:pathname

Completed in 81 milliseconds

123