Searched defs:cpath (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libgen/common/
H A Dpathfind.c104 char *cpath = _get_cpath(&key); local
106 static char cpath[PATH_MAX];
162 for (cp = cpath; (/* const */ char *) cp <
163 &cpath[PATH_MAX] && (*cp = *path); cp++) {
169 &cpath[PATH_MAX])
171 if (cp != cpath)
175 if (access(cpath, imode&07) == 0 &&
176 fullck(cpath, imode, nzflag))
177 return (cpath);
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dspecial.c505 char cpath[PATH_MAX], /* Contents file path */ local
514 cpath[0] = tcpath[0] = '\0';
532 if (snprintf(cpath, PATH_MAX, "%s%s", pcroot, pccontents)
541 if (snprintf(cpath, PATH_MAX, "%s/%s", pcroot, pccontents)
552 if (access(cpath, F_OK | R_OK) != 0) {
558 cpath[0] = '\0'; /* This signals omission of 'rename cleanup' */
562 if (access(cpath, W_OK) != 0) {
570 if ((fpi = fopen(cpath, "r")) == NULL) {
693 if (tcpath[0] != '\0' && cpath[0] != '\0' &&
694 rename(tcpath, cpath) !
[all...]
/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);
156 canonicalise(cpath, fp->bf_name);
198 canonicalise(fn, cpath);
201 if (strcmp(fp->bf_name, cpath) == 0)
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dmpath.c851 char cpath[MAXPATHLEN]; local
859 ioc.client = cpath;
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/
H A Dttymux_dacf.c429 char *cpath; local
432 cpath = kmem_alloc(strlen(path) + 1, KM_SLEEP);
433 (void) strcpy(cpath, path);
434 } else if (read_prop(prom_alias_node(), path, &cpath) <= 0) {
442 if (strrchr(cpath, ':') == NULL) {
444 size_t len = strlen(cpath) + 1;
447 (void) strcpy(p, cpath);
449 kmem_free(cpath, len);
450 cpath = p;
452 if ((cn = get_aconsole(ms, cpath)) !
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c984 char cpath[PATH_MAX]; local
1034 if (realpath(configfile, cpath) == NULL)
1035 (void) strlcpy(cpath, configfile, sizeof (cpath));
1038 *path = safe_strdup(cpath);
1047 char cpath[PATH_MAX]; local
1057 if (realpath(srcfile, cpath) == NULL)
1058 (void) strlcpy(cpath, srcfile, sizeof (cpath));
1061 if (strcmp(cpath, inetd_cpat
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c652 char *cpath; /* current path */ local
654 if ((cpath = getenv("PATH")) == NULL) {
661 * ".:/sbin:.:/usr/sbin:.". Now, we have no cpath,
669 cpath = CPATH;
671 if ((epath = malloc(strlen(EPATH) + strlen(cpath) + 1)) == NULL) {
676 (void) strcat(epath, cpath);
/illumos-gate/usr/src/cmd/praudit/
H A Dtoken.c610 char *cpath; /* collapsed path */ local
630 cpath = collapse_path(apath);
631 uval.string_val = cpath;
633 free(cpath);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c3168 char *cpath; local
3543 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
3545 ddi_pathname(cdip, cpath), ddi_driver_name(cdip),
3548 kmem_free(cpath, MAXPATHLEN);
3804 char *cpath; local
3871 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
3876 ddi_pathname(dip, cpath),
3880 kmem_free(cpath, MAXPATHLEN);
3982 cpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
3987 ddi_pathname(dip, cpath),
[all...]

Completed in 245 milliseconds