| /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/sys/dev/nvme/ |
| H A D | nvme_sim.c | 355 struct cam_path *tmppath; in nvme_sim_ns_change() local 358 if (xpt_create_path(&tmppath, /*periph*/NULL, in nvme_sim_ns_change() 367 xpt_async(AC_LOST_DEVICE, tmppath, NULL); in nvme_sim_ns_change() 368 xpt_free_path(tmppath); in nvme_sim_ns_change() 377 ccb->ccb_h.path = tmppath; in nvme_sim_ns_change() 381 * namespace, scan or rescan the path to enumerate it. tmppath freed at in nvme_sim_ns_change()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DependencyFile.cpp | 182 llvm::SmallString<256> TmpPath = Filename; in addDependency() local 183 llvm::sys::path::native(TmpPath); in addDependency() 184 std::transform(TmpPath.begin(), TmpPath.end(), TmpPath.begin(), ::tolower); in addDependency() 185 SearchPath = TmpPath.str(); in addDependency()
|
| /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/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/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/llvm-project/llvm/lib/Support/Windows/ |
| H A D | Program.inc | 53 SmallVector<wchar_t, MAX_PATH> TmpPath; 54 if (std::error_code EC = windows::UTF8ToUTF16(P, TmpPath)) 56 PathStorage.append(TmpPath.begin(), TmpPath.end());
|
| /freebsd/ |
| H A D | Makefile.inc1 | 655 TMPPATH= ${STRICTTMPPATH} 657 TMPPATH= ${STRICTTMPPATH}:${PATH} 719 # 2. these tools are installed into TMPPATH for stage 4. 846 PATH=${TMPPATH:Q} \ 850 HMAKE= PATH=${TMPPATH:Q} ${MAKE} LOCAL_MTREE=${LOCAL_MTREE:Q} 852 HMAKE+= PATH=${TMPPATH:Q} METALOG=${METALOG} -DNO_ROOT 971 IMAKEENV+= PATH=${TMPPATH:Q}:${INSTALLTMP:Q} 1089 # will fail to run due to missing binaries. $WMAKE sets PATH to only ${TMPPATH} 1093 cd ${.CURDIR}; env PATH=${TMPPATH:Q}:${PATH:Q} ${WMAKE:NPATH=*} \ 1477 if progpath=`env PATH=${TMPPATH:Q} which $$prog`; then \ [all …]
|
| H A D | Makefile.libcompat | 16 PATH=${TMPPATH} \
|
| /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/contrib/mandoc/ |
| H A D | main.c | 172 if (pledge("stdio rpath wpath cpath tmppath tty proc exec", NULL) == -1) { in main() 408 c = pledge("stdio rpath tmppath tty proc exec", NULL); in main() 1363 if (pledge("stdio rpath tmppath tty proc", NULL) == -1) { in spawn_pager()
|
| /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/tools/tools/nanobsd/embedded/ |
| H A D | common | 634 …MK_AUTO_OBJ=no TARGET=${NANO_TARGET} TARGET_ARCH=${NANO_ARCH} -f Makefile.inc1 buildenv -V TMPPATH)
|
| /freebsd/usr.bin/diff/ |
| H A D | diff.c | 408 if (pledge("stdio rpath tmppath", NULL) == -1) in main()
|
| /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() 1907 uma_zfree(namei_zone, tmppath); in kern_symlinkat()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | Darwin.cpp | 257 auto *TmpPath = C.getArgs().MakeArgString(TmpPathName); in AddLinkArgs() local 258 C.addTempFile(TmpPath); in AddLinkArgs() 260 CmdArgs.push_back(TmpPath); in AddLinkArgs()
|