/opensolaris-onvv-gate/usr/src/uts/intel/ia32/os/ |
H A D | bootdev.c | 79 * 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...] |
/opensolaris-onvv-gate/usr/src/lib/libadm/common/ |
H A D | fulldevnm.c | 152 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...] |
/opensolaris-onvv-gate/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 470 * 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...] |
/opensolaris-onvv-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 41 static char new_path[MAXPATHLEN]; variable 294 cleanup_path(path, new_path); 296 len = strlen(new_path); 302 (strcmp(new_path, "/devices") == 0)) { 306 } else if (strncmp(new_path, "/devices/", plen + 1)) { 311 opts.o_devices_path = new_path + plen;
|
/opensolaris-onvv-gate/usr/src/uts/common/os/ |
H A D | retire_store.c | 326 char *new_path; local 331 new_rsp->rst_devpath = new_path = i_ddi_strdup(devpath, KM_SLEEP); 347 kmem_free(new_path, strlen(new_path) + 1);
|
/opensolaris-onvv-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | abi_index.pl | 266 my ($pub, $pri, $obs, $evo, $vers, $new_path); 281 $new_path = $1; 292 $path = $new_path;
|
/opensolaris-onvv-gate/usr/src/uts/common/smbsrv/ndl/ |
H A D | netdfs.ndl | 418 IN REFERENCE LPTSTR new_path; 432 IN REFERENCE LPTSTR new_path;
|
/opensolaris-onvv-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 8614 char *new_path; local 8620 new_path = s_calloc(1, new_path_len); 8623 (void) snprintf(new_path, new_path_len, "/platform/i86pc/%s", 8625 if (stat(new_path, &sb) == 0) { 8626 BAM_DPRINTF((D_EXPAND_PATH, fcn, new_path)); 8627 return (new_path); 8631 (void) snprintf(new_path, new_path_len, "%s -k", 8633 BAM_DPRINTF((D_EXPAND_PATH, fcn, new_path)); 8634 return (new_path); 8641 (void) snprintf(new_path, new_path_le 8750 char *new_path; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 4361 char new_path[PATH_MAX + 1]; local 4392 (void) strcpy(new_path, current_dir); 4393 (void) strcat(new_path, "/"); 4394 (void) strcat(new_path, fp); 4397 "path = %s\n", new_path); 4400 recurse_dev_re(new_path, slash + 1, rd); 4405 (*(rd->fcn))(new_path, rd->data); 5512 char *new_path; local 5542 new_path = s_malloc(strlen(current_dir) + 5545 (void) strcpy(new_path, current_di [all...] |
/opensolaris-onvv-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_name.c | 123 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);
|
/opensolaris-onvv-gate/usr/src/lib/libdiskmgt/common/ |
H A D | findevs.c | 127 static path_t *new_path(controller_t *cp, disk_t *diskp, 735 if (new_path(cp, diskp, phci_node, 1783 new_path(controller_t *cp, disk_t *dp, di_node_t node, di_path_state_t st, function
|
/opensolaris-onvv-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_vfsops.c | 1485 char *p, *spath, *op, *new_path; local 1547 new_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); 1548 (void) strlcpy(new_path, p, MAXPATHLEN); 1550 i = strlen(new_path); 1557 new_path[i] = *op; 1564 new_path[i] = '\0'; 1567 svp->sv_pathlen = strlen(new_path) + 1; 1569 bcopy(new_path, svp->sv_path, svp->sv_pathlen); 1570 kmem_free(new_path, MAXPATHLEN);
|