Searched refs:pathcopy (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | fileurl.c | 79 char *pathcopy; in ldaptool_fileurl2path() local 126 if (( pathcopy = strdup( path )) == NULL ) { in ldaptool_fileurl2path() 129 hex_unescape( pathcopy ); in ldaptool_fileurl2path() 140 for ( p = pathcopy; *p != '\0'; ++p ) { in ldaptool_fileurl2path() 147 if ( isalpha( pathcopy[0] ) && pathcopy[1] == '|' ) { in ldaptool_fileurl2path() 148 pathcopy[1] = ':'; in ldaptool_fileurl2path() 152 *localpathp = pathcopy; in ldaptool_fileurl2path()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | swapgeneric.c | 837 char *pathcopy; in load_bootpath_drivers() local 863 pathcopy = i_ddi_strdup(iscsi_network_path, in load_bootpath_drivers() 865 pathcopy_len = strlen(pathcopy) + 1; in load_bootpath_drivers() 874 pathcopy = i_ddi_strdup(bootpath, KM_SLEEP); in load_bootpath_drivers() 875 pathcopy_len = strlen(pathcopy) + 1; in load_bootpath_drivers() 879 dip = path_to_devinfo(pathcopy); in load_bootpath_drivers() 895 p = strrchr(pathcopy, '/'); in load_bootpath_drivers() 908 dip = path_to_devinfo(pathcopy); in load_bootpath_drivers() 912 kmem_free(pathcopy, pathcopy_len); in load_bootpath_drivers() 922 kmem_free(pathcopy, pathcopy_len); in load_bootpath_drivers() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_virtio_console.c | 286 char *cp, *pathcopy; in pci_vtcon_sock_add() local 320 pathcopy = strdup(path); in pci_vtcon_sock_add() 321 if (pathcopy == NULL) { in pci_vtcon_sock_add() 326 fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY); in pci_vtcon_sock_add() 328 free(pathcopy); in pci_vtcon_sock_add() 335 strcpy(pathcopy, path); in pci_vtcon_sock_add() 336 strlcpy(sun.sun_path, basename(pathcopy), sizeof(sun.sun_path)); in pci_vtcon_sock_add() 337 free(pathcopy); in pci_vtcon_sock_add() 345 pathcopy = (char *)path; in pci_vtcon_sock_add() 347 (void) strlcpy(addr.sun_path, pathcopy, sizeof (addr.sun_path)); in pci_vtcon_sock_add()
|