/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_coverage_libcdep_new.cpp | 49 static void WriteModuleCoverage(char* file_path, const char* module_name, in WriteModuleCoverage() argument 51 GetCoverageFilename(file_path, StripModuleName(module_name), "sancov"); in WriteModuleCoverage() 52 fd_t fd = OpenFile(file_path); in WriteModuleCoverage() 56 Printf("SanitizerCoverage: %s: %zd PCs written\n", file_path, len); in WriteModuleCoverage() 62 char* file_path = static_cast<char*>(InternalAlloc(kMaxPathLength)); in SanitizerDumpCoverage() local 86 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 98 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 102 InternalFree(file_path); in SanitizerDumpCoverage() 170 const char* file_path = common_flags()->cov_8bit_counters_out; in DumpCoverage() 171 if (file_path in DumpCoverage() 169 const char* file_path = common_flags()->cov_8bit_counters_out; DumpCoverage() local [all...] |
H A D | sanitizer_suppressions.cpp | 34 static bool GetPathAssumingFileIsRelativeToExec(const char *file_path, in GetPathAssumingFileIsRelativeToExec() argument 43 internal_strncat(new_file_path, file_path, in GetPathAssumingFileIsRelativeToExec() 50 static const char *FindFile(const char *file_path, in FindFile() argument 55 if (!FileExists(file_path) && !IsAbsolutePath(file_path) && in FindFile() 56 GetPathAssumingFileIsRelativeToExec(file_path, new_file_path, in FindFile() 60 return file_path; in FindFile() 63 static const char *FindFile(const char *file_path, char *, uptr) { in FindFile() argument 64 return file_path; in FindFile()
|
/freebsd-src/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rwtoro.c | 50 static char file_path[MAXPATHLEN]; variable 96 snprintf(file_path, sizeof(file_path), "%s/file", prefix); in open_file_ro() 97 RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777)); in open_file_ro() 99 RL(file_fd = rump_sys_open(file_path, O_RDONLY)); in open_file_ro() 106 snprintf(file_path, sizeof(file_path), "%s/file", prefix); in open_file_ro_unlink() 107 RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777)); in open_file_ro_unlink() 109 RL(file_fd = rump_sys_open(file_path, O_RDONLY)); in open_file_ro_unlink() 110 RL(rump_sys_unlink(file_path)); in open_file_ro_unlink() 117 snprintf(file_path, sizeof(file_path), "%s/file", prefix); in open_file_rw() 118 RL(file_fd = rump_sys_open(file_path, O_CREAT | O_RDWR, 0777)); in open_file_rw()
|
/freebsd-src/tools/tools/nanobsd/Files/root/ |
H A D | save_cfg | 48 file_path=`echo "$filename" | sed 's/\/[^/]*$//'` 49 if [ $file_path != $filename ] 51 if [ ! -d /etc/$file_path ] 55 echo "Error: Path /etc/$file_path is not directory." 73 if [ $file_path != $filename ] 75 mkdir -vp /cfg/$file_path 81 if [ $file_path != $filename ] 83 mkdir -vp /cfg/.ignore/$file_path
|
/freebsd-src/tools/regression/security/open_to_operation/ |
H A D | open_to_operation.c | 1068 char dir_path[PATH_MAX], file_path[PATH_MAX]; in main() local 1087 strlcpy(file_path, "/tmp/open-file.XXXXXXXXXXX", sizeof(file_path)); in main() 1088 fd = mkstemp(file_path); in main() 1095 if (chmod(file_path, PERM_FILE) < 0) { in main() 1096 warn("chmod %s", file_path); in main() 1097 (void)unlink(file_path); in main() 1104 check_dup("check_dup_file", file_path, file_modes, file_modes_count); in main() 1107 check_dup2("check_dup2_file", file_path, file_modes, in main() 1114 check_fchflags("check_fchflags_file", file_path, file_modes, in main() 1119 check_fchmod("check_fchmod_file", file_path, PERM_FILE, file_modes, in main() [all …]
|
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mmapwrite.c | 60 char *file_path = filename; in normal_writer() local 65 fd = open(file_path, O_RDWR | O_CREAT, 0777); in normal_writer() 67 err(1, "failed to open %s", file_path); in normal_writer() 80 err(1, "lseek failed on %s: %s", file_path, in normal_writer() 99 char *file_path = filename; in map_writer() local 102 fd = open(file_path, O_RDWR); in map_writer() 105 fd = open(file_path, O_RDWR | O_CREAT, 0777); in map_writer()
|
H A D | mmap_seek.c | 74 char *file_path = argv[1]; in main() 84 int fd = open(file_path, O_RDWR | O_CREAT, 0666); in main() 86 (void) fprintf(stderr, "%s: %s: ", execname, file_path); in main() 64 char *file_path = argv[1]; main() local
|
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_ids_to_path/ |
H A D | zfs_ids_to_path_001_pos.ksh | 51 typeset file_path="$3" 54 typeset file_id=$(ls -i /$mntpnt/$file_path | sed 's/ .*//') 56 [[ "$output" == "$mntpnt/$file_path" ]] || \ 59 [[ "$output" == "$ds_path:/$file_path" ]] || \ 63 [[ "$output" == "$ds_path:/$file_path" ]] || \ 66 [[ "$output" == "$ds_path:/$file_path" ]] || \
|
/freebsd-src/contrib/googletest/googletest/test/ |
H A D | gtest_list_output_unittest.py | 246 file_path = os.path.join( 255 '%s=%s:%s' % (GTEST_OUTPUT_FLAG, out_format, file_path), 265 self.assertTrue(os.path.isfile(file_path)) 266 with open(file_path) as f:
|
H A D | googletest-filepath-test.cc | 540 FilePath file_path(FilePath::GenerateUniqueFileName( in TEST_F() local 542 EXPECT_EQ(unique_file0_.string(), file_path.string()); in TEST_F() 543 EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file not there in TEST_F() 546 EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file still not there in TEST_F() 547 CreateTextFile(file_path.c_str()); in TEST_F() 548 EXPECT_TRUE(file_path.FileOrDirectoryExists()); in TEST_F()
|
/freebsd-src/contrib/libcbor/misc/ |
H A D | update_version.py | 18 def replace(file_path, pattern, replacement): argument 20 original = open(file_path).read() 23 with open(file_path, 'w') as f:
|
/freebsd-src/crypto/openssl/test/ |
H A D | ct_test.c | 94 char *file_path = test_mk_file_path(dir, file); in load_pem_cert() local 96 if (file_path != NULL) { in load_pem_cert() 97 BIO *cert_io = BIO_new_file(file_path, "r"); in load_pem_cert() 104 OPENSSL_free(file_path); in load_pem_cert() 112 char *file_path = test_mk_file_path(dir, file); in read_text_file() local 114 if (file_path != NULL) { in read_text_file() 115 BIO *file_io = BIO_new_file(file_path, "r"); in read_text_file() 122 OPENSSL_free(file_path); in read_text_file()
|
/freebsd-src/contrib/llvm-project/lldb/source/API/ |
H A D | SBDeclaration.cpp | 153 char file_path[PATH_MAX * 2]; in GetDescription() local 154 m_opaque_up->GetFile().GetPath(file_path, sizeof(file_path)); in GetDescription() 155 strm.Printf("%s:%u", file_path, GetLine()); in GetDescription()
|
H A D | SBLineEntry.cpp | 185 char file_path[PATH_MAX * 2]; 186 m_opaque_up->GetFile().GetPath(file_path, sizeof(file_path)); 187 strm.Printf("%s:%u", file_path, GetLine()); 170 char file_path[PATH_MAX * 2]; GetDescription() local
|
/freebsd-src/contrib/llvm-project/lldb/source/Host/common/ |
H A D | ZipFileResolver.cpp | 20 std::string &file_path, in ResolveSharedLibraryPath() argument 42 file_path = path; in ResolveSharedLibraryPath() 67 file_path = zip_path; in ResolveSharedLibraryPath()
|
/freebsd-src/contrib/llvm-project/lldb/source/Utility/ |
H A D | ZipFile.cpp | 132 const llvm::StringRef file_path, lldb::offset_t &file_offset, in FindFile() argument 152 if (file_path == llvm::StringRef(file_name, file_name_length)) { in FindFile() 173 bool ZipFile::Find(lldb::DataBufferSP zip_data, const llvm::StringRef file_path, in Find() argument 179 return FindFile(zip_data, eocd, file_path, file_offset, file_size); in Find()
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Language/ObjCPlusPlus/ |
H A D | ObjCPlusPlusLanguage.cpp | 19 bool ObjCPlusPlusLanguage::IsSourceFile(llvm::StringRef file_path) const { in LLDB_PLUGIN_DEFINE() 22 if (file_path.ends_with_insensitive(suffix)) in LLDB_PLUGIN_DEFINE()
|
H A D | ObjCPlusPlusLanguage.h | 34 bool IsSourceFile(llvm::StringRef file_path) const override;
|
/freebsd-src/sys/contrib/openzfs/lib/libshare/os/linux/ |
H A D | smb.c | 77 char file_path[PATH_MAX], line[512], *token, *key, *value; in smb_retrieve_shares() local 98 snprintf(file_path, sizeof (file_path), in smb_retrieve_shares() 101 if ((fd = open(file_path, O_RDONLY | O_CLOEXEC)) == -1) { in smb_retrieve_shares()
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
H A D | DYLDRendezvous.cpp | 627 static bool isLoadBiasIncorrect(Target &target, const std::string &file_path) { in isLoadBiasIncorrect() argument 633 (file_path == "/system/bin/linker" || in isLoadBiasIncorrect() 634 file_path == "/system/bin/linker64"); in isLoadBiasIncorrect() 638 std::string const &file_path) { in UpdateBaseAddrIfNecessary() argument 641 if (isLoadBiasIncorrect(m_process->GetTarget(), file_path)) { in UpdateBaseAddrIfNecessary() 698 std::string file_path = ReadStringFromMemory(entry.path_addr); in ReadSOEntryFromMemory() local 699 entry.file_spec.SetFile(file_path, FileSpec::Style::native); in ReadSOEntryFromMemory() 701 UpdateBaseAddrIfNecessary(entry, file_path); in ReadSOEntryFromMemory()
|
/freebsd-src/contrib/llvm-project/lldb/source/Target/ |
H A D | Language.cpp | 109 Language *Language::FindPlugin(llvm::StringRef file_path) { in ForEach() 111 ForEach([&result, file_path](Language *language) { in ForEach() 112 if (language->IsSourceFile(file_path)) { in ForEach() 122 llvm::StringRef file_path) { in ForEach() 127 result = FindPlugin(file_path); in ForEach() 78 FindPlugin(llvm::StringRef file_path) FindPlugin() argument 91 FindPlugin(LanguageType language,llvm::StringRef file_path) FindPlugin() argument
|
/freebsd-src/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectSession.cpp | 31 llvm::StringRef file_path; 34 file_path = args[0].ref(); in HandleArgumentCompletion() 36 if (m_interpreter.SaveTranscript(result, file_path.str())) in HandleArgumentCompletion() 40 llvm::StringRef file_path; DoExecute() local
|
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | Language.h | 162 static Language *FindPlugin(llvm::StringRef file_path); 165 llvm::StringRef file_path); in GetUserEntryPointName() 178 virtual bool IsSourceFile(llvm::StringRef file_path) const = 0;
|
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | ZipFile.h | 24 static bool Find(lldb::DataBufferSP zip_data, const llvm::StringRef file_path,
|
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Host/common/ |
H A D | ZipFileResolver.h | 33 std::string &file_path,
|