Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_coverage_libcdep_new.cpp49 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() local
171 if (file_path && internal_strlen(file_path)) { in DumpCoverage()
[all …]
H A Dsanitizer_suppressions.cpp34 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/contrib/netbsd-tests/fs/vfs/
H A Dt_rwtoro.c50 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/tools/tools/nanobsd/Files/root/
H A Dsave_cfg48 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/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c1068 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/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmmapwrite.c61 char *file_path = filename; in normal_writer() local
66 fd = open(file_path, O_RDWR | O_CREAT, 0777); in normal_writer()
68 err(1, "failed to open %s", file_path); in normal_writer()
81 err(1, "lseek failed on %s: %s", file_path, in normal_writer()
100 char *file_path = filename; in map_writer() local
103 fd = open(file_path, O_RDWR); in map_writer()
106 fd = open(file_path, O_RDWR | O_CREAT, 0777); in map_writer()
H A Dmmap_seek.c75 char *file_path = argv[1]; in main() local
85 int fd = open(file_path, O_RDWR | O_CREAT, 0666); in main()
87 (void) fprintf(stderr, "%s: %s: ", execname, file_path); in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_ids_to_path/
H A Dzfs_ids_to_path_001_pos.ksh52 typeset file_path="$3"
55 typeset file_id=$(ls -i /$mntpnt/$file_path | sed 's/ .*//')
57 [[ "$output" == "$mntpnt/$file_path" ]] || \
60 [[ "$output" == "$ds_path:/$file_path" ]] || \
64 [[ "$output" == "$ds_path:/$file_path" ]] || \
67 [[ "$output" == "$ds_path:/$file_path" ]] || \
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_list_output_unittest.py246 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 Dgoogletest-filepath-test.cc540 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/contrib/libcbor/misc/
H A Dupdate_version.py18 def replace(file_path, pattern, replacement): argument
20 original = open(file_path).read()
23 with open(file_path, 'w') as f:
/freebsd/crypto/openssl/test/
H A Dct_test.c94 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/contrib/llvm-project/lldb/source/API/
H A DSBDeclaration.cpp153 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 DSBLineEntry.cpp185 char file_path[PATH_MAX * 2]; in GetDescription() local
186 m_opaque_up->GetFile().GetPath(file_path, sizeof(file_path)); in GetDescription()
187 strm.Printf("%s:%u", file_path, GetLine()); in GetDescription()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DZipFileResolver.cpp20 std::string &file_path, in ResolveSharedLibraryPath() argument
42 file_path = path; in ResolveSharedLibraryPath()
67 file_path = zip_path; in ResolveSharedLibraryPath()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DZipFile.cpp132 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/contrib/llvm-project/lldb/source/Plugins/Language/ObjCPlusPlus/
H A DObjCPlusPlusLanguage.cpp19 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 DObjCPlusPlusLanguage.h34 bool IsSourceFile(llvm::StringRef file_path) const override; in GetHighlighter()
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/
H A DDYLDRendezvous.cpp627 static bool isLoadBiasIncorrect(Target &target, const std::string &file_path) { in GetThreadInfo()
633 (file_path == "/system/bin/linker" || in GetThreadInfo()
634 file_path == "/system/bin/linker64"); in GetThreadInfo()
638 std::string const &file_path) { in GetThreadInfo()
641 if (isLoadBiasIncorrect(m_process->GetTarget(), file_path)) {
698 std::string file_path = ReadStringFromMemory(entry.path_addr);
699 entry.file_spec.SetFile(file_path, FileSpec::Style::native);
701 UpdateBaseAddrIfNecessary(entry, file_path);
516 isLoadBiasIncorrect(Target & target,const std::string & file_path) isLoadBiasIncorrect() argument
527 UpdateBaseAddrIfNecessary(SOEntry & entry,std::string const & file_path) UpdateBaseAddrIfNecessary() argument
587 std::string file_path = ReadStringFromMemory(entry.path_addr); ReadSOEntryFromMemory() local
/freebsd/sys/contrib/openzfs/lib/libshare/os/linux/
H A Dsmb.c78 char file_path[PATH_MAX], line[512], *token, *key, *value; in smb_retrieve_shares() local
99 snprintf(file_path, sizeof (file_path), in smb_retrieve_shares()
102 if ((fd = open(file_path, O_RDONLY | O_CLOEXEC)) == -1) { in smb_retrieve_shares()
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectSession.cpp31 llvm::StringRef file_path; in DoExecute() local
34 file_path = args[0].ref(); in DoExecute()
36 if (m_interpreter.SaveTranscript(result, file_path.str())) in DoExecute()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DLanguage.cpp109 Language *Language::FindPlugin(llvm::StringRef file_path) { in FindPlugin() argument
111 ForEach([&result, file_path](Language *language) { in FindPlugin()
112 if (language->IsSourceFile(file_path)) { in FindPlugin()
122 llvm::StringRef file_path) { in FindPlugin() argument
127 result = FindPlugin(file_path); in FindPlugin()
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DLanguage.h162 static Language *FindPlugin(llvm::StringRef file_path);
165 llvm::StringRef file_path);
178 virtual bool IsSourceFile(llvm::StringRef file_path) const = 0;
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DZipFile.h24 static bool Find(lldb::DataBufferSP zip_data, const llvm::StringRef file_path,
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/common/
H A DZipFileResolver.h33 std::string &file_path,

12