Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libgen/common/
H A Dpathfind.c104 char *cpath = _get_cpath(&key); in pathfind() local
106 static char cpath[PATH_MAX]; in pathfind()
162 for (cp = cpath; (/* const */ char *) cp < in pathfind()
163 &cpath[PATH_MAX] && (*cp = *path); cp++) { in pathfind()
169 &cpath[PATH_MAX]) in pathfind()
171 if (cp != cpath) in pathfind()
175 if (access(cpath, imode&07) == 0 && in pathfind()
176 fullck(cpath, imode, nzflag)) in pathfind()
177 return (cpath); in pathfind()
/titanic_44/usr/src/cmd/svr4pkg/pkgremove/
H A Dspecial.c505 char cpath[PATH_MAX], /* Contents file path */ in special_contents_remove() local
514 cpath[0] = tcpath[0] = '\0'; in special_contents_remove()
532 if (snprintf(cpath, PATH_MAX, "%s%s", pcroot, pccontents) in special_contents_remove()
541 if (snprintf(cpath, PATH_MAX, "%s/%s", pcroot, pccontents) in special_contents_remove()
552 if (access(cpath, F_OK | R_OK) != 0) { in special_contents_remove()
558 cpath[0] = '\0'; /* This signals omission of 'rename cleanup' */ in special_contents_remove()
562 if (access(cpath, W_OK) != 0) { in special_contents_remove()
570 if ((fpi = fopen(cpath, "r")) == NULL) { in special_contents_remove()
693 if (tcpath[0] != '\0' && cpath[0] != '\0' && in special_contents_remove()
694 rename(tcpath, cpath) != 0) { in special_contents_remove()
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/
H A Dttymux_dacf.c429 char *cpath; in add_aconsole() local
432 cpath = kmem_alloc(strlen(path) + 1, KM_SLEEP); in add_aconsole()
433 (void) strcpy(cpath, path); in add_aconsole()
434 } else if (read_prop(prom_alias_node(), path, &cpath) <= 0) { in add_aconsole()
442 if (strrchr(cpath, ':') == NULL) { in add_aconsole()
444 size_t len = strlen(cpath) + 1; in add_aconsole()
447 (void) strcpy(p, cpath); in add_aconsole()
449 kmem_free(cpath, len); in add_aconsole()
450 cpath = p; in add_aconsole()
452 if ((cn = get_aconsole(ms, cpath)) != NULL) { in add_aconsole()
[all …]
/titanic_44/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()
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c851 char cpath[MAXPATHLEN]; in g_stms_get_path_state() local
859 ioc.client = cpath; in g_stms_get_path_state()
/titanic_44/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()
/titanic_44/usr/src/tools/onbld/hgext/
H A Dcdm.py161 cpath = util.canonpath(repo.root, repo.getcwd(), path)
162 return ignfunc(cpath)
/titanic_44/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c3168 char *cpath; in vhci_intr() local
3543 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_intr()
3545 ddi_pathname(cdip, cpath), ddi_driver_name(cdip), in vhci_intr()
3548 kmem_free(cpath, MAXPATHLEN); in vhci_intr()
3804 char *cpath; in vhci_update_pathstates() local
3871 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_update_pathstates()
3876 ddi_pathname(dip, cpath), in vhci_update_pathstates()
3880 kmem_free(cpath, MAXPATHLEN); in vhci_update_pathstates()
3982 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vhci_update_pathstates()
3987 ddi_pathname(dip, cpath), in vhci_update_pathstates()
[all …]