Home
last modified time | relevance | path

Searched refs:linkpath (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/devfsadm/i386/
H A Dmisc_link_i386.c347 char linkpath[PATH_MAX]; in mc_node() local
361 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc"); in mc_node()
363 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node()
366 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u", in mc_node()
369 (void) devfsadm_mklink(linkpath, node, minor, 0); in mc_node()
387 char linkpath[PATH_MAX]; in ppt() local
389 (void) snprintf(linkpath, sizeof (linkpath), "ppt%d", in ppt()
392 (void) devfsadm_mklink(linkpath, node, minor, 0); in ppt()
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dlookup.c259 struct st_pathname linkpath; in stlookuppn() local
263 linkpath.pn_buf = &path_tmp[0]; in stlookuppn()
290 (void) 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()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c389 struct pathname linkpath; in lookuppnvp() local
395 pn_alloc(&linkpath); in lookuppnvp()
396 if ((error = pn_getsymlink(cvp, &linkpath, cr)) != 0) { in lookuppnvp()
397 pn_free(&linkpath); in lookuppnvp()
401 if (pn_pathleft(&linkpath) == 0) in lookuppnvp()
402 (void) pn_set(&linkpath, "."); in lookuppnvp()
403 error = pn_insert(pnp, &linkpath, strlen(component)); in lookuppnvp()
404 pn_free(&linkpath); in lookuppnvp()
/illumos-gate/usr/src/uts/common/fs/
H A Dlookup.c459 struct pathname linkpath; in lookuppnvp() local
465 pn_alloc(&linkpath); in lookuppnvp()
466 if (error = pn_getsymlink(cvp, &linkpath, cr)) { in lookuppnvp()
467 pn_free(&linkpath); in lookuppnvp()
472 audit_symlink(pnp, &linkpath); in lookuppnvp()
474 if (pn_pathleft(&linkpath) == 0) in lookuppnvp()
475 (void) pn_set(&linkpath, "."); in lookuppnvp()
476 error = pn_insert(pnp, &linkpath, strlen(component)); in lookuppnvp()
477 pn_free(&linkpath); in lookuppnvp()
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c259 char *linkpath; in physpath_to_devlink() local
281 linkpath = malloc(PATH_MAX); in physpath_to_devlink()
290 if (dep == NULL || linkpath == NULL || buf == NULL || in physpath_to_devlink()
308 (void) snprintf(linkpath, MAXPATHLEN, in physpath_to_devlink()
311 if (lstat(linkpath, &sb) < 0) in physpath_to_devlink()
316 if ((rv = physpath_to_devlink(linkpath, node_path, in physpath_to_devlink()
328 if (readlink(linkpath, buf, PATH_MAX) < 0) in physpath_to_devlink()
348 *logpp = strdup(linkpath); in physpath_to_devlink()
360 free(linkpath); in physpath_to_devlink()
379 if (linkpath) in physpath_to_devlink()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c870 char linkpath[DFS_PATH_MAX]; in dfs_get_referrals() local
901 linkpath, DFS_PATH_MAX)) { in dfs_get_referrals()
906 status = dfs_link_getinfo(linkpath, referrals, DFS_INFO_ALL); in dfs_get_referrals()
1055 char *linkpath, size_t bufsz) in dfs_namespace_findlink() argument
1064 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); in dfs_namespace_findlink()
1067 if (dfs_link_stat(linkpath, &stat) != ERROR_SUCCESS) in dfs_namespace_findlink()
1077 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath); in dfs_namespace_findlink()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c1326 char *linkpath; in smb_pathname_dfs_preprocess() local
1340 linkpath = unc.unc_path; in smb_pathname_dfs_preprocess()
1341 (void) snprintf(path, pathsz, "/%s", (linkpath) ? linkpath : ""); in smb_pathname_dfs_preprocess()
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2600 struct pathname linkpath; in sdev_modctl_lookup() local
2601 pn_alloc(&linkpath); in sdev_modctl_lookup()
2602 if (error = pn_getsymlink(cvp, &linkpath, kcred)) { in sdev_modctl_lookup()
2603 pn_free(&linkpath); in sdev_modctl_lookup()
2606 if (pn_pathleft(&linkpath) == 0) in sdev_modctl_lookup()
2607 (void) pn_set(&linkpath, "."); in sdev_modctl_lookup()
2608 error = pn_insert(&pn, &linkpath, strlen(nm)); in sdev_modctl_lookup()
2609 pn_free(&linkpath); in sdev_modctl_lookup()
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Dri_init.c1550 const char *linkpath; in devinfo_devlink_walk() local
1554 if ((linkpath = di_devlink_path(devlink)) == NULL) { in devinfo_devlink_walk()
1559 dprintf((stderr, "devinfo_devlink_walk: %s\n", linkpath)); in devinfo_devlink_walk()
1562 if (add_lookup_entry(di_arg->table, linkpath, di_arg->node)) { in devinfo_devlink_walk()