/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() 725 if(tmppath != NULL) in fetch() 726 free(tmppath); in fetch() 727 asprintf(&tmppath, "%.*s.fetch.XXXXXX.%s", in fetch() 729 if (tmppath != NULL) { in fetch() 730 if (mkstemps(tmppath, strlen(slash) + 1) == -1) { in fetch() 734 of = fopen(tmppath, "w"); in fetch() 735 chown(tmppath, sb.st_uid, sb.st_gid); in fetch() 736 chmod(tmppath, sb.st_mode & ALLPERMS); 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 | 2185 char *scheme, *tmpuserinfo, *tmphost, *tmpport, *tmppath; local 2199 &tmpport, &tmppath, errbuf) == -1) { 2210 if (name && tmppath) 2211 pcapint_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2214 free(tmppath); 2245 if (name && tmppath) 2246 pcapint_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2249 free(tmppath); 2261 if (name && tmppath) 2262 pcapint_strlcpy(name, tmppath, PCAP_BUF_SIZE); [all …]
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_cam.c | 2425 struct cam_path *tmppath; in mpt_cam_event() local 2444 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2451 xpt_setup_ccb(&crs.ccb_h, tmppath, 5); in mpt_cam_event() 2460 xpt_free_path(tmppath); in mpt_cam_event() 2472 struct cam_path *tmppath; in mpt_cam_event() local 2500 if (xpt_create_path(&tmppath, NULL, cam_sim_path(sim), in mpt_cam_event() 2507 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in mpt_cam_event() 2508 xpt_free_path(tmppath); in mpt_cam_event()
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | 1794 char *tmppath; in kern_symlinkat() local 1801 tmppath = uma_zalloc(namei_zone, M_WAITOK); in kern_symlinkat() 1802 if ((error = copyinstr(path1, tmppath, MAXPATHLEN, NULL)) != 0) in kern_symlinkat() 1804 syspath = tmppath; in kern_symlinkat() 1852 uma_zfree(namei_zone, tmppath); in kern_symlinkat()
|