Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 807) sorted by relevance

12345678910>>...33

/freebsd/contrib/atf/atf-c++/
H A Dutils.cpp38 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 Dtests.cpp214 *ptr = (*iter).first.c_str(); in init()
215 *(ptr + 1) = (*iter).second.c_str(); in init()
223 err = atf_tc_init(&pimpl->m_tc, pimpl->m_ident.c_str(), pimpl->wrap_head, in init()
234 return atf_tc_has_config_var(&pimpl->m_tc, var.c_str()); in has_config_var()
241 return atf_tc_has_md_var(&pimpl->m_tc, var.c_str()); in has_md_var()
248 return atf_tc_get_config_var(&pimpl->m_tc, var.c_str()); in get_config_var()
255 return atf_tc_get_config_var_wd(&pimpl->m_tc, var.c_str(), defval.c_str()); in get_config_var()
262 return atf_tc_get_md_var(&pimpl->m_tc, var.c_str()); in get_md_var()
287 atf_error_t err = atf_tc_set_md_var(&pimpl->m_tc, var.c_str(), val.c_str()); in set_md_var()
296 atf_error_t err = atf_tc_run(&pimpl->m_tc, resfile.c_str()); in run()
[all …]
H A Dbuild.cpp81 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/contrib/googletest/googletest/test/
H A Dgoogletest-options-test.cc67 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
72 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
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()
106 _strcmpi("googletest-options-test", exe_str.c_str()) == 0 || in TEST()
107 _strcmpi("gtest-options-ex_test", exe_str.c_str()) == 0 || 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()
112 strcasecmp("googletest-options-test", exe_str.c_str()) == 0 || in TEST()
113 strcasecmp("gtest-options-ex_test", exe_str.c_str()) == 0 || in TEST()
[all …]
/freebsd/cddl/usr.sbin/zfsd/
H A Dcase_file.cc151 physPath.c_str()); in Find()
189 int numCaseFiles(scandir(s_caseFilePath.c_str(), &caseFiles, in DeSerialize()
280 PoolGUIDString().c_str(), in ReEvaluate()
281 VdevGUIDString().c_str()); in ReEvaluate()
299 PoolGUIDString().c_str(), VdevGUIDString().c_str()); in ReEvaluate()
310 if (zpool_vdev_online(pool, vdev->GUIDString().c_str(), in ReEvaluate()
314 zpool_get_name(pool), vdev->GUIDString().c_str(), in ReEvaluate()
315 devPath.c_str(), libzfs_error_action(g_zfsHandle), in ReEvaluate()
321 zpool_get_name(pool), vdev->GUIDString().c_str(), in ReEvaluate()
322 devPath.c_str(), in ReEvaluate()
[all …]
/freebsd/contrib/bsnmp/tests/
H A Dsnmp_parse_server.cc42 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);
124 REQUIRE(try_parse(&sc, str.c_str()) == -1);
130 REQUIRE(try_parse(&sc, str.c_str()) == -1);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOWindows.cpp35 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
39 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
47 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
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()
100 if (!GetFileAttributesExA(Path.c_str(), GetFileExInfoStandard, &attr)) { in FileSize()
104 Path.c_str(), LastError); in FileSize()
127 HANDLE FindHandle(FindFirstFileA(Path.c_str(), &FindInfo)); in ListFilesInDirRecursive()
[all …]
H A DFuzzerIOPosix.cpp29 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 DFuzzerDataFlowTrace.cpp47 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/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectHelp.cpp31 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()
113 sub_cmd_obj->GetSubcommandObject(sub_command.c_str(), &matches); in DoExecute()
127 s.Printf("ambiguous command %s", cmd_string.c_str()); in DoExecute()
138 &error_msg_stream, cmd_string.c_str(), in DoExecute()
139 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute()
144 &result.GetOutputStream(), cmd_string.c_str(), in DoExecute()
145 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionValueString.cpp28 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/contrib/atf/atf-c++/detail/
H A Denv.cpp46 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/contrib/llvm-project/lldb/source/Symbol/
H A DLocateSymbolFileMacOSX.cpp
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DDWARFEmitterImpl.cpp
/freebsd/lib/libpmc/
H A Dlibpmc_json.cc92 startent.c_str(), ev->pl_u.pl_i.pl_version, ev->pl_u.pl_i.pl_arch, in initialize_to_json()
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()
136 startent.c_str(), ev->pl_u.pl_d.pl_pmcid, ev->pl_u.pl_d.pl_pid); in pmcdetach_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()
197 startent.c_str(), ev->pl_u.pl_f.pl_oldpid, ev->pl_u.pl_f.pl_newpid); in procfork_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()
[all …]
/freebsd/contrib/kyua/utils/fs/
H A Doperations.cpp173 mount_args[last++] = size_arg.c_str(); in run_mount_tmpfs()
176 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs()
184 mount_args[last++] = size_arg.c_str(); in run_mount_tmpfs()
187 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs()
195 mount_args[last++] = size_arg.c_str(); in run_mount_tmpfs()
198 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs()
206 mount_args[last++] = size_arg.c_str(); in run_mount_tmpfs()
209 mount_args[last++] = mount_point.c_str(); in run_mount_tmpfs()
245 if (::unmount(mount_point.c_str(), 0) == -1) { in unmount_with_unmount2()
271 const int ret = ::execlp(UMOUNT, "umount", mount_point.c_str(), NULL); in unmount_with_umount8()
[all …]
H A Dauto_cleaners_test.cpp92 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/contrib/llvm-project/lldb/source/Target/
H A DModuleCache.cpp75 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()
203 return Status("Failed to rename file %s to %s: %s", tmp_file_path.c_str(), in Put()
204 module_file_path.GetPath().c_str(), in Put()
205 err_code.message().c_str()); in Put()
211 module_file_path.GetPath().c_str(), error.AsCString()); in Put()
233 return Status("Module %s not found", module_file_path.GetPath().c_str()); in Get()
237 module_file_path.GetPath().c_str()); in Get()
[all …]
H A DThreadPlanPython.cpp69 : m_error_str.c_str()); in ValidatePlan()
98 m_class_name.c_str()); in ShouldStop()
116 m_class_name.c_str()); in IsPlanStale()
134 m_class_name.c_str()); in DoPlanExplainsStop()
153 m_class_name.c_str()); in MischiefManaged()
171 m_class_name.c_str()); in GetPlanRunState()
181 m_class_name.c_str()); in GetDescription()
191 m_class_name.c_str()); in GetDescription()
202 m_class_name.c_str()); in GetDescription()
210 m_class_name.c_str()); in WillStop()
/freebsd/contrib/llvm-project/libcxx/src/support/ibm/
H A Dxlocale_zos.cpp29 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()) == NULL) || in uselocale()
78 (newloc->category_mask & LC_CTYPE_MASK && setlocale(LC_CTYPE, newloc->lc_ctype.c_str()) == NULL) || in uselocale()
79 (newloc->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()) == NULL) || in uselocale()
81 (newloc->category_mask & LC_TIME_MASK && setlocale(LC_TIME, newloc->lc_time.c_str()) == NULL) || in uselocale()
82 (newloc->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/contrib/googletest/googletest/src/
H A Dgtest-filepath.cc143 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/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionSourceCode.cpp445 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/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp109 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()
131 command.Printf("rsync %s %s %s", GetRSyncOpts(), src_path.c_str(), in PutFile()
132 dst_path.c_str()); in PutFile()
134 command.Printf("rsync %s %s %s%s", GetRSyncOpts(), src_path.c_str(), in PutFile()
135 GetRSyncPrefix(), dst_path.c_str()); in PutFile()
137 command.Printf("rsync %s %s %s:%s", GetRSyncOpts(), src_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()
187 command.Printf("rsync %s %s %s", GetRSyncOpts(), src_path.c_str(), in GetFile()
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Drandom.cpp45 __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/contrib/kyua/store/
H A Dwrite_transaction_test.cpp108 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 …]

12345678910>>...33