Home
last modified time | relevance | path

Searched refs:tmppath (Results 1 – 11 of 11) sorted by relevance

/dragonfly/usr.bin/fetch/
H A Dfetch.c446 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 Dthr_sem.c513 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 Dmagic.c91 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 Dldelf.c696 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 Dpcap.c2153 &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 Dccd.c392 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 Dahci_cam.c171 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 Dsili_cam.c160 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 Delf32.em601 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 Dmpt_cam.c2509 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 Disp_freebsd.c4982 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()