Home
last modified time | relevance | path

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

12345678910>>...30

/freebsd-13.1/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()
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 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-13.1/cddl/usr.sbin/zfsd/
H A Dcase_file.cc134 physPath.c_str()); in Find()
255 PoolGUIDString().c_str(), in ReEvaluate()
274 PoolGUIDString().c_str(), VdevGUIDString().c_str()); in ReEvaluate()
296 devPath.c_str(), in ReEvaluate()
316 PoolGUIDString().c_str(), in ReEvaluate()
353 PoolGUIDString().c_str(), VdevGUIDString().c_str(), in ReEvaluate()
354 devPath.c_str()); in ReEvaluate()
669 VdevGUIDString().c_str(), PhysicalPath().c_str()); in Log()
752 unlink(fullName.c_str()); in DeSerializeFile()
933 PoolGUIDString().c_str(), VdevGUIDString().c_str(), in Close()
[all …]
/freebsd-13.1/contrib/googletest/googletest/test/
H A Dgoogletest-options-test.cc62 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); in TEST()
91 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST()
93 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST()
102 _strcmpi("gtest-options-ex_test", exe_str.c_str()) == 0 || in TEST()
103 _strcmpi("gtest_all_test", exe_str.c_str()) == 0 || in TEST()
104 _strcmpi("gtest_dll_test", exe_str.c_str()) == 0; in TEST()
132 posix::ChDir(original_working_dir_.string().c_str()); in TearDown()
169 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST_F()
171 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST_F()
201 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); in TEST_F()
[all …]
/freebsd-13.1/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);
155 REQUIRE(try_parse(&sc, str.c_str()) == 0);
166 REQUIRE(try_parse(&sc, str.c_str()) == 0);
[all …]
/freebsd-13.1/contrib/googletest/googletest/src/
H A Dgtest-filepath.cc168 dir = std::string(c_str(), last_sep + 1 - c_str()); in RemoveFileName()
209 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str()); in FileOrDirectoryExists()
215 return posix::Stat(pathname_.c_str(), &file_stat) == 0; in FileOrDirectoryExists()
233 LPCWSTR unicode = String::AnsiToUtf16(path.c_str()); in DirectoryExists()
242 result = posix::Stat(path.c_str(), &file_stat) == 0 && in DirectoryExists()
264 const char* const name = pathname_.c_str(); in IsAbsolutePath()
326 LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str()); in CreateFolder()
330 int result = _mkdir(pathname_.c_str()); in CreateFolder()
332 int result = mkdir(pathname_.c_str(), 0777); in CreateFolder()
355 if (pathname_.c_str() == NULL) { in Normalize()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOWindows.cpp63 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()
170 DWORD DirAttrs = GetFileAttributesA(Dir.c_str()); in IterateDirRecursive()
231 _unlink(Path.c_str()); in RemoveFile()
235 rename(OldPath.c_str(), NewPath.c_str()); in RenameFile()
407 if (CreateDirectoryA(Path.c_str(), nullptr)) return; in MkDir()
[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()
87 DIR *D = opendir(Dir.c_str()); in IterateDirRecursive()
124 unlink(Path.c_str()); in RemoveFile()
128 rename(OldPath.c_str(), NewPath.c_str()); in RenameFile()
137 memcpy(Tmp, FileName.c_str(), FileName.size() + 1); in DirName()
166 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-13.1/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-13.1/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectHelp.cpp30 s->Printf("'%s' is not a known command.\n", command_str.c_str()); in GenerateAdditionalHelpAvenuesMessage()
32 prefix.str().c_str()); in GenerateAdditionalHelpAvenuesMessage()
35 prefix_str.c_str(), lookup_str.c_str()); in GenerateAdditionalHelpAvenuesMessage()
40 prefix_str.c_str(), lookup_str.c_str()); in GenerateAdditionalHelpAvenuesMessage()
135 s.Printf("ambiguous command %s", cmd_string.c_str()); in DoExecute()
146 &error_msg_stream, cmd_string.c_str(), in DoExecute()
147 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute()
152 &result.GetOutputStream(), cmd_string.c_str(), in DoExecute()
153 m_interpreter.GetCommandPrefix(), sub_command.c_str()); in DoExecute()
156 sub_cmd_obj->GetCommandName().str().c_str()); in DoExecute()
[all …]
/freebsd-13.1/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-13.1/lib/libpmc/
H A Dlibpmc_json.cc110 startent.c_str(), ev->pl_u.pl_a.pl_pmcid, ev->pl_u.pl_a.pl_event, in pmcallocate_to_json()
124 startent.c_str(), ev->pl_u.pl_t.pl_pmcid, ev->pl_u.pl_t.pl_pid, in pmcattach_to_json()
152 startent.c_str(), ev->pl_u.pl_c.pl_pmcid, ev->pl_u.pl_c.pl_pid, in proccsw_to_json()
167 startent.c_str(), ev->pl_u.pl_x.pl_pmcid, ev->pl_u.pl_x.pl_pid, in procexec_to_json()
182 startent.c_str(), ev->pl_u.pl_e.pl_pmcid, ev->pl_u.pl_e.pl_pid, in procexit_to_json()
208 startent.c_str(), ev->pl_u.pl_se.pl_pid); in sysexit_to_json()
220 startent.c_str(), ev->pl_u.pl_u.pl_userdata); in userdata_to_json()
233 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_in_to_json()
247 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_out_to_json()
300 startent.c_str(), ev->pl_u.pl_pc.pl_pid, in proccreate_to_json()
[all …]
/freebsd-13.1/contrib/kyua/utils/fs/
H A Doperations.cpp176 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 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-13.1/contrib/llvm-project/lldb/source/Target/
H A DThreadPlanPython.cpp52 : m_error_str.c_str()); in ValidatePlan()
71 m_class_name.c_str(), m_args_data, m_error_str, in DidPush()
80 m_class_name.c_str()); in ShouldStop()
99 m_class_name.c_str()); in IsPlanStale()
118 m_class_name.c_str()); in DoPlanExplainsStop()
137 m_class_name.c_str()); in MischiefManaged()
152 m_class_name.c_str()); in GetPlanRunState()
168 m_class_name.c_str()); in GetDescription()
174 m_class_name.c_str()); in WillStop()
H A DModuleCache.cpp74 return JoinPath(modules_dir_spec, uuid.GetAsString().c_str()); in GetModuleDirectory()
98 module_uuid.GetAsString().c_str(), error.AsCString()); in DeleteExistingModule()
133 platform_module_spec.GetPath().c_str()); in CreateHostSysRootModuleLink()
159 m_file_spec = JoinPath(lock_dir_spec, uuid.GetAsString().c_str()); in ModuleLock()
203 module_file_path.GetPath().c_str(), in Put()
204 err_code.message().c_str()); in Put()
236 module_file_path.GetPath().c_str()); in Get()
284 module_spec.GetUUID().GetAsString().c_str(), in GetAndPut()
289 error = Get(root_dir_spec, escaped_hostname.c_str(), module_spec, in GetAndPut()
301 error = Put(root_dir_spec, escaped_hostname.c_str(), module_spec, in GetAndPut()
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/src/support/ibm/
H A Dxlocale_zos.cpp28 setlocale(LC_ALL, current_loc_name.c_str()); in newlocale()
63 setlocale(LC_ALL, current_loc_name.c_str()); in newlocale()
79 setlocale(LC_COLLATE, newloc->lc_collate.c_str()) == NULL) || in uselocale()
81 setlocale(LC_CTYPE, newloc->lc_ctype.c_str()) == NULL) || in uselocale()
83 setlocale(LC_MONETARY, newloc->lc_monetary.c_str()) == NULL) || in uselocale()
85 setlocale(LC_NUMERIC, newloc->lc_numeric.c_str()) == NULL) || in uselocale()
87 setlocale(LC_TIME, newloc->lc_time.c_str()) == NULL) || in uselocale()
89 setlocale(LC_MESSAGES, newloc->lc_messages.c_str()) == NULL); in uselocale()
92 setlocale(LC_ALL, current_loc_name.c_str()); in uselocale()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionSourceCode.cpp401 module_macros.c_str(), debug_macros_stream.GetData(), in GetText()
402 target_specific_defines, m_prefix.c_str()); in GetText()
420 module_imports.c_str(), m_name.c_str(), in GetText()
421 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText()
431 module_imports.c_str(), m_name.c_str(), in GetText()
432 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText()
447 module_imports.c_str(), m_name.c_str(), m_name.c_str(), in GetText()
448 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText()
464 module_imports.c_str(), m_name.c_str(), m_name.c_str(), in GetText()
465 lldb_local_var_decls.GetData(), tagged_body.c_str()); in GetText()
/freebsd-13.1/contrib/llvm-project/lldb/source/Symbol/
H A DLocateSymbolFileMacOSX.cpp116 path, uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols()
139 path, uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols()
325 str.c_str()); in GetModuleSpecInfoFromUUIDDictionary()
340 str.c_str()); in GetModuleSpecInfoFromUUIDDictionary()
369 int version_number = atoi(version.c_str()); in GetModuleSpecInfoFromUUIDDictionary()
418 ConstString(DBGBuildSourcePath.c_str()), in GetModuleSpecInfoFromUUIDDictionary()
419 ConstString(DBGSourcePath.c_str()), true); in GetModuleSpecInfoFromUUIDDictionary()
422 FileSpec source_path(DBGSourcePath.c_str()); in GetModuleSpecInfoFromUUIDDictionary()
462 ConstString(DBGBuildSourcePath.c_str()), in GetModuleSpecInfoFromUUIDDictionary()
463 ConstString(DBGSourcePath.c_str()), true); in GetModuleSpecInfoFromUUIDDictionary()
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/src/
H A Drandom.cpp49 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str()); in random_device()
72 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
88 : __f_(open(__token.c_str(), O_RDONLY))
91 __throw_system_error(errno, ("random_device failed to open " + __token).c_str());
127 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
130 __throw_system_error(error, ("random device failed to open " + __token).c_str());
156 __throw_system_error(ENOENT, ("random device not supported " + __token).c_str());
/freebsd-13.1/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 …]
/freebsd-13.1/contrib/capsicum-test/
H A Dfexecve.cc31 exec_fd_ = open(exec_prog_.c_str(), O_RDONLY); in Execve()
33 fprintf(stderr, "Error! Failed to open %s\n", exec_prog_.c_str()); in Execve()
35 argv_checkroot_[0] = (char*)exec_prog_.c_str(); in Execve()
36 argv_fail_[0] = (char*)exec_prog_.c_str(); in Execve()
37 argv_pass_[0] = (char*)exec_prog_.c_str(); in Execve()
117 int fd = open(exec_prog_noexec_.c_str(), O_RDONLY); in FORK_TEST_F()
133 int fd = open(exec_prog_setuid_.c_str(), O_RDONLY); in FORK_TEST_F()
175 char *abspath = realpath(exec_prog_.c_str(), NULL); in TEST_F()
195 strcat(buffer, exec_prog_.c_str()); in TEST_F()
/freebsd-13.1/contrib/kyua/utils/
H A Denv.cpp87 const char* value = std::getenv(name.c_str()); in getenv()
108 const char* value = std::getenv(name.c_str()); in getenv_with_default()
154 if (::setenv(name.c_str(), val.c_str(), 1) == -1) { in setenv()
161 if (::putenv((F("%s=%s") % name % val).c_str()) == -1) { in setenv()
184 if (::unsetenv(name.c_str()) == -1) { in unsetenv()
191 if (::putenv((F("%s=") % name).c_str()) == -1) { in unsetenv()

12345678910>>...30