/titanic_41/usr/src/stand/lib/fs/nfs/ |
H A D | lookup.c | 259 struct st_pathname linkpath; in stlookuppn() local 263 linkpath.pn_buf = &path_tmp[0]; in stlookuppn() 290 stpn_get(pathp, &linkpath); in stlookuppn() 292 if (stpn_pathleft(&linkpath) == 0) in stlookuppn() 293 (void) stpn_set(&linkpath, "."); in stlookuppn() 294 error = stpn_combine(pnp, &linkpath); /* linkpath before pn */ in stlookuppn()
|
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_lookup.c | 303 struct pathname linkpath; in lookuppnvp() local 309 pn_alloc(&linkpath); in lookuppnvp() 310 if (error = pn_getsymlink(cvp, &linkpath, cr)) { in lookuppnvp() 311 pn_free(&linkpath); in lookuppnvp() 315 if (pn_pathleft(&linkpath) == 0) in lookuppnvp() 316 (void) pn_set(&linkpath, "."); in lookuppnvp() 317 error = pn_insert(pnp, &linkpath, strlen(component)); in lookuppnvp() 318 pn_free(&linkpath); in lookuppnvp()
|
/titanic_41/usr/src/lib/lvm/libsvm/common/ |
H A D | metaconf.c | 141 char linkpath[PATH_MAX]; in write_xlate_to_mdconf() local 183 if (readlink(targname, linkpath, in write_xlate_to_mdconf() 184 sizeof (linkpath)) == -1) { in write_xlate_to_mdconf() 191 if (stat(strstr(linkpath, "/devices"), in write_xlate_to_mdconf()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | rules.c | 440 mk_base_dir(char *path, char *linkpath) in mk_base_dir() argument 450 if (*linkpath == '/') { in mk_base_dir() 451 strcpy(pathb, linkpath); in mk_base_dir() 466 if (strncmp(linkpath, "../", 3) == 0) { in mk_base_dir() 471 strcat(pathb, &linkpath[3]); in mk_base_dir() 476 strcat(pathb, linkpath); in mk_base_dir()
|
/titanic_41/usr/src/cmd/devfsadm/i386/ |
H A D | misc_link_i386.c | 575 char linkpath[PATH_MAX]; in mc_node() local 589 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc"); in mc_node() 591 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node() 594 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node() 597 (void) devfsadm_mklink(linkpath, node, minor, 0); in mc_node()
|
/titanic_41/usr/src/uts/common/fs/ |
H A D | lookup.c | 454 struct pathname linkpath; in lookuppnvp() local 460 pn_alloc(&linkpath); in lookuppnvp() 461 if (error = pn_getsymlink(cvp, &linkpath, cr)) { in lookuppnvp() 462 pn_free(&linkpath); in lookuppnvp() 467 audit_symlink(pnp, &linkpath); in lookuppnvp() 469 if (pn_pathleft(&linkpath) == 0) in lookuppnvp() 470 (void) pn_set(&linkpath, "."); in lookuppnvp() 471 error = pn_insert(pnp, &linkpath, strlen(component)); in lookuppnvp() 472 pn_free(&linkpath); in lookuppnvp()
|
/titanic_41/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 257 char *linkpath; in physpath_to_devlink() local 279 linkpath = malloc(PATH_MAX); in physpath_to_devlink() 288 if (dep == NULL || linkpath == NULL || buf == NULL || in physpath_to_devlink() 306 (void) snprintf(linkpath, MAXPATHLEN, in physpath_to_devlink() 309 if (lstat(linkpath, &sb) < 0) in physpath_to_devlink() 314 if ((rv = physpath_to_devlink(linkpath, node_path, in physpath_to_devlink() 326 if (readlink(linkpath, buf, PATH_MAX) < 0) in physpath_to_devlink() 346 *logpp = strdup(linkpath); in physpath_to_devlink() 358 free(linkpath); in physpath_to_devlink() 377 if (linkpath) in physpath_to_devlink() [all …]
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_pathname.c | 1090 char *linkpath; in smb_pathname_dfs_preprocess() local 1104 linkpath = unc.unc_path; in smb_pathname_dfs_preprocess() 1105 (void) snprintf(path, pathsz, "/%s", (linkpath) ? linkpath : ""); in smb_pathname_dfs_preprocess()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | fsck.c | 949 char linkpath[MAXPATHLEN]; in process_fsdir() local 975 sprintf(linkpath, "%s/%s", cachedirp, namep); in process_fsdir() 978 xx = readlink(linkpath, buf, sizeof (buf)); in process_fsdir() 980 pr_err(gettext("Unable to read link %s: %s"), linkpath, in process_fsdir() 1191 xx = unlink(linkpath); in process_fsdir() 1193 pr_err(gettext("Unable to remove %s: %s"), linkpath, in process_fsdir()
|
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | dfs.c | 871 char linkpath[DFS_PATH_MAX]; in dfs_get_referrals() local 902 linkpath, DFS_PATH_MAX)) { in dfs_get_referrals() 907 status = dfs_link_getinfo(linkpath, referrals, DFS_INFO_ALL); in dfs_get_referrals() 1056 char *linkpath, size_t bufsz) in dfs_namespace_findlink() argument 1065 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); in dfs_namespace_findlink() 1068 if (dfs_link_stat(linkpath, &stat) != ERROR_SUCCESS) in dfs_namespace_findlink() 1078 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); in dfs_namespace_findlink()
|
/titanic_41/usr/src/tools/onbld/Scm/ |
H A D | Backup.py | 845 linkpath = os.path.join(self.backupdir, 'latest') 847 if os.path.lexists(linkpath): 848 os.unlink(linkpath) 850 os.symlink(str(gen), linkpath)
|
/titanic_41/usr/src/uts/common/fs/dev/ |
H A D | sdev_subr.c | 2736 struct pathname linkpath; in sdev_modctl_lookup() local 2737 pn_alloc(&linkpath); in sdev_modctl_lookup() 2738 if (error = pn_getsymlink(cvp, &linkpath, kcred)) { in sdev_modctl_lookup() 2739 pn_free(&linkpath); in sdev_modctl_lookup() 2742 if (pn_pathleft(&linkpath) == 0) in sdev_modctl_lookup() 2743 (void) pn_set(&linkpath, "."); in sdev_modctl_lookup() 2744 error = pn_insert(&pn, &linkpath, strlen(nm)); in sdev_modctl_lookup() 2745 pn_free(&linkpath); in sdev_modctl_lookup()
|
/titanic_41/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 1551 const char *linkpath; in devinfo_devlink_walk() local 1555 if ((linkpath = di_devlink_path(devlink)) == NULL) { in devinfo_devlink_walk() 1560 dprintf((stderr, "devinfo_devlink_walk: %s\n", linkpath)); in devinfo_devlink_walk() 1563 if (add_lookup_entry(di_arg->table, linkpath, di_arg->node)) { in devinfo_devlink_walk()
|