| /freebsd/contrib/pam-krb5/tests/module/ |
| H A D | cache-cleanup-t.c | 34 char *tmppath, *path; in main() local 47 tmppath = test_tmpdir(); in main() 48 config.extra[1] = tmppath; in main() 57 tmpdir = opendir(tmppath); in main() 59 sysbail("cannot open directory %s", tmppath); in main() 67 basprintf(&path, "%s/%s", tmppath, file->d_name); in main() 82 tmpdir = opendir(tmppath); in main() 84 sysbail("cannot open directory %s", tmppath); in main() 93 basprintf(&path, "%s/%s", tmppath, file->d_name); in main() 102 test_tmpdir_free(tmppath); in main()
|
| /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/usr.sbin/certctl/ |
| H A D | certctl.c | 424 char *path, *tmppath = NULL; in write_certs() local 510 tmppath = xasprintf(".%s", path); in write_certs() 511 fd = openat(d, tmppath, in write_certs() 523 tmppath = xasprintf(".%s", path); in write_certs() 524 fd = openat(d, tmppath, in write_certs() 532 if (tmppath != NULL && fd >= 0) { in write_certs() 534 (void)unlinkat(d, tmppath, 0); in write_certs() 537 err(1, "%s/%s", dir, tmppath ? tmppath : path); in write_certs() 540 if (tmppath != NULL) { in write_certs() 541 if (ret == 0 && renameat(d, tmppath, d, path) != 0) { in write_certs() [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/nvme/ |
| H A D | nvme_sim.c | 427 struct cam_path *tmppath; in nvme_sim_ns_removed() local 429 if (xpt_create_path(&tmppath, /*periph*/NULL, in nvme_sim_ns_removed() 434 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in nvme_sim_ns_removed() 435 xpt_free_path(tmppath); in nvme_sim_ns_removed()
|
| /freebsd/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 141 struct cam_path *tmppath = NULL; in os_remove_device() local 148 if (xpt_create_path(&tmppath, NULL, in os_remove_device() 154 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in os_remove_device() 155 xpt_free_path(tmppath); in os_remove_device() 1363 struct cam_path *tmppath = NULL; in os_rescan_target() local 1368 if (xpt_create_path(&tmppath, NULL, in os_rescan_target() 1375 xpt_async(AC_INQ_CHANGED, tmppath, NULL); in os_rescan_target() 1376 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 | 1842 char *tmppath; in kern_symlinkat() local 1849 tmppath = uma_zalloc(namei_zone, M_WAITOK); in kern_symlinkat() 1850 if ((error = copyinstr(path1, tmppath, MAXPATHLEN, NULL)) != 0) in kern_symlinkat() 1852 syspath = tmppath; in kern_symlinkat() 1904 uma_zfree(namei_zone, tmppath); in kern_symlinkat()
|