| /src/contrib/googletest/googletest/test/ |
| H A D | gtest_premature_exit_test.cc | 49 static bool FileExists(const char* filepath) { in FileExists() argument 51 return Stat(filepath, &stat) == 0; in FileExists() 117 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 118 if (filepath != nullptr && *filepath != '\0') { in main() 119 if (PrematureExitTest::FileExists(filepath)) { in main() 122 filepath); in main()
|
| /src/crypto/krb5/src/util/windows/ |
| H A D | libecho.c | 44 char filepath[256]; in echo_files() local 53 strcpy(filepath, f); in echo_files() 55 slash = strrchr(filepath, '\\'); in echo_files() 61 filepath[0] = '\0'; in echo_files() 69 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files() 74 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files()
|
| /src/stand/efi/boot1/ |
| H A D | ufs_module.c | 138 load(const char *filepath, dev_info_t *dev, void **bufp, size_t *bufsize) in load() argument 148 DPRINTF("UFS Loading '%s' from %S\n", filepath, text); in load() 157 if ((ino = lookup(filepath)) == 0) { in load() 158 DPRINTF("Failed to lookup '%s' (file not found?)\n", filepath); in load() 163 printf("Failed to read size of '%s' ino: %d\n", filepath, ino); in load() 170 size, filepath); in load() 176 printf("Failed to read '%s' (%zd != %zu)\n", filepath, read, in load()
|
| H A D | zfs_module.c | 139 load(const char *filepath, dev_info_t *devinfo, void **bufp, size_t *bufsize) in load() argument 154 DPRINTF("load: '%s' spa: '%s', devpath: %S\n", filepath, in load() 208 if ((err = zfs_lookup(&zmount, filepath, &dn)) != 0) { in load() 211 filepath, spa->spa_name, err); in load() 214 printf("Failed to lookup '%s' on pool '%s' (%d)\n", filepath, in load() 220 printf("Failed to stat '%s' on pool '%s' (%d)\n", filepath, in load() 228 (intmax_t)st.st_size, spa->spa_name, filepath); in load()
|
| H A D | boot_module.h | 87 EFI_STATUS (*load)(const char *filepath, dev_info_t *devinfo,
|
| /src/crypto/krb5/src/lib/krb5/os/ |
| H A D | init_os_ctx.c | 292 char* filepath = 0; in os_get_default_config_files() local 298 filepath = DEFAULT_SECURE_PROFILE_PATH; in os_get_default_config_files() 300 filepath = secure_getenv("KRB5_CONFIG"); in os_get_default_config_files() 301 if (!filepath) filepath = DEFAULT_PROFILE_PATH; in os_get_default_config_files() 305 for(s = filepath, n_entries = 1; *s; s++) { in os_get_default_config_files() 316 for(s = filepath, i=0; (t = strchr(s, ':')) || (t=s+strlen(s)); s=t+1, i++) { in os_get_default_config_files()
|
| /src/crypto/krb5/src/util/support/ |
| H A D | plugins.c | 404 char *filepath = NULL; in krb5int_open_plugin_dirs() local 407 err = k5_path_join(dirnames[i], filenames[j], &filepath); in krb5int_open_plugin_dirs() 409 if (!err && krb5int_open_plugin(filepath, &handle, ep) == 0) { in krb5int_open_plugin_dirs() 415 free(filepath); in krb5int_open_plugin_dirs() 424 char *filepath = NULL; in krb5int_open_plugin_dirs() local 431 err = k5_path_join(dirnames[i], fnames[j], &filepath); in krb5int_open_plugin_dirs() 433 if (!err && krb5int_open_plugin(filepath, &handle, ep) == 0) { in krb5int_open_plugin_dirs() 440 free(filepath); in krb5int_open_plugin_dirs()
|
| /src/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | mmap_sync.c | 73 char filepath[512]; in main() local 74 filepath[0] = '\0'; in main() 75 char *file = &filepath[0]; in main()
|
| H A D | crypto_test.c | 199 load_tests(const char *filepath, crypto_test_alg_t *algp) in load_tests() argument 206 if ((fh = fopen(filepath, "r")) == NULL) { in load_tests() 208 filepath, strerror(errno)); in load_tests() 213 const char *filename = &filepath[strlen(filepath)-1]; in load_tests() 214 while (filename != filepath) { in load_tests() 472 filepath, strerror(errno)); in load_tests() 480 fprintf(stderr, "E: no tests in %s\n", filepath); in load_tests()
|
| /src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.cpp | 87 const char *StripPathPrefix(const char *filepath, in StripPathPrefix() argument 89 if (!filepath) return nullptr; in StripPathPrefix() 90 if (!strip_path_prefix) return filepath; in StripPathPrefix() 91 const char *res = filepath; in StripPathPrefix() 92 if (const char *pos = internal_strstr(filepath, strip_path_prefix)) in StripPathPrefix()
|
| H A D | sanitizer_win.cpp | 489 const char *filepath; member 513 module_infos[i].filepath = modules[i].full_name(); in DumpProcessMap() 524 mi.filepath[0] ? mi.filepath : "[no name]"); in DumpProcessMap() 525 } else if (mi.filepath[0]) { in DumpProcessMap() 526 Printf("\t??\?-??? %s\n", mi.filepath); in DumpProcessMap()
|
| /src/contrib/opencsd/decoder/source/ |
| H A D | ocsd_dcd_tree.cpp | 256 …mAcc(const ocsd_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const std::string &filepath) in addBinFileMemAcc() argument 261 if(filepath.length() == 0) in addBinFileMemAcc() 265 ocsd_err_t err = TrcMemAccFactory::CreateFileAccessor(&p_accessor,filepath,address); in addBinFileMemAcc() 285 …on_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const std::string &filepath) in addBinFileRegionMemAcc() argument 290 if((region_array == 0) || (num_regions == 0) || (filepath.length() == 0)) in addBinFileRegionMemAcc() 297 …ocsd_err_t err = TrcMemAccFactory::CreateFileAccessor(&p_accessor,filepath,region_array[curr_regio… in addBinFileRegionMemAcc() 326 …on_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const std::string &filepath) in updateBinFileRegionMemAcc() argument 331 if ((region_array == 0) || (num_regions == 0) || (filepath.length() == 0)) in updateBinFileRegionMemAcc() 334 TrcMemAccessorFile *pAcc = TrcMemAccessorFile::getExistingFileAccessor(filepath); in updateBinFileRegionMemAcc()
|
| /src/contrib/opencsd/decoder/include/common/ |
| H A D | ocsd_dcd_tree.h | 323 …Acc(const ocsd_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const std::string &filepath); 338 …n_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const std::string &filepath); 354 …n_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const std::string &filepath);
|
| /src/libexec/nuageinit/tests/ |
| H A D | addfile.lua | 24 local filepath = root .. file.path 25 local resf = assert(io.open(filepath, "r"))
|
| /src/libexec/rbootd/ |
| H A D | rmpproto.c | 280 char *filename, filepath[RMPBOOTDATA+1]; in SendBootRepl() local 311 dst1 = filepath; in SendBootRepl() 325 filename = strrchr(filepath,'/'); in SendBootRepl() 326 filename = filename? filename + 1: filepath; in SendBootRepl()
|
| /src/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_lineno.c | 36 FILE *filepath; in _dwarf_lineno_add_file() local 60 filepath = open_memstream(&lf->lf_fullpath, &slen); in _dwarf_lineno_add_file() 61 if (filepath == NULL) { in _dwarf_lineno_add_file() 77 fprintf(filepath, "%s/", compdir); in _dwarf_lineno_add_file() 79 fprintf(filepath, "%s/", incdir); in _dwarf_lineno_add_file() 80 fprintf(filepath, "%s", lf->lf_fname); in _dwarf_lineno_add_file() 81 if (fclose(filepath) != 0) { in _dwarf_lineno_add_file()
|
| /src/contrib/atf/atf-sh/ |
| H A D | atf-sh.cpp | 50 const atf::fs::path filepath(filename); in fix_plain_name() local 51 if (filepath.branch_path().str() == ".") in fix_plain_name()
|
| /src/contrib/opencsd/decoder/include/opencsd/c_api/ |
| H A D | opencsd_c_api.h | 265 …t handle, const ocsd_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const char *filepath); 284 …*region_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const char *filepath);
|
| /src/sys/contrib/dev/athk/ath12k/ |
| H A D | core.c | 243 char *filename, filepath[100]; in ath12k_core_fetch_board_data_api_n() local 264 filepath, sizeof(filepath)); in ath12k_core_fetch_board_data_api_n() 270 filepath, len); in ath12k_core_fetch_board_data_api_n() 285 filepath, len); in ath12k_core_fetch_board_data_api_n() 339 boardname, filepath); in ath12k_core_fetch_board_data_api_n()
|
| /src/sys/contrib/dev/athk/ath11k/ |
| H A D | core.c | 1662 char *filename, filepath[100]; in ath11k_core_fetch_board_data_api_n() local 1683 filepath, sizeof(filepath)); in ath11k_core_fetch_board_data_api_n() 1689 filepath, len); in ath11k_core_fetch_board_data_api_n() 1704 filepath, len); in ath11k_core_fetch_board_data_api_n() 1760 boardname, filepath); in ath11k_core_fetch_board_data_api_n() 1791 char *filename, filepath[100]; in ath11k_core_fetch_bdf() local 1861 filepath, sizeof(filepath)); in ath11k_core_fetch_bdf() 1863 boardname, filepath); in ath11k_core_fetch_bdf() 1866 fallback_boardname, filepath); in ath11k_core_fetch_bdf() 1869 chip_id_boardname, filepath); in ath11k_core_fetch_bdf()
|
| /src/libexec/nuageinit/ |
| H A D | nuage.lua | 666 local filepath = root .. file.path 667 local f = assert(io.open(filepath, mode)) 673 chmod(filepath, file.permissions) 680 chown(filepath, owner, group)
|
| /src/contrib/opencsd/decoder/source/c_api/ |
| H A D | ocsd_c_api.cpp | 383 …e_t handle, const ocsd_vaddr_t address, const ocsd_mem_space_acc_t mem_space, const char *filepath) in ocsd_dt_add_binfile_mem_acc() argument 389 err = pDT->addBinFileMemAcc(address,mem_space,filepath); in ocsd_dt_add_binfile_mem_acc() 393 …t *region_array, const int num_regions, const ocsd_mem_space_acc_t mem_space, const char *filepath) in ocsd_dt_add_binfile_region_mem_acc() argument 399 err = pDT->addBinFileRegionMemAcc(region_array,num_regions,mem_space,filepath); in ocsd_dt_add_binfile_region_mem_acc()
|
| /src/lib/googletest/tests/gtest_main/ |
| H A D | Makefile | 6 GTESTS+= googletest-filepath-test
|
| /src/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_device_path_os.c | 175 zfs_read_sysfs_file(char *filepath) in zfs_read_sysfs_file() argument 180 FILE *fp = fopen(filepath, "r"); in zfs_read_sysfs_file()
|
| /src/lib/googletest/gtest/ |
| H A D | Makefile | 30 INTERNAL_INCS+= gtest/internal/gtest-filepath.h
|