Searched refs:tmppath (Results 1 – 8 of 8) sorted by relevance
/freebsd/lib/libutil/ |
H A D | getlocalbase.c | 56 char *tmppath; in getlocalbase() local 63 tmppath = getenv("LOCALBASE"); in getlocalbase() 64 if (tmppath != NULL && tmppath[0] != '\0') { in getlocalbase() 65 localbase = tmppath; in getlocalbase()
|
/freebsd/usr.bin/fetch/ |
H A D | fetch.c | 436 char *tmppath; in fetch() local 442 tmppath = NULL; in fetch() 724 if(tmppath != NULL) in fetch() 725 free(tmppath); in fetch() 728 if (tmppath != NULL) { in fetch() 808 if (utimes(tmppath ? tmppath : path, tv)) in fetch() 809 warn("%s: utimes()", tmppath ? tmppath : path); in fetch() 859 if (tmppath != NULL && rename(tmppath, path) == -1) { in fetch() 867 unlink(tmppath ? tmppath : path); in fetch() 880 if (tmppath != NULL) in fetch() [all …]
|
/freebsd/sbin/kldload/ |
H A D | kldload.c | 51 char *path, *tmppath, *element; in path_check() local 82 tmppath = path; in path_check() 84 while ((element = strsep(&tmppath, ";")) != NULL) { in path_check()
|
/freebsd/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()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 142 struct cam_path *tmppath = NULL; in os_remove_device() local 149 if (xpt_create_path(&tmppath, NULL, in os_remove_device() 155 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in os_remove_device() 156 xpt_free_path(tmppath); in os_remove_device() 1372 struct cam_path *tmppath = NULL; in os_rescan_target() local 1377 if (xpt_create_path(&tmppath, NULL, in os_rescan_target() 1384 xpt_async(AC_INQ_CHANGED, tmppath, NULL); in os_rescan_target() 1385 xpt_free_path(tmppath); in os_rescan_target()
|
/freebsd/contrib/libpcap/ |
H A D | pcap.c | 2148 &tmpport, &tmppath, errbuf) == -1) { 2159 if (name && tmppath) 2160 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2163 free(tmppath); 2194 if (name && tmppath) 2195 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2198 free(tmppath); 2210 if (name && tmppath) 2211 pcap_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2214 free(tmppath); [all …]
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_cam.c | 2424 struct cam_path *tmppath; in mpt_cam_event() local 2443 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2450 xpt_setup_ccb(&crs.ccb_h, tmppath, 5); in mpt_cam_event() 2459 xpt_free_path(tmppath); in mpt_cam_event() 2471 struct cam_path *tmppath; in mpt_cam_event() local 2499 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2506 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in mpt_cam_event() 2507 xpt_free_path(tmppath); in mpt_cam_event()
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | 1754 char *tmppath; in kern_symlinkat() local 1761 tmppath = uma_zalloc(namei_zone, M_WAITOK); in kern_symlinkat() 1762 if ((error = copyinstr(path1, tmppath, MAXPATHLEN, NULL)) != 0) in kern_symlinkat() 1764 syspath = tmppath; in kern_symlinkat() 1812 uma_zfree(namei_zone, tmppath); in kern_symlinkat()
|