Lines Matching refs:pn

436 	pathname_t	pn, rpn, upn, link_pn;  in smb_pathname()  local
475 (void) pn_alloc(&pn); in smb_pathname()
507 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
515 err = smb_pathname_lookup(&pn, &rpn, local_flags, in smb_pathname()
533 if ((err = pn_set(&pn, namep)) != 0) in smb_pathname()
537 err = smb_pathname_lookup(&pn, &rpn, local_flags, in smb_pathname()
597 namep = pn.pn_path; in smb_pathname()
674 (void) pn_free(&pn); in smb_pathname()
686 smb_pathname_lookup(pathname_t *pn, pathname_t *rpn, int flags, in smb_pathname_lookup() argument
705 err = lookuppnvp(pn, rpn, flags, NULL, vp, rootvp, dvp, cred); in smb_pathname_lookup()
764 pathname_t pn; in smb_lookuppathvptovp() local
771 (void) pn_alloc(&pn); in smb_lookuppathvptovp()
773 if (pn_set(&pn, path) == 0) { in smb_lookuppathvptovp()
779 if (lookuppnvp(&pn, NULL, lookup_flags, NULL, &vp, in smb_lookuppathvptovp()
781 pn_free(&pn); in smb_lookuppathvptovp()
786 pn_free(&pn); in smb_lookuppathvptovp()
806 smb_pathname_init(smb_request_t *sr, smb_pathname_t *pn, char *path) in smb_pathname_init() argument
811 bzero(pn, sizeof (smb_pathname_t)); in smb_pathname_init()
812 pn->pn_path = smb_pathname_strdup(sr, path); in smb_pathname_init()
814 smb_pathname_preprocess(sr, pn); in smb_pathname_init()
817 pname = pn->pn_path; in smb_pathname_init()
832 pn->pn_pname = NULL; in smb_pathname_init()
839 pn->pn_pname = in smb_pathname_init()
851 pn->pn_pname = NULL; in smb_pathname_init()
864 pn->pn_fname = smb_pathname_strdup(sr, fname); in smb_pathname_init()
880 pn->pn_fname = NULL; in smb_pathname_init()
887 pn->pn_fname = smb_pathname_strdup(sr, fname); in smb_pathname_init()
911 pn->pn_sname = smb_pathname_strdup(sr, sname); in smb_pathname_init()
912 pn->pn_stype = strchr(pn->pn_sname + 1, ':'); in smb_pathname_init()
913 if (pn->pn_stype) { in smb_pathname_init()
914 (void) smb_strupr(pn->pn_stype); in smb_pathname_init()
916 len = strlen(pn->pn_sname); in smb_pathname_init()
917 pn->pn_sname = smb_pathname_strcat(sr, pn->pn_sname, ":$DATA"); in smb_pathname_init()
918 pn->pn_stype = pn->pn_sname + len; in smb_pathname_init()
920 ++pn->pn_stype; in smb_pathname_init()
935 smb_pathname_preprocess(smb_request_t *sr, smb_pathname_t *pn) in smb_pathname_preprocess() argument
940 if (strlen(pn->pn_path) == 0) { in smb_pathname_preprocess()
941 pn->pn_path = smb_pathname_strdup(sr, "\\"); in smb_pathname_preprocess()
946 smb_convert_wildcards(pn->pn_path); in smb_pathname_preprocess()
949 (void) strsubst(pn->pn_path, '/', '\\'); in smb_pathname_preprocess()
951 (void) strcanon(pn->pn_path, "\\"); in smb_pathname_preprocess()
954 p = pn->pn_path + strlen(pn->pn_path) - 1; in smb_pathname_preprocess()
955 if ((p != pn->pn_path) && (*p == '\\')) in smb_pathname_preprocess()
958 smb_pathname_preprocess_quota(sr, pn); in smb_pathname_preprocess()
959 smb_pathname_preprocess_adminshare(sr, pn); in smb_pathname_preprocess()
971 smb_pathname_preprocess_quota(smb_request_t *sr, smb_pathname_t *pn) in smb_pathname_preprocess_quota() argument
981 p = pn->pn_path; in smb_pathname_preprocess_quota()
992 slash = (pn->pn_path[0] == '\\') ? "\\" : ""; in smb_pathname_preprocess_quota()
993 len = strlen(pn->pn_path) + 2; in smb_pathname_preprocess_quota()
994 pn->pn_path = smb_srm_alloc(sr, len); in smb_pathname_preprocess_quota()
995 (void) snprintf(pn->pn_path, len, "%s%s%s", slash, new_name, p); in smb_pathname_preprocess_quota()
996 (void) smb_strupr(pn->pn_path); in smb_pathname_preprocess_quota()
1005 smb_pathname_preprocess_adminshare(smb_request_t *sr, smb_pathname_t *pn) in smb_pathname_preprocess_adminshare() argument
1008 (void) smb_strlwr(pn->pn_path); in smb_pathname_preprocess_adminshare()
1073 smb_pathname_validate(smb_request_t *sr, smb_pathname_t *pn) in smb_pathname_validate() argument
1075 char *path = pn->pn_path; in smb_pathname_validate()
1088 if (pn->pn_pname && smb_contains_wildcards(pn->pn_pname)) { in smb_pathname_validate()
1095 if (pn->pn_fname && (strcmp(pn->pn_fname, ".") == 0)) { in smb_pathname_validate()
1116 smb_validate_dirname(smb_request_t *sr, smb_pathname_t *pn) in smb_validate_dirname() argument
1119 char *path = pn->pn_path; in smb_validate_dirname()
1131 if (pn->pn_sname) in smb_validate_dirname()
1132 return (smb_validate_stream_name(sr, pn)); in smb_validate_dirname()
1152 smb_validate_object_name(smb_request_t *sr, smb_pathname_t *pn) in smb_validate_object_name() argument
1154 if (pn->pn_fname && in smb_validate_object_name()
1155 strlen(pn->pn_fname) == 5 && in smb_validate_object_name()
1156 smb_isdigit(pn->pn_fname[3]) && in smb_validate_object_name()
1157 pn->pn_fname[4] == ':') { in smb_validate_object_name()
1163 if (pn->pn_sname) in smb_validate_object_name()
1164 return (smb_validate_stream_name(sr, pn)); in smb_validate_object_name()
1287 smb_validate_stream_name(smb_request_t *sr, smb_pathname_t *pn) in smb_validate_stream_name() argument
1296 ASSERT(pn); in smb_validate_stream_name()
1297 ASSERT(pn->pn_sname); in smb_validate_stream_name()
1299 if (pn->pn_stype != NULL) { in smb_validate_stream_name()
1301 if (strcasecmp(pn->pn_stype, strmtype[i]) == 0) in smb_validate_stream_name()