/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | doio.c | 524 int i, pid, stat, ex_stat; in main() local 608 * Malloc space for the children pid array. Initialize all entries in main() 638 if ((pid = fork()) == -1) { in main() 645 Children[Nchildren] = pid; in main() 648 if (pid == 0) { in main() 675 if ((pid = wait(&stat)) == -1) { in main() 681 if (Children[i] == pid) in main() 694 "(parent) pid %d exited because of an internal error\n", in main() 695 pid); in main() 701 "(parent) pid in main() 1600 static int pid = -1; do_write() local 3057 static int pid = -1; do_rw() local 3827 static int pid = -1; doio_fprintf() local [all...] |
/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | buffer_client_producer_remote_test.cpp | 61 static inline pid_t pid = 0; member in OHOS::Rosen::BufferClientProducerRemoteTest 100 pid = fork(); in SetUpTestCase() 101 if (pid < 0) { in SetUpTestCase() 104 if (pid == 0) { in SetUpTestCase() 147 waitpid(pid, nullptr, 0); in TearDownTestCase()
|
/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | file_utils.cpp | 420 pid_t pid; in ForkExec() local 429 pid = fork(); in ForkExec() 430 if (pid == -1) { in ForkExec() 433 } else if (pid == 0) { in ForkExec() 457 waitpid(pid, &status, 0); in ForkExec()
|
/third_party/alsa-lib/src/control/ |
H A D | control_shm.c | 106 static int snd_ctl_shm_async(snd_ctl_t *ctl, int sig, pid_t pid) in snd_ctl_shm_async() argument 112 if (pid == 0) in snd_ctl_shm_async() 113 pid = getpid(); in snd_ctl_shm_async() 114 ctrl->u.async.pid = pid; in snd_ctl_shm_async()
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
H A D | page-poisoning.c | 149 printf("[pid %d] %s", mypid, buf); in mylog() 150 fprintf(log_fd, "[pid %d] %s", mypid, buf); in mylog() 164 fprintf(result_fd, "[pid %d] %s", mypid, buf); in result() 710 pid_t pid = -1; in run_test() local 716 pid = fork(); in run_test() 717 if (pid < 0) { in run_test() 720 } else if (pid == 0) { in run_test() 727 g_pid[i] = pid; in run_test()
|
/third_party/toybox/lib/ |
H A D | lib.h | 144 int xwaitpid(pid_t pid); 145 int xpclose_both(pid_t pid, int *pipes); 147 pid_t xpclose(pid_t pid, int pipe); 417 void names_to_pid(char **names, int (*callback)(pid_t pid, char *name), 420 pid_t __attribute__((returns_twice)) xvforkwrap(pid_t pid);
|
/third_party/toybox/porting/liteos_a/lib/ |
H A D | lib.h | 139 int xwaitpid(pid_t pid); 140 int xpclose_both(pid_t pid, int *pipes); 142 pid_t xpclose(pid_t pid, int pipe); 408 void names_to_pid(char **names, int (*callback)(pid_t pid, char *name), 411 pid_t __attribute__((returns_twice)) xvforkwrap(pid_t pid);
|
/third_party/toybox/toys/pending/ |
H A D | dhcp6.c | 434 pid_t pid; in run_script() local 450 pid = vfork(); in run_script() 451 if (pid < 0) { in run_script() 455 if (!pid) { in run_script() 461 waitpid(pid, NULL, 0); in run_script() 558 dbg("pid file: %s\n", TT.pidfile); in dhcp6_main()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/ |
H A D | vsync_distributor.cpp | 187 VLOGW("vsync signal is not processed in time, please check pid:%{public}d", proxyPid_);
in PostEvent() 714 int32_t pid = 0;
in GetUIDVsyncPid() local 716 pid = dvsync_->GetProxyPid();
in GetUIDVsyncPid() 718 return pid;
in GetUIDVsyncPid() 1023 VsyncError VSyncDistributor::QosGetPidByName(const std::string& name, uint32_t& pid)
in QosGetPidByName() argument 1036 pid = static_cast<uint32_t>(stoi(name.substr(pos + 1)));
in QosGetPidByName() 1040 VsyncError VSyncDistributor::SetQosVSyncRateByPid(uint32_t pid, int32_t rate, bool isSystemAnimateScene)
in SetQosVSyncRateByPid() argument 1042 // only set vsync rate by pid in SystemAnimateSecne
in SetQosVSyncRateByPid() 1046 auto iter = connectionsMap_.find(pid);
in SetQosVSyncRateByPid() 1048 VLOGD("%{public}s:%{public}d pid[ in SetQosVSyncRateByPid() [all...] |
/third_party/python/Lib/test/ |
H A D | test_threading.py | 550 pid = os.fork() 551 if not pid: 555 wait_process(pid, exitcode=0) 604 pid = os.fork() 605 if pid == 0: 610 support.wait_process(pid, exitcode=10) 632 pid = os.fork() 633 if pid == 0: 639 support.wait_process(pid, exitcode=0) 655 pid [all...] |
/foundation/ability/ability_runtime/frameworks/native/ability/ability_runtime/ |
H A D | connection_manager.cpp | 306 void ConnectionManager::ReportConnectionLeakEvent(const int pid, const int tid) in ReportConnectionLeakEvent() argument 308 TAG_LOGD(AAFwkTag::CONNECTION, "pid:%{public}d, tid:%{public}d", pid, tid); in ReportConnectionLeakEvent() 313 bool ret = dumpLog.DumpCatch(pid, tid, stackTrace); in ReportConnectionLeakEvent() 315 std::string cautionMsg = "TriggerRule:RULE_CHECK_ABILITY_CONNECTION_LEAK-pid=" + in ReportConnectionLeakEvent() 316 std::to_string(pid) + "-tid=" + std::to_string(tid) + ", has leaked connection" + in ReportConnectionLeakEvent()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | ability_manager_collaborator_proxy.cpp | 309 int32_t AbilityManagerCollaboratorProxy::NotifyRemoveShellProcess(int32_t pid, int32_t type, const std::string &reason) in NotifyRemoveShellProcess() argument 319 if (!data.WriteInt32(pid)) { in NotifyRemoveShellProcess() 320 TAG_LOGE(AAFwkTag::ABILITYMGR, "pid write fail"); in NotifyRemoveShellProcess() 448 void AbilityManagerCollaboratorProxy::NotifyMissionBindPid(int32_t missionId, int32_t pid) in NotifyMissionBindPid() argument 461 if (!data.WriteInt32(pid)) { in NotifyMissionBindPid() 462 TAG_LOGE(AAFwkTag::ABILITYMGR, "write pid fail"); in NotifyMissionBindPid()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/ |
H A D | verify_manager_host_impl.cpp | 328 APP_LOGD("current process pid: %{public}d, ppid: %{public}d", getpid(), getppid()); in VerifyAbc() 329 pid_t pid = fork(); in VerifyAbc() local 330 if (pid < 0) { in VerifyAbc() 333 } else if (pid == 0) { in VerifyAbc() 334 APP_LOGD("child process pid: %{public}d, ppid: %{public}d", getpid(), getppid()); in VerifyAbc() 350 pid_t childPid = waitpid(pid, &status, 0); in VerifyAbc() 366 APP_LOGD("end process pid: %{public}d, ppid: %{public}d", getpid(), getppid()); in VerifyAbc()
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/interrupt/ |
H A D | audio_interrupt_service.h | 65 void OnSessionTimeout(const int32_t pid) override; 198 int32_t DealAudioInterruptZoneData(const int32_t pid, 219 void HandleSessionTimeOutEvent(const int32_t pid); 220 void HandleLowPriorityEvent(const int32_t pid, const uint32_t streamId);
|
/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_utils.cpp | 385 void WriteToFile(std::string prefixPath, std::string pid, void* dest, size_t size, int32_t format, int32_t width, in WriteToFile() argument 398 ss << prefixPath << pid << "_" << name << "_" << nowVal << "_" << format << "_" in WriteToFile() 418 GSError DumpToFileAsync(pid_t pid, std::string name, sptr<SurfaceBuffer> &buffer) in DumpToFileAsync() argument 452 std::thread file_writer(WriteToFile, prefixPath, std::to_string(pid), dest, size, buffer->GetFormat(), in DumpToFileAsync()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_ui_director.cpp | 364 static const uint32_t pid = static_cast<uint32_t>(GetRealPid()); in RecvMessages() local 365 if (!RSMessageProcessor::Instance().HasTransaction(pid)) { in RecvMessages() 368 auto transactionDataPtr = RSMessageProcessor::Instance().GetTransaction(pid); in RecvMessages() 448 void RSUIDirector::DumpNodeTreeProcessor(NodeId nodeId, pid_t pid, uint32_t taskId) in DumpNodeTreeProcessor() argument
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/transaction/ |
H A D | rs_transaction_data.cpp | 290 int32_t pid; in UnmarshallingCommand() local 293 parcel.ReadInt32(pid) && ({RS_PROFILER_PATCH_PID(parcel, pid); pid_ = pid; true;}) && in UnmarshallingCommand()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_draw_cmd.h | 46 pid_t pid = {}, uint64_t uid = {}, sptr<SyncFence> acquireFence = nullptr) in DrawingSurfaceBufferInfo() 48 pid_(pid), uid_(uid), acquireFence_(acquireFence) 251 pid_t pid, uint64_t uid, const PaintHandle& paintHandle) in ConstructorHandle() 253 surfaceBufferInfo(nullptr, offSetX, offSetY, width, height, pid, uid, nullptr), in ConstructorHandle()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/systemtest/ |
H A D | vsync_120to30_test.cpp | 77 static inline pid_t pid = 0; member in OHOS::Rosen::VSync120To30Test 374 pid = fork(); in HWTEST_F() 375 if (pid < 0) { in HWTEST_F() 378 if (pid != 0) { in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_draw_cmd_test.cpp | 443 pid_t pid = {}; in HWTEST_F() local 447 surfaceBufferId, offSetX, offSetY, width, height, pid, uid, paintHandle); in HWTEST_F() 476 pid_t pid = {}; in HWTEST_F() local 480 surfaceBufferId, offSetX, offSetY, width, height, pid, uid, paintHandle); in HWTEST_F()
|
/foundation/multimedia/player_framework/services/services/sa_media/client/ |
H A D | media_client.cpp | 336 pid_t pid = 0; in GetMediaProxy() local 337 deathRecipient_ = new(std::nothrow) MediaDeathRecipient(pid); in GetMediaProxy() 352 void MediaClient::MediaServerDied(pid_t pid) in MediaServerDied() argument 354 MEDIA_LOGE("media server is died, pid:%{public}d!", pid); in MediaServerDied()
|
/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | input_manager_update_display_info_test.cpp | 167 info.pid = 1; in HWTEST_F() 207 info.pid = 1; in HWTEST_F() 253 info.pid = 1; in HWTEST_F() 308 info.pid = 1; in HWTEST_F()
|
/foundation/multimodalinput/input/service/connect_manager/test/ |
H A D | multimodal_input_connect_proxy_ex_test.cpp | 202 int32_t pid = 1000; in HWTEST_F() local 206 EXPECT_EQ(proxy.SetMouseHotSpot(pid, windowId, hotSpotX, hotSpotY), ERR_INVALID_VALUE); in HWTEST_F() 222 int32_t pid = 1000; in HWTEST_F() local 226 EXPECT_EQ(proxy.SetMouseHotSpot(pid, windowId, hotSpotX, hotSpotY), RET_OK); in HWTEST_F()
|
/foundation/multimodalinput/input/service/dfx/test/ |
H A D | dfx_hisysevent_test.cpp | 50 data.pid = 100; in HWTEST_F() 53 EXPECT_EQ(data.pid, res); in HWTEST_F() 67 data.pid = 100; in HWTEST_F() 70 EXPECT_EQ(data.pid, res); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/discovery/ipc/ |
H A D | disc_client_on_device_found_test.cpp | 65 virtual int32_t ClientOnRefreshDeviceFound(const char *pkgName, int32_t pid, const void *device, 90 MOCK_METHOD(int32_t, ClientOnRefreshDeviceFound, (const char *pkgName, int32_t pid, const void *device, 127 int32_t ClientOnRefreshDeviceFound(const char *pkgName, int32_t pid, const void *device, uint32_t deviceLen) in ClientOnRefreshDeviceFound() argument 129 return BusCenterMock::GetMock()->ClientOnRefreshDeviceFound(pkgName, pid, device, deviceLen); in ClientOnRefreshDeviceFound() 338 * @tc.desc: should report osd when refresh osd & cast with same pkgName, pid and stop refresh cast 380 * @tc.desc: should report osd when refresh osd & cast with different pid and stop refresh cast
|