Home
last modified time | relevance | path

Searched refs:process (Results 1 – 25 of 1067) sorted by relevance

12345678910>>...43

/freebsd/contrib/kyua/utils/process/
H A DMakefile.am.inc29 libutils_a_SOURCES += utils/process/child.cpp
30 libutils_a_SOURCES += utils/process/child.hpp
31 libutils_a_SOURCES += utils/process/child.ipp
32 libutils_a_SOURCES += utils/process/child_fwd.hpp
33 libutils_a_SOURCES += utils/process/deadline_killer.cpp
34 libutils_a_SOURCES += utils/process/deadline_killer.hpp
35 libutils_a_SOURCES += utils/process/deadline_killer_fwd.hpp
36 libutils_a_SOURCES += utils/process/exceptions.cpp
37 libutils_a_SOURCES += utils/process/exceptions.hpp
38 libutils_a_SOURCES += utils/process/executor.cpp
[all …]
H A Doperations_test.cpp54 namespace process = utils::process;
61 typedef void (*exec_function)(const fs::path&, const process::args_vector&);
86 const process::args_vector& _args;
95 const process::args_vector& args) : in child_exec()
164 std::auto_ptr< process::child > child = process::child::fork_files( in check_exec_no_args()
165 child_exec(do_exec, get_helpers(tc), process::args_vector()), in check_exec_no_args()
167 const process::status status = child->wait(); in check_exec_no_args()
181 process::args_vector args; in check_exec_some_args()
186 std::auto_ptr< process::child > child = process::child::fork_files( in check_exec_some_args()
189 const process::status status = child->wait(); in check_exec_some_args()
[all …]
H A Dchild.cpp59 namespace process { namespace
68 std::auto_ptr< process::ifdstream > _output;
74 impl(const pid_t pid, process::ifdstream* output) : in impl()
84 namespace process = utils::process;
101 if (process::detail::syscall_dup2(old_fd, new_fd) == -1) { in safe_dup()
103 throw process::system_error(F("dup2(%s, %s) failed") % old_fd % new_fd, in safe_dup()
119 const int fd = process::detail::syscall_open( in open_for_append()
124 throw process::system_error(F("Failed to create %s because open(2) " in open_for_append()
136 log_exec(const fs::path& program, const process::args_vector& args) in log_exec()
139 for (process::args_vector::const_iterator iter = args.begin(); in log_exec()
[all …]
H A Dchild_test.cpp64 namespace process = utils::process;
295 std::auto_ptr< process::child > child = process::child::fork_files( in do_inherit_test()
298 const process::status status = child->wait(); in do_inherit_test()
326 std::auto_ptr< process::child > child = process::child::fork_capture(hook); in child__fork_capture__ok()
342 process::status status = child->wait(); in child__fork_capture__ok()
368 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY()
375 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
386 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY()
388 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
397 process::detail::syscall_pipe = pipe_fail< 23 >; in ATF_TEST_CASE_BODY()
[all …]
H A Doperations.cpp54 namespace process = utils::process;
74 static process::status
82 throw process::system_error("Failed to wait for any child process", in safe_wait()
85 return process::status(pid, stat_loc); in safe_wait()
96 static process::status
101 if (process::detail::syscall_waitpid(pid, &stat_loc, 0) == -1) { in safe_waitpid()
103 throw process::system_error(F("Failed to wait for PID %s") % pid, in safe_waitpid()
106 return process::status(pid, stat_loc); in safe_waitpid()
125 process::exec(const fs::path& program, const args_vector& args) throw() in exec()
154 process::exec_unsafe(const fs::path& program, const args_vector& args) in exec_unsafe()
[all …]
H A Dstatus.cpp39 namespace process = utils::process;
53 process::status::status(const int dead_pid_, int stat_loc) : in status()
70 process::status::status(const optional< int >& exited_, in status()
84 process::status
85 process::status::fake_exited(const int exitstatus_) in fake_exited()
97 process::status
98 process::status::fake_signaled(const int termsig_, const bool coredump_) in fake_signaled()
113 process::status::dead_pid(void) const in dead_pid()
123 process::status::exited(void) const in exited()
135 process::status::exitstatus(void) const in exitstatus()
[all …]
H A Dexceptions.cpp35 namespace process = utils::process;
41 process::error::error(const std::string& message) : in error()
48 process::error::~error(void) throw() in ~error()
57 process::system_error::system_error(const std::string& message_, in system_error()
66 process::system_error::~system_error(void) throw() in ~system_error()
73 process::system_error::original_errno(void) const throw() in original_errno()
82 process::timeout_error::timeout_error(const std::string& message_) : in timeout_error()
89 process::timeout_error::~timeout_error(void) throw() in ~timeout_error()
H A Disolation_test.cpp60 namespace process = utils::process;
78 static process::status
81 std::auto_ptr< process::child > child = process::child::fork_files( in fork_and_run()
83 const process::status status = child->wait(); in fork_and_run()
99 process::isolate_child(none, fs::path("some-directory")); in check_clean_environment()
161 process::isolate_child(utils::make_optional(_unprivileged_user), in operator ()()
203 process::isolate_child(none, fs::path(".")); in check_enable_core_dumps()
230 process::isolate_child(none, _directory); in operator ()()
244 process::isolate_child(none, fs::path(".")); in check_new_session()
255 process::isolate_child(none, fs::path(".")); in check_no_terminal()
[all …]
H A Ddeadline_killer_test.cpp45 namespace process = utils::process;
69 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY()
73 process::deadline_killer killer(datetime::delta(1, 0), child->pid()); in ATF_TEST_CASE_BODY()
74 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
88 std::auto_ptr< process::child > child = process::child::fork_capture( in ATF_TEST_CASE_BODY()
92 process::deadline_killer killer(datetime::delta(60, 0), child->pid()); in ATF_TEST_CASE_BODY()
93 const process::status status = child->wait(); in ATF_TEST_CASE_BODY()
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCClassDescriptorV2.cpp22 Process *process, std::unique_ptr<objc_class_t> &objc_class) const { in Read_objc_class() argument
25 bool ret = objc_class->Read(process, m_objc_class_ptr); in Read_objc_class()
33 static lldb::addr_t GetClassDataMask(Process *process) { in GetClassDataMask() argument
34 switch (process->GetAddressByteSize()) { in GetClassDataMask()
46 bool ClassDescriptorV2::objc_class_t::Read(Process *process, in Read() argument
48 size_t ptr_size = process->GetAddressByteSize(); in Read()
59 process->ReadMemory(addr, objc_class_buf.GetBytes(), objc_class_size, error); in Read()
65 process->GetByteOrder(), in Read()
66 process->GetAddressByteSize()); in Read()
78 m_data_ptr = data_NEVER_USE & GetClassDataMask(process); in Read()
[all …]
H A DAppleObjCRuntimeV2.cpp689 ExtractRuntimeGlobalSymbol(Process *process, ConstString name, in ExtractRuntimeGlobalSymbol() argument
694 if (!process) { in ExtractRuntimeGlobalSymbol()
705 byte_size = process->GetAddressByteSize(); in ExtractRuntimeGlobalSymbol()
715 symbol->GetAddressRef().GetLoadAddress(&process->GetTarget()); in ExtractRuntimeGlobalSymbol()
722 return process->ReadUnsignedIntegerFromMemory(symbol_load_addr, byte_size, in ExtractRuntimeGlobalSymbol()
727 static void RegisterObjCExceptionRecognizer(Process *process);
729 AppleObjCRuntimeV2::AppleObjCRuntimeV2(Process *process, in AppleObjCRuntimeV2() argument
731 : AppleObjCRuntime(process), m_objc_module_sp(objc_module_sp), in AppleObjCRuntimeV2()
754 RegisterObjCExceptionRecognizer(process); in AppleObjCRuntimeV2()
782 Process *process = in_value.GetProcessSP().get(); in GetDynamicTypeAndAddress() local
[all …]
/freebsd/contrib/kyua/engine/
H A Datf_result_test.cpp49 namespace process = utils::process;
284 const process::status status = process::status::fake_exited(EXIT_SUCCESS); in ATF_TEST_CASE_BODY()
305 const process::status status = process::status::fake_signaled(SIGINT, true); in ATF_TEST_CASE_BODY()
313 const process::status success = process::status::fake_exited(EXIT_SUCCESS); in ATF_TEST_CASE_BODY()
314 const process::status failure = process::status::fake_exited(EXIT_FAILURE); in ATF_TEST_CASE_BODY()
330 const process::status success = process::status::fake_exited(EXIT_SUCCESS); in ATF_TEST_CASE_BODY()
345 const process::status sig3 = process::status::fake_signaled(3, false); in ATF_TEST_CASE_BODY()
359 const process::status status = process::status::fake_exited(EXIT_SUCCESS); in ATF_TEST_CASE_BODY()
369 const process::status failure = process::status::fake_exited(EXIT_FAILURE); in ATF_TEST_CASE_BODY()
370 const process::status sig3 = process::status::fake_signaled(3, true); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/tools/regression/security/proc_to_proc/
H A DREADME5 This test suite attempts to determine the behavior of inter-process
7 important scenarios using specifically crafted process credentials
21 priv on priv root process on another root process
22 priv on unpriv1 root process on a non-root process
23 unpriv1 on priv non-root process on a root process
24 unpriv1 on unpriv1 non-root process on a similar non-root process
25 unpriv1 on unpriv2 non-root process on a different non-root process
26 unpriv1 on daemon1 non-root process on a root daemon process acting with
28 unpriv1 on daemon2 non-root process on a root daemon process acting with
30 unpriv1 on setuid1 non-root process on a setuid-root process with same
[all …]
/freebsd/contrib/unifdef/tests/
H A Drecursive.experr24 unifdef: process line 1 PLAIN -> OUTSIDE depth 0
26 unifdef: process line 2 PLAIN -> OUTSIDE depth 0
28 unifdef: process line 3 PLAIN -> OUTSIDE depth 0
30 unifdef: process line 4 PLAIN -> OUTSIDE depth 0
32 unifdef: process line 5 PLAIN -> OUTSIDE depth 0
34 unifdef: process line 6 PLAIN -> OUTSIDE depth 0
36 unifdef: process line 7 PLAIN -> OUTSIDE depth 0
53 unifdef: process line 8 IF -> PASS_MIDDLE depth 1
55 unifdef: process line 9 PLAIN -> PASS_MIDDLE depth 1
57 unifdef: process line 10 ELSE -> PASS_ELSE depth 1
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBFrame.cpp104 Process *process = exe_ctx.GetProcessPtr(); in operator bool() local
105 if (target && process) { in operator bool()
107 if (stop_locker.TryLock(&process->GetRunLock())) in operator bool()
123 Process *process = exe_ctx.GetProcessPtr(); in GetSymbolContext() local
124 if (target && process) { in GetSymbolContext()
126 if (stop_locker.TryLock(&process->GetRunLock())) { in GetSymbolContext()
145 Process *process = exe_ctx.GetProcessPtr(); in GetModule() local
146 if (target && process) { in GetModule()
148 if (stop_locker.TryLock(&process->GetRunLock())) { in GetModule()
169 Process *process = exe_ctx.GetProcessPtr(); in GetCompileUnit() local
[all …]
/freebsd/contrib/kyua/utils/
H A Dsanity_test.cpp48 namespace process = utils::process;
66 static process::status
71 const process::status status = process::child::fork_files( in run_test()
80 verify_success(const process::status& status) in verify_success()
90 verify_failed(const process::status& status, const char* type, in verify_failed()
129 const process::status status = run_test(do_inv_test< true, false >); in ATF_TEST_CASE_BODY()
137 const process::status status = run_test(do_inv_test< false, false >); in ATF_TEST_CASE_BODY()
145 const process::status status = run_test(do_inv_test< false, true >); in ATF_TEST_CASE_BODY()
167 const process::status status = run_test(do_pre_test< true, false >); in ATF_TEST_CASE_BODY()
175 const process::status status = run_test(do_pre_test< false, false >); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DInferiorCallPOSIX.cpp36 bool lldb_private::InferiorCallMmap(Process *process, addr_t &allocated_addr,
40 process->GetThreadList().GetExpressionExecutionThread().get(); in InferiorCallMmap()
49 process->GetTarget().GetImages().FindFunctions( in InferiorCallMmap()
64 options.SetTimeout(process->GetUtilityExpressionTimeout()); in InferiorCallMmap()
84 process->GetTarget().GetScratchTypeSystemForLanguage( in InferiorCallMmap()
95 const ArchSpec arch = process->GetTarget().GetArchitecture(); in InferiorCallMmap()
97 process->GetTarget().GetPlatform()->GetMmapArgumentList( in InferiorCallMmap()
109 ExpressionResults result = process->RunThreadPlan( in InferiorCallMmap()
116 if (process->GetAddressByteSize() == 4) { in InferiorCallMmap()
119 } else if (process in InferiorCallMmap()
37 InferiorCallMmap(Process * process,addr_t & allocated_addr,addr_t addr,addr_t length,unsigned prot,unsigned flags,addr_t fd,addr_t offset) InferiorCallMmap() argument
135 InferiorCallMunmap(Process * process,addr_t addr,addr_t length) InferiorCallMunmap() argument
[all...]
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/
H A DDynamicLoaderFreeBSDKernel.cpp100 DynamicLoaderFreeBSDKernel::CreateInstance(lldb_private::Process *process, in CreateInstance() argument
103 Module *exec = process->GetTarget().GetExecutableModulePointer(); in CreateInstance()
110 process->GetTarget().GetArchitecture().GetTriple(); in CreateInstance()
118 const addr_t kernel_address = FindFreeBSDKernel(process); in CreateInstance()
120 if (CheckForKernelImageAtAddress(process, kernel_address).IsValid()) in CreateInstance()
121 return new DynamicLoaderFreeBSDKernel(process, kernel_address); in CreateInstance()
127 DynamicLoaderFreeBSDKernel::FindFreeBSDKernel(lldb_private::Process *process) { in FindFreeBSDKernel() argument
128 addr_t kernel_addr = process->GetImageInfoAddress(); in FindFreeBSDKernel()
130 kernel_addr = FindKernelAtLoadAddress(process); in FindFreeBSDKernel()
136 lldb_private::Process *process) { in FindKernelAtLoadAddress() argument
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Dprocess_test.cpp58 atf::process::status
61 using atf::process::exec; in exec_process_helpers()
68 atf::process::argv_array(argv), in exec_process_helpers()
69 atf::process::stream_inherit(), in exec_process_helpers()
70 atf::process::stream_inherit()); in exec_process_helpers()
87 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY()
94 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY()
102 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY()
121 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY()
129 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/atf/atf-c++/
H A Dbuild.cpp45 atf::process::argv_array
54 return atf::process::argv_array(aux); in cargv_to_argv()
58 atf::process::argv_array
62 atf::process::argv_array argv((const char* const*)l); in cargv_to_argv_and_free()
75 atf::process::argv_array
77 const atf::process::argv_array& optargs) in c_o()
89 atf::process::argv_array
91 const atf::process::argv_array& optargs) in cpp()
103 atf::process::argv_array
105 const atf::process::argv_array& optargs) in cxx_o()
H A Dbuild_test.cpp75 equal_argvs(const atf::process::argv_array& aa, const char* const* array) in equal_argvs()
79 atf::process::argv_array::size_type i = 0; in equal_argvs()
95 check_equal_argvs(const atf::process::argv_array& aa, const char* const* array) in check_equal_argvs()
119 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array)); in ATF_TEST_CASE_BODY()
126 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array)); in ATF_TEST_CASE_BODY()
133 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array)); in ATF_TEST_CASE_BODY()
140 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array)); in ATF_TEST_CASE_BODY()
163 atf::process::argv_array argv = in ATF_TEST_CASE_BODY()
165 atf::process::argv_array(test->optargs)); in ATF_TEST_CASE_BODY()
184 atf::process::argv_array argv = in ATF_TEST_CASE_BODY()
[all …]
H A Dbuild.hpp33 namespace process { namespace
43 process::argv_array c_o(const std::string&, const std::string&,
44 const process::argv_array&);
45 process::argv_array cpp(const std::string&, const std::string&,
46 const process::argv_array&);
47 process::argv_array cxx_o(const std::string&, const std::string&,
48 const process::argv_array&);
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DFunctionCaller.cpp67 Process *process = exe_ctx.GetProcessPtr(); in WriteFunctionWrapper() local
69 if (!process) { in WriteFunctionWrapper()
76 if (process != jit_process_sp.get()) { in WriteFunctionWrapper()
82 if (process->GetState() != lldb::eStateStopped) { in WriteFunctionWrapper()
117 process->GetTarget().GetImages().Append(jit_module_sp, in WriteFunctionWrapper()
121 if (process && m_jit_start_addr) in WriteFunctionWrapper()
122 m_jit_process_wp = process->shared_from_this(); in WriteFunctionWrapper()
154 Process *process = exe_ctx.GetProcessPtr(); in WriteFunctionArguments() local
156 if (process == nullptr) in WriteFunctionArguments()
161 if (process != jit_process_sp.get()) in WriteFunctionArguments()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp502 lldb_private::Process *process, const char *expr_cstr, in EvaluateLibdlExpression() argument
504 DynamicLoader *loader = process->GetDynamicLoader(); in EvaluateLibdlExpression()
511 ThreadSP thread_sp(process->GetThreadList().GetExpressionExecutionThread()); in EvaluateLibdlExpression()
528 expr_options.SetTimeout(process->GetUtilityExpressionTimeout()); in EvaluateLibdlExpression()
608 Process *process = exe_ctx.GetProcessSP().get(); in MakeLoadImageUtilityFunction() local
610 std::string expr(std::string(GetLibdlFunctionDeclarations(process))); in MakeLoadImageUtilityFunction()
615 auto utility_fn_or_error = process->GetTarget().CreateUtilityFunction( in MakeLoadImageUtilityFunction()
633 ScratchTypeSystemClang::GetForTarget(process->GetTarget()); in MakeLoadImageUtilityFunction()
672 uint32_t PlatformPOSIX::DoLoadImage(lldb_private::Process *process, in DoLoadImage() argument
683 ThreadSP thread_sp = process->GetThreadList().GetExpressionExecutionThread(); in DoLoadImage()
[all …]
/freebsd/contrib/tcsh/
H A Dsh.proc.h46 struct process { struct
47 struct process *p_next; /* next in global "proclist" */ argument
48 struct process *p_friends; /* next in job list (or self) */ argument
118 EXTERN struct process proclist IZERO_STRUCT;/* list head of all processes */
120 EXTERN struct process *pholdjob IZERO; /* one level stack of current jobs */
122 EXTERN struct process *pcurrjob IZERO; /* current job */
123 EXTERN struct process *pcurrent IZERO; /* current job in table */
124 EXTERN struct process *pprevious IZERO; /* previous job in table */

12345678910>>...43