/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | metaconf.c | 141 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 D | lookup.c | 259 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 D | fake_lookup.c | 303 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 D | misc_link_i386.c | 575 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 D | lookup.c | 453 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 D | smb_pathname.c | 1109 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 D | cfga_sata.c | 257 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 D | dfs.c | 870 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 D | ri_init.c | 1550 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 D | sdev_subr.c | 2732 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);
|