Searched defs:linkpath (Results 1 - 10 of 10) sorted by relevance

/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dmetaconf.c141 char linkpath[PATH_MAX]; local
183 if (readlink(targname, linkpath,
184 sizeof (linkpath)) == -1) {
191 if (stat(strstr(linkpath, "/devices"),
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dlookup.c259 struct st_pathname linkpath; local
263 linkpath.pn_buf = &path_tmp[0];
290 stpn_get(pathp, &linkpath);
292 if (stpn_pathleft(&linkpath) == 0)
293 (void) stpn_set(&linkpath, ".");
294 error = stpn_combine(pnp, &linkpath); /* linkpath before pn */
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c303 struct pathname linkpath; local
309 pn_alloc(&linkpath);
310 if (error = pn_getsymlink(cvp, &linkpath, cr)) {
311 pn_free(&linkpath);
315 if (pn_pathleft(&linkpath) == 0)
316 (void) pn_set(&linkpath, ".");
317 error = pn_insert(pnp, &linkpath, strlen(component));
318 pn_free(&linkpath);
/illumos-gate/usr/src/cmd/devfsadm/i386/
H A Dmisc_link_i386.c575 char linkpath[PATH_MAX]; local
589 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc");
591 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u",
594 (void) snprintf(linkpath, sizeof (linkpath), "mc/mc%u",
597 (void) devfsadm_mklink(linkpath, node, minor, 0);
/illumos-gate/usr/src/uts/common/fs/
H A Dlookup.c453 struct pathname linkpath; local
459 pn_alloc(&linkpath);
460 if (error = pn_getsymlink(cvp, &linkpath, cr)) {
461 pn_free(&linkpath);
466 audit_symlink(pnp, &linkpath);
468 if (pn_pathleft(&linkpath) == 0)
469 (void) pn_set(&linkpath, ".");
470 error = pn_insert(pnp, &linkpath, strlen(component));
471 pn_free(&linkpath);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c1109 char *linkpath; local
1123 linkpath = unc.unc_path;
1124 (void) snprintf(path, pathsz, "/%s", (linkpath) ? linkpath : "");
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c257 char *linkpath; local
279 linkpath = malloc(PATH_MAX);
288 if (dep == NULL || linkpath == NULL || buf == NULL ||
306 (void) snprintf(linkpath, MAXPATHLEN,
309 if (lstat(linkpath, &sb) < 0)
314 if ((rv = physpath_to_devlink(linkpath, node_path,
326 if (readlink(linkpath, buf, PATH_MAX) < 0)
346 *logpp = strdup(linkpath);
358 free(linkpath);
377 if (linkpath)
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c870 char linkpath[DFS_PATH_MAX]; local
901 linkpath, DFS_PATH_MAX)) {
906 status = dfs_link_getinfo(linkpath, referrals, DFS_INFO_ALL);
1051 * the full path is returned in 'linkpath'
1055 char *linkpath, size_t bufsz)
1064 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath);
1067 if (dfs_link_stat(linkpath, &stat) != ERROR_SUCCESS)
1077 (void) snprintf(linkpath, bufsz, "%s/%s", rootdir, relpath);
1054 dfs_namespace_findlink(const char *name, char *relpath, char *linkpath, size_t bufsz) argument
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Dri_init.c1550 const char *linkpath; local
1554 if ((linkpath = di_devlink_path(devlink)) == NULL) {
1559 dprintf((stderr, "devinfo_devlink_walk: %s\n", linkpath));
1562 if (add_lookup_entry(di_arg->table, linkpath, di_arg->node)) {
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2732 struct pathname linkpath; local
2733 pn_alloc(&linkpath);
2734 if (error = pn_getsymlink(cvp, &linkpath, kcred)) {
2735 pn_free(&linkpath);
2738 if (pn_pathleft(&linkpath) == 0)
2739 (void) pn_set(&linkpath, ".");
2740 error = pn_insert(&pn, &linkpath, strlen(nm));
2741 pn_free(&linkpath);

Completed in 67 milliseconds