Home
last modified time | relevance | path

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

/freebsd/bin/chflags/
H A Dchflags.c88 char *dir, *bn, *pathcopy; in open_base() local
96 if ((pathcopy = strdup(path)) == NULL) in open_base()
98 dir = dirname(pathcopy); in open_base()
100 free(pathcopy); in open_base()
102 if ((pathcopy = strdup(path)) == NULL) in open_base()
104 bn = basename(pathcopy); in open_base()
107 free(pathcopy); in open_base()
/freebsd/usr.sbin/bhyve/
H A Dpci_virtio_console.c276 char *cp, *pathcopy; in pci_vtcon_sock_add() local
309 pathcopy = strdup(path); in pci_vtcon_sock_add()
310 if (pathcopy == NULL) { in pci_vtcon_sock_add()
315 fd = open(dirname(pathcopy), O_RDONLY | O_DIRECTORY); in pci_vtcon_sock_add()
317 free(pathcopy); in pci_vtcon_sock_add()
324 strcpy(pathcopy, path); in pci_vtcon_sock_add()
325 strlcpy(sun.sun_path, basename(pathcopy), sizeof(sun.sun_path)); in pci_vtcon_sock_add()
326 free(pathcopy); in pci_vtcon_sock_add()