Home
last modified time | relevance | path

Searched refs:rpath (Results 1 – 25 of 31) sorted by relevance

12

/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Delfrd.c108 static struct libpath *rpath, hd_rpath; in get_share_obj() local
139 rpath = &hd_rpath; in get_share_obj()
141 printf("dbg: rpath = %x\n", rpath); in get_share_obj()
143 rpath->lp_path = " "; in get_share_obj()
144 rpath->lp_next = (struct libpath *)0; in get_share_obj()
145 rpath->lp_level = 0; in get_share_obj()
231 rpath = stk_libpath(rpath, name, depth); in get_share_obj()
266 rpath, pathtmp); in get_share_obj()
348 while (rpath->lp_level > depth) { in get_share_obj()
350 printf("ret: rpath->lp_level = %d\n", rpath->lp_level); in get_share_obj()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/mp/
H A Dmp_fopen.c91 char *rpath; local
95 rpath = NULL;
141 DB_APP_DATA, NULL, path, 0, NULL, &rpath)) != 0)
143 if ((ret = __db_open(rpath,
146 __db_err(dbenv, "%s: %s", rpath, strerror(ret));
163 if ((ret = __os_ioinfo(rpath,
165 __db_err(dbenv, "%s: %s", rpath, strerror(ret));
173 rpath);
191 if ((ret = __os_fileid(dbenv, rpath, 0, idbuf)) != 0)
264 if (__db_mapfile(rpath,
[all …]
H A Dmp_bh.c555 char *rpath; local
576 NULL, R_ADDR(dbmp, mfp->path_off), 0, NULL, &rpath)) != 0)
578 if (__db_open(rpath, 0, 0, 0, &fd) != 0) {
588 __os_freestr(rpath);
/titanic_41/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_bargs.c101 char rpath[BOOTARGS_MAX]; in barg2bootargs() local
133 if ((rc = resolvepath(path, rpath, sizeof (rpath))) == -1) in barg2bootargs()
136 rpath[rc] = 0; in barg2bootargs()
137 if (strcmp(rpath, path) != 0) in barg2bootargs()
140 rc = get_kernel_fd(rpath, &fbarg->gba_kernel_fd); in barg2bootargs()
/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr2.c218 char *p, *rpath; in smbfs_node_findcreate() local
235 rpath = tmpbuf; in smbfs_node_findcreate()
238 rpath = kmem_alloc(rpalloc, KM_SLEEP); in smbfs_node_findcreate()
240 p = rpath; in smbfs_node_findcreate()
249 ASSERT(p == rpath + rplen); in smbfs_node_findcreate()
256 np = sn_hashfind(mi, rpath, rplen, NULL); in smbfs_node_findcreate()
258 np = make_smbnode(mi, rpath, rplen, &newnode); in smbfs_node_findcreate()
262 kmem_free(rpath, rpalloc); in smbfs_node_findcreate()
316 const char *rpath, in make_smbnode() argument
331 np = sn_hashfind(mi, rpath, rplen, NULL); in make_smbnode()
[all …]
H A Dsmbfs_node.c94 smbfs_gethash(const char *rpath, int rplen) in smbfs_gethash() argument
98 v = smbfs_hash(FNV1_32_INIT, rpath, rplen); in smbfs_gethash()
H A Dsmbfs_subr.h259 uint32_t smbfs_gethash(const char *rpath, int prlen);
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c799 char *path, rpath[MAXPATHLEN]; in mnt_pathconf() local
817 if (realpath(path, rpath) == NULL) { in mnt_pathconf()
834 p.pc_link_max = pathconf(rpath, _PC_LINK_MAX); in mnt_pathconf()
837 p.pc_name_max = pathconf(rpath, _PC_NAME_MAX); in mnt_pathconf()
840 p.pc_path_max = pathconf(rpath, _PC_PATH_MAX); in mnt_pathconf()
843 if (pathconf(rpath, _PC_NO_TRUNC) == 1) in mnt_pathconf()
845 if (pathconf(rpath, _PC_CHOWN_RESTRICTED) == 1) in mnt_pathconf()
861 checkrootmount(share_t *sh, char *rpath) in checkrootmount() argument
867 if (strcmp(sh->sh_path, rpath) != 0) in checkrootmount()
896 mount_enoent_error(struct cln *cln, char *path, char *rpath, int *flavor_list) in mount_enoent_error() argument
[all …]
/titanic_41/usr/src/cmd/fstyp/
H A Dfstyp.c222 char *rpath; in getexecpathname() local
226 rpath = malloc(size); in getexecpathname()
228 if ((path == NULL) || (rpath == NULL) || (cwd == NULL)) { in getexecpathname()
238 if (realpath(path, rpath) == NULL) { in getexecpathname()
239 free(rpath); in getexecpathname()
240 rpath = NULL; in getexecpathname()
250 return (rpath); in getexecpathname()
/titanic_41/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c288 char *rpath; in physpath2node() local
297 if ((rpath = malloc(strlen(physpath) + 1)) == NULL) in physpath2node()
300 (void) strcpy(rpath, physpath); in physpath2node()
304 if (strncmp(rpath, DEVICES_DIR SLASH, len + strlen(SLASH)) == 0) { in physpath2node()
305 (void) memmove(rpath, rpath + len, in physpath2node()
306 strlen(rpath + len) + 1); in physpath2node()
310 if ((cp = GET_DYN(rpath)) != NULL) { in physpath2node()
315 if ((cp = strrchr(rpath, ':')) == NULL) { in physpath2node()
316 free(rpath); in physpath2node()
323 DBG(1, ("rpath=%s,cp=%s\n", rpath, cp)); in physpath2node()
[all …]
/titanic_41/usr/src/cmd/devfsadm/
H A Ddevalloc.c66 char rpath[MAXPATHLEN + 4]; /* for ",raw" */ in _da_check_for_usb() local
77 if ((p = realpath(path, rpath)) == NULL) { in _da_check_for_usb()
81 p = rpath; in _da_check_for_usb()
83 (void) snprintf(path, dstsize, "%s%s", rpath, ",raw"); in _da_check_for_usb()
/titanic_41/usr/src/cmd/zoneadm/
H A Dzoneadm.c865 char rpath[MAXPATHLEN]; /* resolved path */ in crosscheck_zonepaths() local
898 res = resolvepath(path_copy, rpath, sizeof (rpath)); in crosscheck_zonepaths()
911 rpath[res] = '\0'; in crosscheck_zonepaths()
913 (void) snprintf(rpath_copy, sizeof (rpath_copy), "%s/", rpath); in crosscheck_zonepaths()
922 target_zone, path, ze->zone_name, rpath); in crosscheck_zonepaths()
939 char rpath[MAXPATHLEN]; /* resolved path */ in validate_zonepath() local
950 if ((res = resolvepath(path, rpath, sizeof (rpath))) == -1) { in validate_zonepath()
996 rpath[res] = '\0'; in validate_zonepath()
997 if (strcmp(path, rpath) != 0) { in validate_zonepath()
1002 if ((res = stat(rpath, &stbuf)) != 0) { in validate_zonepath()
[all …]
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dldmain.c286 char *rpath; in ld_main() local
288 if (((rpath = getenv(MSG_ORIG(MSG_LD_RUN_PATH))) != NULL) && in ld_main()
289 rpath[0]) in ld_main()
290 ofl->ofl_rpath = rpath; in ld_main()
H A Dfiles.c2120 char *str, *rpath = NULL; in process_dynamic() local
2139 if ((rpath = str + (size_t)dyn->d_un.d_val) == NULL) in process_dynamic()
2187 if (rpath && (sdf->sdf_rpath == NULL)) in process_dynamic()
2188 sdf->sdf_rpath = rpath; in process_dynamic()
3636 char *rpath, *next; in ld_finish_libs() local
3638 rpath = libld_malloc(strlen(sdf->sdf_rpath) + 1); in ld_finish_libs()
3639 if (rpath == NULL) in ld_finish_libs()
3641 (void) strcpy(rpath, sdf->sdf_rpath); in ld_finish_libs()
3642 DBG_CALL(Dbg_libs_path(ofl->ofl_lml, rpath, in ld_finish_libs()
3644 if ((path = strtok_r(rpath, in ld_finish_libs()
/titanic_41/usr/src/cmd/mailx/
H A Doptim.c627 char path[STSIZ], rpath[STSIZ]; in optim1() local
651 nstrcpy(rpath, sizeof (rpath), path); in optim1()
655 optimimp(path, rpath); in optim1()
659 optimex(path, rpath); in optim1()
662 for (cp2 = rpath; *cp2 != 0; cp2++) { in optim1()
/titanic_41/usr/src/cmd/backup/restore/
H A Dutilities.c1099 resolve(char *path, int *fd, char **rpath)
1104 *rpath = path;
1105 path = *rpath + strlen(*rpath) +1;
1107 (*fd = openat64(tfd, *rpath, O_RDONLY)) > 0) {
1110 *rpath = path;
1111 path = *rpath + strlen(*rpath) +1;
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_snap.c160 char *rpath; in topo_open() local
167 rpath = alloca(len + 2); in topo_open()
168 (void) snprintf(rpath, len + 2, "%s/", rootdir); in topo_open()
170 rpath = (char *)rootdir; in topo_open()
172 thp->th_rootdir = topo_hdl_strdup(thp, rpath); in topo_open()
/titanic_41/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1925 char *cp, *rpath; in find_ap_common() local
1931 if ((rpath = config_calloc_check(1, strlen(physpath) + 1, in find_ap_common()
1936 (void) strcpy(rpath, physpath); in find_ap_common()
1940 if (strncmp(rpath, DEVICES_DIR SLASH, len + strlen(SLASH)) == 0) { in find_ap_common()
1941 (void) memmove(rpath, rpath + len, in find_ap_common()
1942 strlen(rpath + len) + 1); in find_ap_common()
1946 if ((cp = GET_DYN(rpath)) != NULL) { in find_ap_common()
1951 if ((cp = strrchr(rpath, ':')) != NULL) { in find_ap_common()
1966 wnode = di_lookup_node(rnode, rpath); in find_ap_common()
1972 S_FREE(rpath); in find_ap_common()
[all …]
/titanic_41/usr/src/cmd/fs.d/
H A Dmount.c159 char *rpath; /* resolved pathname so far */ member
1286 newargv[i++] = vp->rpath; in do_mounts()
1540 if (vp->rpath) in setrpath()
1541 free(vp->rpath); in setrpath()
1542 if ((vp->rpath = strdup(realdir)) == NULL) in setrpath()
1544 vp->mlevel = fsgetmlevel(vp->rpath); in setrpath()
/titanic_41/usr/src/cmd/sgs/crle/common/
H A Dinspect.c510 char rpath[PATH_MAX], *npath, *nfile; in enterfile() local
517 if (realpath(opath, rpath) == NULL) in enterfile()
520 if (strcmp(opath, rpath)) { in enterfile()
521 npath = rpath; in enterfile()
/titanic_41/usr/src/uts/common/fs/
H A Dvnode.c2936 char *rpath; in vn_setpath() local
2978 rpath = kmem_alloc(rpathalloc, KM_SLEEP); in vn_setpath()
2983 kmem_free(rpath, rpathalloc); in vn_setpath()
2986 bcopy(base->v_path, rpath, rpathlen); in vn_setpath()
2990 rpath[rpathlen++] = '/'; in vn_setpath()
2991 bcopy(path, rpath + rpathlen, plen); in vn_setpath()
2992 rpath[rpathlen + plen] = '\0'; in vn_setpath()
2997 kmem_free(rpath, rpathalloc); in vn_setpath()
2999 vp->v_path = rpath; in vn_setpath()
/titanic_41/usr/src/cmd/sendmail/src/
H A Ddeliver.c1328 char *rpath; /* translated return path */ local
1393 rpath = remotename(p, m, RF_SENDERADDR|RF_CANONICAL, &rcode, e);
1394 if (strlen(rpath) > MAXNAME)
1396 rpath = shortenstring(rpath, MAXSHORTSTR);
1400 syserr("remotename: huge return path %s", rpath);
1402 rpath = sm_rpool_strdup_x(e->e_rpool, rpath);
1403 macdefine(&e->e_macro, A_PERM, 'g', rpath);
1422 *pvp++ = rpath;
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Delf.c1660 Xword rpath = 0; local
1911 rpath = dyn->d_un.d_val;
2240 if (rpath)
2241 RPATH(lmp) = (char *)(rpath + (char *)STRTAB(lmp));
/titanic_41/usr/src/cmd/sgs/libconv/common/
H A Ddynamic.msg74 @ MSG_DT_RPATH_NF "rpath"
/titanic_41/usr/src/cmd/mv/
H A Dmv.c1222 getrealpath(char *path, char *rpath) in getrealpath() argument
1224 if (realpath(path, rpath) == NULL) { in getrealpath()

12