Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 13 of 13) sorted by relevance

/titanic_50/usr/src/lib/libadm/common/
H A Dfulldevnm.c152 test_if_blk(char *new_path, dev_t raw_dev) in test_if_blk() argument
157 if (stat64(new_path, &buf) != 0) in test_if_blk()
173 test_if_raw(char *new_path, dev_t blk_dev) in test_if_raw() argument
178 if (stat64(new_path, &buf) != 0) in test_if_raw()
198 char *new_path; in getblkcomplete() local
205 if ((new_path = malloc(strlen(cp))) == NULL) in getblkcomplete()
210 (void) strcpy(new_path, cp); /* save first part of it */ in getblkcomplete()
212 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete()
214 if (test_if_blk(new_path, dat->st_rdev)) in getblkcomplete()
215 return (new_path); in getblkcomplete()
[all …]
/titanic_50/usr/src/uts/intel/ia32/os/
H A Dbootdev.c89 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len) in i_convert_boot_device_name() argument
91 if (new_path != NULL) { in i_convert_boot_device_name()
92 (void) snprintf(new_path, *len, "%s", cur_path); in i_convert_boot_device_name()
93 return (new_path); in i_convert_boot_device_name()
96 new_path = kmem_alloc(*len, KM_SLEEP); in i_convert_boot_device_name()
97 (void) snprintf(new_path, *len, "%s", cur_path); in i_convert_boot_device_name()
98 return (new_path); in i_convert_boot_device_name()
/titanic_50/usr/src/uts/sparc/os/
H A Dbootdev.c477 i_convert_boot_device_name(char *cur_path, char *new_path, size_t *len) in i_convert_boot_device_name() argument
483 ASSERT(new_path == NULL || *len >= MAXPATHLEN); in i_convert_boot_device_name()
485 if (new_path == NULL) { in i_convert_boot_device_name()
487 new_path = kmem_alloc(*len, KM_SLEEP); in i_convert_boot_device_name()
493 rval = i_devname_to_promname(cur_path, new_path, *len); in i_convert_boot_device_name()
500 (void) snprintf(new_path + strlen(new_path), in i_convert_boot_device_name()
501 *len - strlen(new_path), "%s", ptr); in i_convert_boot_device_name()
504 (void) snprintf(new_path, *len, "%s", cur_path); in i_convert_boot_device_name()
507 return (new_path); in i_convert_boot_device_name()
/titanic_50/usr/src/cmd/prtconf/
H A Dprtconf.c41 static char new_path[MAXPATHLEN]; variable
294 cleanup_path(path, new_path); in main()
296 len = strlen(new_path); in main()
302 (strcmp(new_path, "/devices") == 0)) { in main()
306 } else if (strncmp(new_path, "/devices/", plen + 1)) { in main()
311 opts.o_devices_path = new_path + plen; in main()
/titanic_50/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh179 typeset new_path=""
205 new_path="/"$mod_prop_val$new_path
209 mntpt=$new_path"/"$obj_name
224 typeset new_path=""
/titanic_50/usr/src/cmd/abi/appcert/scripts/
H A Dabi_index.pl266 my ($pub, $pri, $obs, $evo, $vers, $new_path);
281 $new_path = $1;
292 $path = $new_path;
/titanic_50/usr/src/uts/common/os/
H A Dretire_store.c323 char *new_path; in e_ddi_retire_persist() local
328 new_rsp->rst_devpath = new_path = i_ddi_strdup(devpath, KM_SLEEP); in e_ddi_retire_persist()
344 kmem_free(new_path, strlen(new_path) + 1); in e_ddi_retire_persist()
/titanic_50/usr/src/cmd/make/lib/vroot/
H A Dvroot.cc66 pathpt new_path; in add_dir_to_path() local
76 new_path= (pathpt)calloc((unsigned)(position+2), sizeof(pathcellt)); in add_dir_to_path()
78 memcpy((char *)new_path,(char *)(*pointer), size*sizeof(pathcellt)); in add_dir_to_path()
80 *pointer= new_path;}; in add_dir_to_path()
/titanic_50/usr/src/cmd/boot/bootadm/
H A Dbootadm.c8742 char *new_path; local
8748 new_path = s_calloc(1, new_path_len);
8751 (void) snprintf(new_path, new_path_len, "/platform/i86pc/%s",
8753 if (stat(new_path, &sb) == 0) {
8754 BAM_DPRINTF((D_EXPAND_PATH, fcn, new_path));
8755 return (new_path);
8759 (void) snprintf(new_path, new_path_len, "%s -k",
8761 BAM_DPRINTF((D_EXPAND_PATH, fcn, new_path));
8762 return (new_path);
8769 (void) snprintf(new_path, new_path_len, "/platform/i86pc/%s/unix",
[all …]
/titanic_50/usr/src/uts/common/smbsrv/ndl/
H A Dnetdfs.ndl418 IN REFERENCE LPTSTR new_path;
432 IN REFERENCE LPTSTR new_path;
/titanic_50/usr/src/cmd/devfsadm/
H A Ddevfsadm.c4361 char new_path[PATH_MAX + 1]; in recurse_dev_re() local
4392 (void) strcpy(new_path, current_dir); in recurse_dev_re()
4393 (void) strcat(new_path, "/"); in recurse_dev_re()
4394 (void) strcat(new_path, fp); in recurse_dev_re()
4397 "path = %s\n", new_path); in recurse_dev_re()
4400 recurse_dev_re(new_path, slash + 1, rd); in recurse_dev_re()
4405 (*(rd->fcn))(new_path, rd->data); in recurse_dev_re()
5512 char *new_path; in enumerate_recurse() local
5542 new_path = s_malloc(strlen(current_dir) + in enumerate_recurse()
5545 (void) strcpy(new_path, current_dir); in enumerate_recurse()
[all …]
/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c1487 char *p, *spath, *op, *new_path; in update_servinfo4() local
1549 new_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in update_servinfo4()
1550 (void) strlcpy(new_path, p, MAXPATHLEN); in update_servinfo4()
1552 i = strlen(new_path); in update_servinfo4()
1559 new_path[i] = *op; in update_servinfo4()
1566 new_path[i] = '\0'; in update_servinfo4()
1569 svp->sv_pathlen = strlen(new_path) + 1; in update_servinfo4()
1571 bcopy(new_path, svp->sv_path, svp->sv_pathlen); in update_servinfo4()
1572 kmem_free(new_path, MAXPATHLEN); in update_servinfo4()
/titanic_50/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, in add_disk2controller()
1793 new_path(controller_t *cp, disk_t *dp, di_node_t node, di_path_state_t st, in new_path() function