| /freebsd-13.1/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-13.1/tools/tools/nanobsd/Files/root/ |
| H A D | save_cfg | 49 file_path=`echo "$filename" | sed 's/\/[^/]*$//'` 50 if [ $file_path != $filename ] 52 if [ ! -d /etc/$file_path ] 56 echo "Error: Path /etc/$file_path is not directory." 74 if [ $file_path != $filename ] 76 mkdir -vp /cfg/$file_path 82 if [ $file_path != $filename ] 84 mkdir -vp /cfg/.ignore/$file_path
|
| /freebsd-13.1/tools/regression/security/open_to_operation/ |
| H A D | open_to_operation.c | 1071 char dir_path[PATH_MAX], file_path[PATH_MAX]; in main() local 1090 strlcpy(file_path, "/tmp/open-file.XXXXXXXXXXX", sizeof(file_path)); in main() 1091 fd = mkstemp(file_path); in main() 1098 if (chmod(file_path, PERM_FILE) < 0) { in main() 1099 warn("chmod %s", file_path); in main() 1100 (void)unlink(file_path); in main() 1110 check_dup2("check_dup2_file", file_path, file_modes, in main() 1131 check_flock("check_flock_file", file_path, file_modes, in main() 1200 file_path, file_modes, file_modes_count); in main() 1227 file_path, file_modes, file_modes_count); in main() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/mmapwrite/ |
| H A D | mmapwrite.c | 59 char *file_path = filename; in normal_writer() local 64 fd = open(file_path, O_RDWR | O_CREAT, 0777); in normal_writer() 66 err(1, "failed to open %s", file_path); in normal_writer() 92 char *file_path = filename; in map_writer() local 95 ret = access(file_path, F_OK); in map_writer() 99 fd = open(file_path, O_RDWR | O_CREAT, 0777); in map_writer() 112 fd = open(file_path, O_RDWR, 0777); in map_writer()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| 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()
|
| H A D | sanitizer_coverage_libcdep_new.cpp | 47 static void WriteModuleCoverage(char* file_path, const char* module_name, in WriteModuleCoverage() argument 49 GetCoverageFilename(file_path, StripModuleName(module_name), "sancov"); in WriteModuleCoverage() 50 fd_t fd = OpenFile(file_path); in WriteModuleCoverage() 54 Printf("SanitizerCoverage: %s: %zd PCs written\n", file_path, len); in WriteModuleCoverage() 60 char* file_path = static_cast<char*>(InternalAlloc(kMaxPathLength)); in SanitizerDumpCoverage() local 83 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 96 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 100 InternalFree(file_path); in SanitizerDumpCoverage()
|
| /freebsd-13.1/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-13.1/contrib/libcbor/misc/ |
| H A D | update_version.py | 9 def replace(file_path, pattern, replacement): argument 10 updated = re.sub(pattern, replacement, open(file_path).read()) 11 with open(file_path, 'w') as f:
|
| /freebsd-13.1/contrib/googletest/googletest/test/ |
| H A D | gtest_list_output_unittest.py | 103 file_path = os.path.join(gtest_test_utils.GetTempDir(), 110 '%s=%s:%s' % (GTEST_OUTPUT_FLAG, out_format, file_path), 119 with open(file_path) as f:
|
| H A D | googletest-filepath-test.cc | 535 FilePath file_path(FilePath::GenerateUniqueFileName(testdata_path_, in TEST_F() local 537 EXPECT_EQ(unique_file0_.string(), file_path.string()); in TEST_F() 538 EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file not there in TEST_F() 541 EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file still not there in TEST_F() 542 CreateTextFile(file_path.c_str()); in TEST_F() 543 EXPECT_TRUE(file_path.FileOrDirectoryExists()); in TEST_F()
|
| /freebsd-13.1/contrib/serf/buckets/ |
| H A D | file_buckets.c | 50 const char *file_path; in serf_bucket_file_create() local 59 apr_file_name_get(&file_path, file); in serf_bucket_file_create() 60 apr_stat(&finfo, file_path, APR_FINFO_SIZE, in serf_bucket_file_create()
|
| /freebsd-13.1/sys/contrib/openzfs/lib/libshare/os/linux/ |
| H A D | smb.c | 80 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 (stat(file_path, &eStat) == -1) { in smb_retrieve_shares() 110 if ((share_file_fp = fopen(file_path, "re")) == NULL) { in smb_retrieve_shares()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/API/ |
| H A D | SBDeclaration.cpp | 166 char file_path[PATH_MAX * 2]; in GetDescription() local 167 m_opaque_up->GetFile().GetPath(file_path, sizeof(file_path)); in GetDescription() 168 strm.Printf("%s:%u", file_path, GetLine()); in GetDescription()
|
| H A D | SBLineEntry.cpp | 179 char file_path[PATH_MAX * 2]; in GetDescription() local 180 m_opaque_up->file.GetPath(file_path, sizeof(file_path)); in GetDescription() 181 strm.Printf("%s:%u", file_path, GetLine()); in GetDescription()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_seek/ |
| H A D | mmap_seek.c | 64 char *file_path = argv[1]; in main() local 74 int fd = open(file_path, O_RDWR | O_CREAT, 0666); in main() 76 (void) fprintf(stderr, "%s: %s: ", execname, file_path); in main()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | LocateSymbolFileMacOSX.cpp | 580 char file_path[PATH_MAX]; in DownloadObjectAndSymbolFile() local 581 file_path[0] = '\0'; in DownloadObjectAndSymbolFile() 587 file_spec_ptr->GetPath(file_path, sizeof(file_path)); in DownloadObjectAndSymbolFile() 593 else if (file_path[0] != '\0') in DownloadObjectAndSymbolFile() 595 g_dsym_for_uuid_exe_path, file_path); in DownloadObjectAndSymbolFile() 606 else if (file_path[0] != '\0') in DownloadObjectAndSymbolFile() 608 g_dsym_for_uuid_exe_path, file_path); in DownloadObjectAndSymbolFile() 670 else if (file_path[0] != '\0') in DownloadObjectAndSymbolFile() 672 g_dsym_for_uuid_exe_path, file_path); in DownloadObjectAndSymbolFile()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
| H A D | DYLDRendezvous.cpp | 491 static bool isLoadBiasIncorrect(Target &target, const std::string &file_path) { in isLoadBiasIncorrect() argument 497 (file_path == "/system/bin/linker" || in isLoadBiasIncorrect() 498 file_path == "/system/bin/linker64"); in isLoadBiasIncorrect() 502 std::string const &file_path) { in UpdateBaseAddrIfNecessary() argument 505 if (isLoadBiasIncorrect(m_process->GetTarget(), file_path)) { in UpdateBaseAddrIfNecessary() 549 std::string file_path = ReadStringFromMemory(entry.path_addr); in ReadSOEntryFromMemory() local 550 entry.file_spec.SetFile(file_path, FileSpec::Style::native); in ReadSOEntryFromMemory() 552 UpdateBaseAddrIfNecessary(entry, file_path); in ReadSOEntryFromMemory()
|
| /freebsd-13.1/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.endswith_insensitive(suffix)) in LLDB_PLUGIN_DEFINE()
|
| H A D | ObjCPlusPlusLanguage.h | 32 bool IsSourceFile(llvm::StringRef file_path) const override;
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Target/ |
| H A D | Language.cpp | 78 Language *Language::FindPlugin(llvm::StringRef file_path) { in FindPlugin() argument 80 ForEach([&result, file_path](Language *language) { in FindPlugin() 81 if (language->IsSourceFile(file_path)) { in FindPlugin() 91 llvm::StringRef file_path) { in FindPlugin() argument 96 result = FindPlugin(file_path); in FindPlugin()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Commands/ |
| H A D | CommandObjectSession.cpp | 40 llvm::StringRef file_path; in DoExecute() local 43 file_path = args[0].ref(); in DoExecute() 45 if (m_interpreter.SaveTranscript(result, file_path.str())) in DoExecute()
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_fs/ |
| H A D | rev_file.c | 64 const char *file_path; member 80 err = svn_io_set_file_read_only(ro_baton->file_path, TRUE, ro_baton->pool); in set_read_only() 111 baton->file_path = apr_pstrdup(result_pool, path); in auto_make_writable()
|
| H A D | fs.c | 482 const char *file_path; in fs_open_for_recovery() local 493 file_path = svn_fs_fs__path_current(fs, subpool); in fs_open_for_recovery() 497 SVN_ERR(svn_io_remove_file2(file_path, TRUE, subpool)); in fs_open_for_recovery() 498 SVN_ERR(svn_io_file_create_empty(file_path, subpool)); in fs_open_for_recovery()
|
| /freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Target/ |
| H A D | Language.h | 154 static Language *FindPlugin(llvm::StringRef file_path); 157 llvm::StringRef file_path); 166 virtual bool IsSourceFile(llvm::StringRef file_path) const = 0;
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_x/ |
| H A D | fs.c | 436 const char *file_path; in x_open_for_recovery() local 447 file_path = svn_fs_x__path_current(fs, subpool); in x_open_for_recovery() 451 SVN_ERR(svn_io_remove_file2(file_path, TRUE, subpool)); in x_open_for_recovery() 452 SVN_ERR(svn_io_file_create_empty(file_path, subpool)); in x_open_for_recovery()
|