/dragonfly/usr.bin/fetch/ |
H A D | fetch.c | 446 char *tmppath; in fetch() local 452 tmppath = NULL; in fetch() 737 if (tmppath != NULL) { in fetch() 742 of = fopen(tmppath, "w"); in fetch() 743 chown(tmppath, sb.st_uid, sb.st_gid); in fetch() 828 if (utimes(tmppath ? tmppath : path, tv)) in fetch() 829 warn("%s: utimes()", tmppath ? tmppath : path); in fetch() 872 if (tmppath != NULL && rename(tmppath, path) == -1) { in fetch() 880 unlink(tmppath ? tmppath : path); in fetch() 893 if (tmppath != NULL) in fetch() [all …]
|
/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_sem.c | 513 char tmppath[PATH_MAX]; in _sem_open() local 598 strlcpy(tmppath, prefix, sizeof(tmppath)); in _sem_open() 599 path_len = strlcat(tmppath, "/sem.XXXXXX", sizeof(tmppath)); in _sem_open() 601 if (path_len > sizeof(tmppath)) { in _sem_open() 607 fd = mkstemp(tmppath); in _sem_open() 657 _unlink(tmppath); in _sem_open() 669 if (link(tmppath, path) != 0) { in _sem_open() 672 _unlink(tmppath); in _sem_open() 680 _unlink(tmppath); in _sem_open()
|
/dragonfly/contrib/file/src/ |
H A D | magic.c | 91 char *tmppath; in _w32_append_path() local 96 if (vasprintf(&tmppath, fmt, ap) < 0) { in _w32_append_path() 102 if (access(tmppath, R_OK) == -1) in _w32_append_path() 106 *hmagicpath = tmppath; in _w32_append_path() 110 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path() 114 free(tmppath); in _w32_append_path() 118 free(tmppath); in _w32_append_path()
|
/dragonfly/contrib/binutils-2.34/ld/ |
H A D | ldelf.c | 696 char *tmppath; in ldelf_check_ld_elf_hints() local 698 tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, (const char *) NULL); in ldelf_check_ld_elf_hints() 699 f = fopen (tmppath, FOPEN_RB); in ldelf_check_ld_elf_hints() 700 free (tmppath); in ldelf_check_ld_elf_hints() 905 char *tmppath; in ldelf_check_ld_so_conf() local 910 tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 912 if (!ldelf_parse_ld_so_conf (&info, tmppath)) in ldelf_check_ld_so_conf() 914 free (tmppath); in ldelf_check_ld_so_conf() 915 tmppath = concat (ld_sysroot, "/etc/ld.so.conf", in ldelf_check_ld_so_conf() 917 ldelf_parse_ld_so_conf (&info, tmppath); in ldelf_check_ld_so_conf() [all …]
|
/dragonfly/contrib/libpcap/ |
H A D | pcap.c | 2153 &tmpport, &tmppath, errbuf) == -1) { 2164 if (name && tmppath) 2165 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2168 free(tmppath); 2199 if (name && tmppath) 2200 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2203 free(tmppath); 2215 if (name && tmppath) 2216 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2219 free(tmppath); [all …]
|
/dragonfly/sys/dev/disk/ccd/ |
H A D | ccd.c | 392 char tmppath[MAXPATHLEN]; in ccdinit() local 426 bzero(tmppath, sizeof(tmppath)); /* sanity */ in ccdinit() 427 if ((error = copyinstr(cpaths[ix], tmppath, in ccdinit() 437 bcopy(tmppath, ci->ci_path, ci->ci_pathlen); in ccdinit()
|
/dragonfly/sys/dev/disk/ahci/ |
H A D | ahci_cam.c | 171 struct cam_path *tmppath; in ahci_cam_changed() local 180 status = xpt_create_path(&tmppath, NULL, in ahci_cam_changed() 187 status = xpt_create_path(&tmppath, NULL, in ahci_cam_changed() 198 xpt_async(AC_FOUND_DEVICE, tmppath, NULL); in ahci_cam_changed() 200 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in ahci_cam_changed() 203 xpt_free_path(tmppath); in ahci_cam_changed()
|
/dragonfly/sys/dev/disk/sili/ |
H A D | sili_cam.c | 160 struct cam_path *tmppath; in sili_cam_changed() local 169 status = xpt_create_path(&tmppath, NULL, in sili_cam_changed() 176 status = xpt_create_path(&tmppath, NULL, in sili_cam_changed() 187 xpt_async(AC_FOUND_DEVICE, tmppath, NULL); in sili_cam_changed() 189 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in sili_cam_changed() 192 xpt_free_path(tmppath); in sili_cam_changed()
|
/dragonfly/contrib/binutils-2.27/ld/emultempl/ |
H A D | elf32.em | 601 char *tmppath; 603 tmppath = concat (ld_sysroot, _PATH_ELF_HINTS, (const char *) NULL); 604 f = fopen (tmppath, FOPEN_RB); 605 free (tmppath); 818 char *tmppath; 823 tmppath = concat (ld_sysroot, "${prefix}/etc/ld.so.conf", 825 if (!gld${EMULATION_NAME}_parse_ld_so_conf (&info, tmppath)) 827 free (tmppath); 828 tmppath = concat (ld_sysroot, "/etc/ld.so.conf", 830 gld${EMULATION_NAME}_parse_ld_so_conf (&info, tmppath); [all …]
|
/dragonfly/sys/dev/disk/mpt/ |
H A D | mpt_cam.c | 2509 struct cam_path *tmppath; in mpt_cam_event() local 2525 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2532 xpt_setup_ccb(&crs->ccb_h, tmppath, 5); in mpt_cam_event() 2541 xpt_free_path(tmppath); in mpt_cam_event() 2554 struct cam_path *tmppath; in mpt_cam_event() local 2582 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2589 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in mpt_cam_event() 2590 xpt_free_path(tmppath); in mpt_cam_event()
|
/dragonfly/sys/dev/disk/isp/ |
H A D | isp_freebsd.c | 4982 struct cam_path *tmppath; in isp_async() local 5002 …if (xpt_create_path(&tmppath, NULL, cam_sim_path(ISP_SPI_PC(isp, bus)->sim), tgt, CAM_LUN_WILDCARD… in isp_async() 5036 xpt_setup_ccb(&cts.ccb_h, tmppath, 1); in isp_async() 5037 xpt_async(AC_TRANSFER_NEG, tmppath, &cts); in isp_async() 5038 xpt_free_path(tmppath); in isp_async()
|