| /freebsd-14.2/contrib/atf/atf-c++/ |
| H A D | utils.cpp | 38 atf_utils_cat_file(path.c_str(), prefix.c_str()); in cat_file() 44 atf_utils_copy_file(source.c_str(), destination.c_str()); in copy_file() 50 return atf_utils_compare_file(path.c_str(), contents.c_str()); in compare_file() 56 atf_utils_create_file(path.c_str(), "%s", contents.c_str()); in create_file() 62 return atf_utils_file_exists(path.c_str()); in file_exists() 83 return atf_utils_grep_file("%s", path.c_str(), regex.c_str()); in grep_file() 89 return atf_utils_grep_string("%s", str.c_str(), regex.c_str()); in grep_string() 99 atf_utils_redirect(fd, path.c_str()); in redirect() 106 atf_utils_wait(pid, exitstatus, expout.c_str(), experr.c_str()); in wait()
|
| H A D | tests.cpp | 214 *ptr = (*iter).first.c_str(); in init() 215 *(ptr + 1) = (*iter).second.c_str(); in init() 255 return atf_tc_get_config_var_wd(&pimpl->m_tc, var.c_str(), defval.c_str()); in get_config_var() 287 atf_error_t err = atf_tc_set_md_var(&pimpl->m_tc, var.c_str(), val.c_str()); in set_md_var() 325 atf_tc_require_prog(prog.c_str()); in require_prog() 337 atf_tc_fail("%s", reason.c_str()); in fail() 343 atf_tc_fail_nonfatal("%s", reason.c_str()); in fail_nonfatal() 349 atf_tc_skip("%s", reason.c_str()); in skip() 375 atf_tc_expect_fail("%s", reason.c_str()); in expect_fail() 393 atf_tc_expect_death("%s", reason.c_str()); in expect_death() [all …]
|
| H A D | build.cpp | 81 atf_error_t err = atf_build_c_o(sfile.c_str(), ofile.c_str(), in c_o() 95 atf_error_t err = atf_build_cpp(sfile.c_str(), ofile.c_str(), in cpp() 109 atf_error_t err = atf_build_cxx_o(sfile.c_str(), ofile.c_str(), in cxx_o()
|
| /freebsd-14.2/contrib/googletest/googletest/test/ |
| H A D | googletest-options-test.cc | 96 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST() 98 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST() 108 _strcmpi("gtest_all_test", exe_str.c_str()) == 0 || in TEST() 109 _strcmpi("gtest_dll_test", exe_str.c_str()) == 0; in TEST() 114 strcasecmp("gtest_all_test", exe_str.c_str()) == 0 || in TEST() 115 strcasecmp("gtest_dll_test", exe_str.c_str()) == 0; in TEST() 139 posix::ChDir(original_working_dir_.string().c_str()); in TearDown() 180 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST_F() 182 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST_F() 212 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST_F() [all …]
|
| /freebsd-14.2/cddl/usr.sbin/zfsd/ |
| H A D | case_file.cc | 151 physPath.c_str()); in Find() 280 PoolGUIDString().c_str(), in ReEvaluate() 299 PoolGUIDString().c_str(), VdevGUIDString().c_str()); in ReEvaluate() 322 devPath.c_str(), in ReEvaluate() 342 PoolGUIDString().c_str(), in ReEvaluate() 379 PoolGUIDString().c_str(), VdevGUIDString().c_str(), in ReEvaluate() 380 devPath.c_str()); in ReEvaluate() 735 VdevGUIDString().c_str(), PhysicalPath().c_str()); in Log() 818 unlink(fullName.c_str()); in DeSerializeFile() 1004 PoolGUIDString().c_str(), VdevGUIDString().c_str(), in Close() [all …]
|
| /freebsd-14.2/contrib/bsnmp/tests/ |
| H A D | snmp_parse_server.cc | 42 REQUIRE(try_parse(&sc, str.c_str()) == 0); 51 REQUIRE(try_parse(&sc, str.c_str()) == 0); 60 REQUIRE(try_parse(&sc, str.c_str()) == 0); 69 REQUIRE(try_parse(&sc, str.c_str()) == 0); 78 REQUIRE(try_parse(&sc, str.c_str()) == 0); 94 REQUIRE(try_parse(&sc, str.c_str()) == 0); 104 REQUIRE(try_parse(&sc, str.c_str()) == 0); 114 REQUIRE(try_parse(&sc, str.c_str()) == 0); 155 REQUIRE(try_parse(&sc, str.c_str()) == 0); 166 REQUIRE(try_parse(&sc, str.c_str()) == 0); [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIOWindows.cpp | 63 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile() 67 Path.c_str(), GetLastError()); in IsFile() 80 DWORD Att = GetFileAttributesA(Path.c_str()); in IsDirectory() 84 Path.c_str(), GetLastError()); in IsDirectory() 104 Path.c_str(), LastError); in FileSize() 127 HANDLE FindHandle(FindFirstFileA(Path.c_str(), &FindInfo)); in ListFilesInDirRecursive() 169 DWORD DirAttrs = GetFileAttributesA(Dir.c_str()); in IterateDirRecursive() 230 _unlink(Path.c_str()); in RemoveFile() 234 rename(OldPath.c_str(), NewPath.c_str()); in RenameFile() 405 if (CreateDirectoryA(Path.c_str(), nullptr)) return; in MkDir() [all …]
|
| H A D | FuzzerIOPosix.cpp | 29 if (stat(Path.c_str(), &St)) in IsFile() 36 if (stat(Path.c_str(), &St)) in IsDirectory() 43 if (stat(Path.c_str(), &St)) in FileSize() 61 DIR *D = opendir(Dir.c_str()); in ListFilesInDirRecursive() 63 Printf("%s: %s; exiting\n", strerror(errno), Dir.c_str()); in ListFilesInDirRecursive() 86 DIR *D = opendir(Dir.c_str()); in IterateDirRecursive() 123 unlink(Path.c_str()); in RemoveFile() 127 rename(OldPath.c_str(), NewPath.c_str()); in RenameFile() 136 memcpy(Tmp, FileName.c_str(), FileName.size() + 1); in DirName() 165 mkdir(Path.c_str(), 0700); in MkDir() [all …]
|
| H A D | FuzzerDataFlowTrace.cpp | 47 std::stringstream SS(L.c_str() + 1); in AppendCoverage() 133 Printf("DataFlowTrace: parse error: %s: Line: %s\n", Err, Line.c_str()); in ParseError() 148 *FunctionNum = std::atol(Line.c_str() + 1); in ParseDFTLine() 149 const char *Beg = Line.c_str() + SpacePos + 1; in ParseDFTLine() 150 const char *End = Line.c_str() + Line.size(); in ParseDFTLine() 164 Printf("INFO: DataFlowTrace: reading from '%s'\n", DirPath.c_str()); in Init() 202 FunctionNames[FocusFuncIdx].c_str()); in Init() 209 FunctionNames[i].c_str()); in Init() 238 Printf("%s => |%s|\n", Name.c_str(), std::string(DFTString).c_str()); in Init() 252 DFTBinary.c_str(), DirPath.c_str(), CorporaFiles.size()); in CollectDataFlow() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Interpreter/ |
| H A D | OptionValueString.cpp | 28 Args::ExpandEscapedCharacters(m_current_value.c_str(), in DumpValue() 31 strm.Printf("%s", expanded_escape_value.c_str()); in DumpValue() 33 strm.Printf("\"%s\"", expanded_escape_value.c_str()); in DumpValue() 36 strm.Printf("%s", m_current_value.c_str()); in DumpValue() 38 strm.Printf("\"%s\"", m_current_value.c_str()); in DumpValue() 70 error = m_validator(value_str.c_str(), m_validator_baton); in SetValueFromString() 82 Args::EncodeEscapeSequences(value_str.c_str(), str); in SetValueFromString() 88 error = m_validator(new_value.c_str(), m_validator_baton); in SetValueFromString() 104 error = m_validator(value_str.c_str(), m_validator_baton); in SetValueFromString() 110 Args::EncodeEscapeSequences(value_str.c_str(), m_current_value); in SetValueFromString() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Commands/ |
| H A D | CommandObjectHelp.cpp | 31 s->Printf("'%s' is not a known command.\n", command_str.c_str()); in GenerateAdditionalHelpAvenuesMessage() 33 prefix.str().c_str()); in GenerateAdditionalHelpAvenuesMessage() 36 prefix_str.c_str(), lookup_str.c_str()); in GenerateAdditionalHelpAvenuesMessage() 41 prefix_str.c_str(), lookup_str.c_str()); in GenerateAdditionalHelpAvenuesMessage() 138 s.Printf("ambiguous command %s", cmd_string.c_str()); in DoExecute() 149 &error_msg_stream, cmd_string.c_str(), in DoExecute() 150 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute() 155 &result.GetOutputStream(), cmd_string.c_str(), in DoExecute() 156 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute() 159 sub_cmd_obj->GetCommandName().str().c_str()); in DoExecute() [all …]
|
| /freebsd-14.2/contrib/atf/atf-c++/detail/ |
| H A D | env.cpp | 46 return atf_env_get(name.c_str()); in get() 52 return atf_env_get_with_default(name.c_str(), default_value.c_str()); in get() 58 return atf_env_has(name.c_str()); in has() 64 atf_error_t err = atf_env_set(name.c_str(), val.c_str()); in set() 72 atf_error_t err = atf_env_unset(name.c_str()); in unset()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Target/ |
| H A D | ThreadPlanPython.cpp | 48 : m_error_str.c_str()); in ValidatePlan() 67 m_class_name.c_str(), m_args_data, m_error_str, in DidPush() 76 m_class_name.c_str()); in ShouldStop() 95 m_class_name.c_str()); in IsPlanStale() 114 m_class_name.c_str()); in DoPlanExplainsStop() 133 m_class_name.c_str()); in MischiefManaged() 151 m_class_name.c_str()); in GetPlanRunState() 167 m_class_name.c_str()); in GetDescription() 176 m_class_name.c_str()); in GetDescription() 184 m_class_name.c_str()); in GetDescription() [all …]
|
| H A D | ModuleCache.cpp | 75 return JoinPath(modules_dir_spec, uuid.GetAsString().c_str()); in GetModuleDirectory() 99 module_uuid.GetAsString().c_str(), error.AsCString()); in DeleteExistingModule() 134 platform_module_spec.GetPath().c_str()); in CreateHostSysRootModuleLink() 160 m_file_spec = JoinPath(lock_dir_spec, uuid.GetAsString().c_str()); in ModuleLock() 204 module_file_path.GetPath().c_str(), in Put() 205 err_code.message().c_str()); in Put() 237 module_file_path.GetPath().c_str()); in Get() 285 module_spec.GetUUID().GetAsString().c_str(), in GetAndPut() 290 error = Get(root_dir_spec, escaped_hostname.c_str(), module_spec, in GetAndPut() 302 error = Put(root_dir_spec, escaped_hostname.c_str(), module_spec, in GetAndPut() [all …]
|
| /freebsd-14.2/lib/libpmc/ |
| H A D | libpmc_json.cc | 108 startent.c_str(), ev->pl_u.pl_a.pl_pmcid, ev->pl_u.pl_a.pl_event, in pmcallocate_to_json() 122 startent.c_str(), ev->pl_u.pl_t.pl_pmcid, ev->pl_u.pl_t.pl_pid, in pmcattach_to_json() 150 startent.c_str(), ev->pl_u.pl_c.pl_pmcid, ev->pl_u.pl_c.pl_pid, in proccsw_to_json() 166 startent.c_str(), ev->pl_u.pl_x.pl_pmcid, ev->pl_u.pl_x.pl_pid, in procexec_to_json() 183 startent.c_str(), ev->pl_u.pl_e.pl_pmcid, ev->pl_u.pl_e.pl_pid, in procexit_to_json() 209 startent.c_str(), ev->pl_u.pl_se.pl_pid); in sysexit_to_json() 221 startent.c_str(), ev->pl_u.pl_u.pl_userdata); in userdata_to_json() 234 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_in_to_json() 248 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_out_to_json() 301 startent.c_str(), ev->pl_u.pl_pc.pl_pid, in proccreate_to_json() [all …]
|
| /freebsd-14.2/contrib/kyua/utils/fs/ |
| H A D | operations.cpp | 176 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs() 187 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs() 310 if (::lstat(path.c_str(), &sb) == -1) { in safe_stat() 332 std::ifstream input(source.c_str()); in copy() 336 std::ofstream output(target.c_str()); in copy() 392 return ::access(path.c_str(), F_OK) == 0; in exists() 438 if (::statvfs(path.c_str(), &buf) == -1) { in free_disk_space() 446 if (::statfs(path.c_str(), &buf) == -1) { in free_disk_space() 564 if (::chmod(path.c_str(), 0755) == -1) { in mkdtemp_public() 724 if (::rmdir(file.c_str()) == -1) { in rmdir() [all …]
|
| H A D | auto_cleaners_test.cpp | 92 ATF_REQUIRE(::access((fs::path("tmp") / path_template).c_str(), in ATF_TEST_CASE_BODY() 96 ATF_REQUIRE(::access(auto_directory.directory().c_str(), X_OK) == 0); in ATF_TEST_CASE_BODY() 111 ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY() 117 ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY() 119 ATF_REQUIRE(::access(file.c_str(), R_OK) == -1); in ATF_TEST_CASE_BODY() 132 ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY() 135 ATF_REQUIRE(::access(file.c_str(), R_OK) == -1); in ATF_TEST_CASE_BODY() 148 ATF_REQUIRE(::access((fs::path("tmp") / path_template).c_str(), in ATF_TEST_CASE_BODY() 152 ATF_REQUIRE(::access(auto_file.file().c_str(), R_OK) == 0); in ATF_TEST_CASE_BODY()
|
| /freebsd-14.2/contrib/llvm-project/libcxx/src/support/ibm/ |
| H A D | xlocale_zos.cpp | 29 setlocale(LC_ALL, current_loc_name.c_str()); in newlocale() 64 setlocale(LC_ALL, current_loc_name.c_str()); in newlocale() 77 …(newloc->category_mask & LC_COLLATE_MASK && setlocale(LC_COLLATE, newloc->lc_collate.c_str()) == N… in uselocale() 78 …(newloc->category_mask & LC_CTYPE_MASK && setlocale(LC_CTYPE, newloc->lc_ctype.c_str()) == NULL) || in uselocale() 79 …category_mask & LC_MONETARY_MASK && setlocale(LC_MONETARY, newloc->lc_monetary.c_str()) == NULL) || in uselocale() 80 …(newloc->category_mask & LC_NUMERIC_MASK && setlocale(LC_NUMERIC, newloc->lc_numeric.c_str()) == N… in uselocale() 81 … (newloc->category_mask & LC_TIME_MASK && setlocale(LC_TIME, newloc->lc_time.c_str()) == NULL) || in uselocale() 82 …->category_mask & LC_MESSAGES_MASK && setlocale(LC_MESSAGES, newloc->lc_messages.c_str()) == NULL); in uselocale() 85 setlocale(LC_ALL, current_loc_name.c_str()); in uselocale()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/ |
| H A D | SymbolLocatorDebugSymbols.cpp | 198 uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 218 uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 480 dsym_fspec.GetPath().c_str()); in LocateDSYMInVincinityOfExecutable() 640 uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() 823 str.c_str()); in GetModuleSpecInfoFromUUIDDictionary() 1061 uuid_str.c_str()); in DownloadObjectAndSymbolFile() 1063 dsymForUUID_exe_path.c_str(), uuid_str.c_str(), in DownloadObjectAndSymbolFile() 1068 file_path_str.c_str()); in DownloadObjectAndSymbolFile() 1070 dsymForUUID_exe_path.c_str(), file_path_str.c_str(), in DownloadObjectAndSymbolFile() 1093 command_output.c_str()); in DownloadObjectAndSymbolFile() [all …]
|
| /freebsd-14.2/contrib/googletest/googletest/src/ |
| H A D | gtest-filepath.cc | 143 const char* const last_sep = strrchr(c_str(), kPathSeparator); in FindLastPathSeparator() 145 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); in FindLastPathSeparator() 214 dir = std::string(c_str(), static_cast<size_t>(last_sep + 1 - c_str())); in RemoveFileName() 253 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists() 259 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists() 277 LPCWSTR unicode = String::AnsiToUtf16(path.c_str()); in DirectoryExists() 287 posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat); in DirectoryExists() 328 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); in IsDirectory() 354 LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str()); in CreateFolder() 358 int result = _mkdir(pathname_.c_str()); in CreateFolder() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangExpressionSourceCode.cpp | 445 module_macros.c_str(), debug_macros_stream.GetData(), in GetText() 446 target_specific_defines, m_prefix.c_str()); in GetText() 464 module_imports.c_str(), m_name.c_str(), in GetText() 465 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText() 475 module_imports.c_str(), m_name.c_str(), in GetText() 476 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText() 491 module_imports.c_str(), m_name.c_str(), m_name.c_str(), in GetText() 492 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText() 508 module_imports.c_str(), m_name.c_str(), m_name.c_str(), in GetText() 509 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/ |
| H A D | PlatformPOSIX.cpp | 109 command.Printf("cp %s %s", src_path.c_str(), dst_path.c_str()); in PutFile() 117 if (chown_file(this, dst_path.c_str(), uid, gid) != 0) in PutFile() 132 dst_path.c_str()); in PutFile() 138 GetHostname(), dst_path.c_str()); in PutFile() 175 cp_command.Printf("cp %s %s", src_path.c_str(), dst_path.c_str()); in GetFile() 188 dst_path.c_str()); in GetFile() 191 src_path.c_str(), dst_path.c_str()); in GetFile() 195 dst_path.c_str()); in GetFile() 621 error_str.c_str()); in MakeLoadImageUtilityFunction() 856 diagnostics.GetString().c_str()); in DoLoadImage() [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/src/ |
| H A D | random.cpp | 45 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device() 69 random_device::random_device(const string& __token) : __f_(open(__token.c_str(), O_RDONLY)) { 71 __throw_system_error(errno, ("random_device failed to open " + __token).c_str()); 99 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); 102 __throw_system_error(error, ("random device failed to open " + __token).c_str()); 123 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); 140 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
|
| /freebsd-14.2/contrib/kyua/store/ |
| H A D | write_transaction_test.cpp | 108 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 126 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 156 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 175 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 215 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 236 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 261 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 295 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 317 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 330 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | DWARFEmitterImpl.cpp | 33 return createStringError(std::errc::invalid_argument, ErrorStr.c_str()); in init() 41 TripleName.c_str()); in init() 47 "no asm info for target %s", TripleName.c_str()); in init() 53 TripleName.c_str()); in init() 64 TripleName.c_str()); in init() 70 TripleName.c_str()); in init() 76 TripleName.c_str()); in init() 101 TripleName.c_str()); in init() 109 TripleName.c_str()); in init() 115 TripleName.c_str()); in init()
|