| /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/usr.bin/fetch/ |
| H A D | fetch.c | 432 char *tmppath; in fetch() local 439 tmppath = NULL; in fetch() 710 if(tmppath != NULL) in fetch() 711 free(tmppath); in fetch() 712 asprintf(&tmppath, "%.*s.fetch.XXXXXX.%s", in fetch() 714 if (tmppath != NULL) { in fetch() 715 if (mkstemps(tmppath, strlen(slash) + 1) == -1) { in fetch() 719 of = fopen(tmppath, "w"); in fetch() 720 chown(tmppath, sb.st_uid, sb.st_gid); in fetch() 721 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() 534 if (tmppath != NULL && fd >= 0) { in write_certs() 536 (void)unlinkat(d, tmppath, 0); in write_certs() 539 err(1, "%s/%s", dir, tmppath ? tmppath : path); in write_certs() 542 if (tmppath != NULL) { in write_certs() 543 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 | 442 struct cam_path *tmppath; in nvme_sim_ns_removed() local 444 if (xpt_create_path(&tmppath, /*periph*/NULL, in nvme_sim_ns_removed() 449 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in nvme_sim_ns_removed() 450 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 | 2196 char *scheme, *tmpuserinfo, *tmphost, *tmpport, *tmppath; local 2210 &tmpport, &tmppath, errbuf) == -1) { 2221 if (name && tmppath) 2222 pcapint_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2225 free(tmppath); 2256 if (name && tmppath) 2257 pcapint_strlcpy(name, tmppath, PCAP_BUF_SIZE); 2260 free(tmppath); 2272 if (name && tmppath) 2273 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 | 1845 char *tmppath; in kern_symlinkat() local 1852 tmppath = uma_zalloc(namei_zone, M_WAITOK); in kern_symlinkat() 1853 if ((error = copyinstr(path1, tmppath, MAXPATHLEN, NULL)) != 0) in kern_symlinkat() 1855 syspath = tmppath; in kern_symlinkat() 1905 uma_zfree(namei_zone, tmppath); in kern_symlinkat()
|