Searched defs:new_path (Results 1 - 11 of 11) sorted by relevance

/illumos-gate/usr/src/uts/intel/ia32/os/
H A Dbootdev.c79 * a prom-compatible path and return the value of new_path. If the
80 * caller specifies new_path as NULL, we allocate an appropriately
81 * sized new_path on behalf of the caller. If the caller invokes this
82 * function with new_path = NULL, they must do so from a context in
89 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len) argument
91 if (new_path != NULL) {
92 (void) snprintf(new_path, *len, "%s", cur_path);
93 return (new_path);
96 new_path = kmem_alloc(*len, KM_SLEEP);
97 (void) snprintf(new_path, *le
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dfulldevnm.c152 test_if_blk(char *new_path, dev_t raw_dev) argument
157 if (stat64(new_path, &buf) != 0)
173 test_if_raw(char *new_path, dev_t blk_dev) argument
178 if (stat64(new_path, &buf) != 0)
198 char *new_path; local
205 if ((new_path = malloc(strlen(cp))) == NULL)
210 (void) strcpy(new_path, cp); /* save first part of it */
212 (void) strcat(new_path, dp); /* copy, skipping the 'r' */
214 if (test_if_blk(new_path, dat->st_rdev))
215 return (new_path);
251 char *new_path; local
340 char *new_path; local
422 char *new_path; local
[all...]
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c42 static char new_path[MAXPATHLEN]; variable
298 cleanup_path(path, new_path);
300 len = strlen(new_path);
306 (strcmp(new_path, "/devices") == 0)) {
310 } else if (strncmp(new_path, "/devices/", plen + 1)) {
315 opts.o_devices_path = new_path + plen;
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootdev.c470 * a prom-compatible path and return the value of new_path. If the
471 * caller specifies new_path as NULL, we allocate an appropriately
472 * sized new_path on behalf of the caller. If the caller invokes this
473 * function with new_path = NULL, they must do so from a context in
477 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len) argument
483 ASSERT(new_path == NULL || *len >= MAXPATHLEN);
485 if (new_path == NULL) {
487 new_path = kmem_alloc(*len, KM_SLEEP);
493 rval = i_devname_to_promname(cur_path, new_path, *len);
500 (void) snprintf(new_path
[all...]
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dvroot.cc66 pathpt new_path; local
76 new_path= (pathpt)calloc((unsigned)(position+2), sizeof(pathcellt));
78 memcpy((char *)new_path,(char *)(*pointer), size*sizeof(pathcellt));
80 *pointer= new_path;};
/illumos-gate/usr/src/uts/common/os/
H A Dretire_store.c323 char *new_path; local
328 new_rsp->rst_devpath = new_path = i_ddi_strdup(devpath, KM_SLEEP);
344 kmem_free(new_path, strlen(new_path) + 1);
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c129 static path_t *new_path(controller_t *cp, disk_t *diskp,
737 if (new_path(cp, diskp, phci_node,
1793 new_path(controller_t *cp, disk_t *dp, di_node_t node, di_path_state_t st, function
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_name.c123 char *new_path = NULL; local
130 if ((new_path = meta_dsk_to_rdsk(uname)) == NULL)
133 if (strncmp("/dev/", new_path, 5) == 0) {
134 ret = stat(new_path, &statbuf);
136 Free(new_path);
141 return (new_path);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c1487 char *p, *spath, *op, *new_path; local
1549 new_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
1550 (void) strlcpy(new_path, p, MAXPATHLEN);
1552 i = strlen(new_path);
1559 new_path[i] = *op;
1566 new_path[i] = '\0';
1569 svp->sv_pathlen = strlen(new_path) + 1;
1571 bcopy(new_path, svp->sv_path, svp->sv_pathlen);
1572 kmem_free(new_path, MAXPATHLEN);
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.c4362 char new_path[PATH_MAX + 1]; local
4393 (void) strcpy(new_path, current_dir);
4394 (void) strcat(new_path, "/");
4395 (void) strcat(new_path, fp);
4398 "path = %s\n", new_path);
4401 recurse_dev_re(new_path, slash + 1, rd);
4406 (*(rd->fcn))(new_path, rd->data);
5513 char *new_path; local
5543 new_path = s_malloc(strlen(current_dir) +
5546 (void) strcpy(new_path, current_di
[all...]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c9362 char *new_path; local
9368 new_path = s_calloc(1, new_path_len);
9371 (void) snprintf(new_path, new_path_len, "/platform/i86pc/%s",
9373 if (stat(new_path, &sb) == 0) {
9374 BAM_DPRINTF(("%s: expanded path: %s\n", fcn, new_path));
9375 return (new_path);
9379 (void) snprintf(new_path, new_path_len, "%s -k",
9381 BAM_DPRINTF(("%s: expanded path: %s\n", fcn, new_path));
9382 return (new_path);
9389 (void) snprintf(new_path, new_path_le
9499 char *new_path; local
[all...]

Completed in 127 milliseconds