Home
last modified time | relevance | path

Searched refs:cpath (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libgen/common/
H A Dpathfind.c102 char *cpath = _get_cpath(&key); in pathfind() local
104 static char cpath[PATH_MAX]; in pathfind()
160 for (cp = cpath; (/* const */ char *) cp < in pathfind()
161 &cpath[PATH_MAX] && (*cp = *path); cp++) { in pathfind()
167 &cpath[PATH_MAX]) in pathfind()
169 if (cp != cpath) in pathfind()
173 if (access(cpath, imode&07) == 0 && in pathfind()
174 fullck(cpath, imode, nzflag)) in pathfind()
175 return (cpath); in pathfind()
/illumos-gate/usr/src/common/fs/
H A Dbootfsops.c61 static char cpath[MAXPATHLEN]; /* For canonicalising filenames */ variable
155 (void) do_bsys_getprop(NULL, propname, cpath); in bbootfs_init()
156 canonicalise(cpath, fp->bf_name); in bbootfs_init()
198 canonicalise(fn, cpath); in bbootfs_open()
201 if (strcmp(fp->bf_name, cpath) == 0) in bbootfs_open()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c984 char cpath[PATH_MAX]; in inetd_config_path() local
1034 if (realpath(configfile, cpath) == NULL) in inetd_config_path()
1035 (void) strlcpy(cpath, configfile, sizeof (cpath)); in inetd_config_path()
1038 *path = safe_strdup(cpath); in inetd_config_path()
1047 char cpath[PATH_MAX]; in update_hash() local
1057 if (realpath(srcfile, cpath) == NULL) in update_hash()
1058 (void) strlcpy(cpath, srcfile, sizeof (cpath)); in update_hash()
1061 if (strcmp(cpath, inetd_cpath) != 0) { in update_hash()
1068 if (calculate_hash(cpath, &hashstr) != 0) { in update_hash()
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c652 char *cpath; /* current path */ in exenv() local
654 if ((cpath = getenv("PATH")) == NULL) { in exenv()
669 cpath = CPATH; in exenv()
671 if ((epath = malloc(strlen(EPATH) + strlen(cpath) + 1)) == NULL) { in exenv()
676 (void) strcat(epath, cpath); in exenv()
/illumos-gate/usr/src/test/smbclient-tests/tests/smbfs/mkdir/
H A Dtp_mkdir_004.ksh64 cpath=$(pwd)
/illumos-gate/usr/src/cmd/praudit/
H A Dtoken.c610 char *cpath; /* collapsed path */ in path_token() local
630 cpath = collapse_path(apath); in path_token()
631 uval.string_val = cpath; in path_token()
633 free(cpath); in path_token()
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c849 char cpath[MAXPATHLEN]; in g_stms_get_path_state() local
857 ioc.client = cpath; in g_stms_get_path_state()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c3171 char *cpath; in vhci_intr() local
3546 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_intr()
3548 ddi_pathname(cdip, cpath), ddi_driver_name(cdip), in vhci_intr()
3551 kmem_free(cpath, MAXPATHLEN); in vhci_intr()
3807 char *cpath; in vhci_update_pathstates() local
3877 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_update_pathstates()
3882 ddi_pathname(dip, cpath), in vhci_update_pathstates()
3886 kmem_free(cpath, MAXPATHLEN); in vhci_update_pathstates()
3989 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_update_pathstates()
3994 ddi_pathname(dip, cpath), in vhci_update_pathstates()
[all …]