Home
last modified time | relevance | path

Searched refs:pathcopy (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/ldap/common/
H A Dfileurl.c79 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 Dswapgeneric.c837 char *pathcopy; in load_bootpath_drivers() local
865 pathcopy_len = strlen(pathcopy) + 1; 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()
938 kmem_free(pathcopy, pathcopy_len); in load_bootpath_drivers()
956 p = strrchr(pathcopy, '/'); in load_bootpath_drivers()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_console.c287 char *cp, *pathcopy; in pci_vtcon_sock_add() local
321 pathcopy = strdup(path); in pci_vtcon_sock_add()
322 if (pathcopy == NULL) { in pci_vtcon_sock_add()
327 fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY); in pci_vtcon_sock_add()
329 free(pathcopy); in pci_vtcon_sock_add()
336 strcpy(pathcopy, path); in pci_vtcon_sock_add()
337 strlcpy(sun.sun_path, basename(pathcopy), sizeof(sun.sun_path)); in pci_vtcon_sock_add()
338 free(pathcopy); in pci_vtcon_sock_add()
346 pathcopy = (char *)path; in pci_vtcon_sock_add()
348 (void) strlcpy(addr.sun_path, pathcopy, sizeof (addr.sun_path)); in pci_vtcon_sock_add()