/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_002.cpp | 126 auto pid = clone(ChildFunc, stackTop, SIGCHLD, NULL); in ItNetContainer002() local 127 ASSERT_NE(pid, -1); in ItNetContainer002() 130 ret = waitpid(pid, &status, 0); in ItNetContainer002() 131 ASSERT_EQ(ret, pid); in ItNetContainer002()
|
H A D | It_net_container_001.cpp | 117 auto pid = clone(ChildFunc, stackTop, SIGCHLD | CLONE_NEWNET, NULL); in ItNetContainer001() local 118 ASSERT_NE(pid, -1); in ItNetContainer001() 121 ret = waitpid(pid, &status, 0); in ItNetContainer001() 122 ASSERT_EQ(ret, pid); in ItNetContainer001()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | signal_test_001.cpp | 71 int pid = fork(); in TestCase() local 72 if (pid == 0) { in TestCase() 83 int ret = kill(10, 0); // 10, kill process pid. in TestCase() 88 ret = kill(99999, 0); // 99999, kill process pid. in TestCase() 93 ret = kill(10, 31); // 10, kill process pid; 31, signal. in TestCase() 98 ret = kill(10, 32); // 10, kill process pid; 32, signal. in TestCase() 104 ret = kill(2, 32); // 2, kill process pid; 32, signal. in TestCase() 111 ret = kill(2, 5); // 2, kill process pid; 5, signal. in TestCase() 117 ret = kill(3, 5); // 3, kill process pid; 5, signal. in TestCase() 181 int retValue = waitpid(pid, in TestCase() [all...] |
/kernel/liteos_a/testsuites/unittest/security/vid/smoke/ |
H A D | vid_test_001.cpp | 130 int pid; in TestCase() local 132 pid = fork(); in TestCase() 133 if (pid == 0) { in TestCase() 137 waitpid(pid, &status, 0); in TestCase()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | mntentndk.cpp | 52 int pid = PARAM_0;
in DoPlainTests() local 53 pid = fork();
in DoPlainTests() 54 if (pid == FAIL) {
in DoPlainTests() 57 if (pid == PARAM_0) {
in DoPlainTests()
|
H A D | mountndk.cpp | 40 int pid = PARAM_0;
in DoPlainTests() local 41 pid = fork();
in DoPlainTests() 42 if (pid == FAIL) {
in DoPlainTests() 45 if (pid == PARAM_0) {
in DoPlainTests()
|
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/ |
H A D | signalndk32.cpp | 52 pid_t pid = fork();
in SigTimedWait_time641() local 54 if (pid && pid != MINUSONE) {
in SigTimedWait_time641() 62 if (pid == PARAM_0) {
in SigTimedWait_time641()
|
/test/xts/hats/kernel/syscalls/fileio/capset/ |
H A D | CapsetApiTest.cpp | 71 hdr.pid = g_pid; in HWTEST_F() 100 hdr.pid = g_pid; in HWTEST_F() 121 hdr.pid = INVALID_PID; in HWTEST_F() 142 hdr.pid = UNUSED_PID; in HWTEST_F()
|
/test/xts/hats/kernel/syscalls/security/capget/ |
H A D | CapGetApiTest.cpp | 71 hdr.pid = g_pid; in HWTEST_F() 102 hdr.pid = g_pid; in HWTEST_F() 123 hdr.pid = INVALID_PID; in HWTEST_F() 144 hdr.pid = UNUSED_PID; in HWTEST_F()
|
/third_party/alsa-utils/alsaloop/ |
H A D | test.sh | 79 pid=$(ps ax | grep alsaloop | grep -v grep | colrm 7 255) 80 if test -n "$pid"; then 81 echo "Killing alsaloop $pid..." 82 kill -SIGUSR1 $pid
|
/third_party/googletest/googletest/src/hwext/ |
H A D | gtest-multithread.cpp | 32 auto pid = rand() % 100 + i; in run() local 33 appendTaskToList(pid, val.m_func, val.m_testsuite, val.m_testcase); in run() 73 auto pid = rand() % 100 + i; in runTask() local 74 appendTaskToList(pid, val.m_func, val.m_testsuite, val.m_testcase); in runTask()
|
/third_party/mesa3d/.gitlab-ci/common/ |
H A D | init-stage2.sh | 13 for pid in $BACKGROUND_PIDS 15 kill "$pid" 2>/dev/null || true 21 for pid in $BACKGROUND_PIDS 23 kill -9 "$pid" 2>/dev/null || true
|
/third_party/node/tools/ |
H A D | pseudo-tty.py | 65 pid = os.fork() variable 66 if not pid: 95 if pid == os.waitpid(pid, os.WNOHANG)[0]:
|
/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access02.c | 146 pid_t pid; in verify_access() local 152 pid = SAFE_FORK(); in verify_access() 153 if (pid) { in verify_access() 154 SAFE_WAITPID(pid, NULL, 0); in verify_access()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork09.c | 67 int pid, status, nf; in main() local 115 pid = fork(); in main() 116 if (pid == -1) in main() 119 if (pid == 0) { /* child */ in main()
|
/third_party/ltp/testcases/kernel/syscalls/mbind/ |
H A D | mbind04.c | 49 pid_t pid; in verify_policy() local 72 pid = SAFE_FORK(); in verify_policy() 73 if (pid) { in verify_policy() 109 if (!pid) in verify_policy()
|
/third_party/ltp/testcases/kernel/syscalls/select/ |
H A D | select03.c | 72 int pid, status; in run() local 74 pid = SAFE_FORK(); in run() 75 if (!pid) in run() 78 SAFE_WAITPID(pid, &status, 0); in run()
|
/third_party/ltp/testcases/kernel/uevents/ |
H A D | uevent03.c | 54 int pid, fd; in verify_uevent() local 224 pid = SAFE_FORK(); in verify_uevent() 225 if (!pid) { in verify_uevent() 231 wait_for_pid(pid); in verify_uevent()
|
/third_party/ltp/testcases/kernel/input/ |
H A D | input06.c | 49 int pid; in main() local 56 pid = tst_fork(); in main() 58 switch (pid) { in main() 73 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|
/third_party/ltp/testcases/kernel/security/umip/ |
H A D | umip_basic_test.c | 85 pid_t pid; in verify_umip_instruction() local 87 pid = SAFE_FORK(); in verify_umip_instruction() 88 if (pid == 0) { in verify_umip_instruction() 113 SAFE_WAITPID(pid, &status, 0); in verify_umip_instruction()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
H A D | shmat01.c | 84 pid_t pid; in verify_shmat() local 115 pid = SAFE_FORK(); in verify_shmat() 116 if (!pid) in verify_shmat() 119 SAFE_WAITPID(pid, &status, 0); in verify_shmat()
|
/third_party/ltp/testcases/kernel/syscalls/setitimer/ |
H A D | setitimer01.c | 61 pid_t pid; in verify_setitimer() local 75 pid = SAFE_FORK(); in verify_setitimer() 77 if (pid == 0) { in verify_setitimer() 125 SAFE_WAITPID(pid, &status, 0); in verify_setitimer()
|
/third_party/ltp/testcases/kernel/syscalls/swapon/ |
H A D | swapon03.c | 103 pid_t pid; in setup_swap() local 145 pid = SAFE_FORK(); in setup_swap() 146 if (pid == 0) { in setup_swap() 174 waitpid(pid, &status, 0); in setup_swap()
|
/third_party/ltp/include/lapi/ |
H A D | sched.h | 36 static inline int sched_setattr(pid_t pid, const struct sched_attr *attr, in sched_setattr() argument 39 return syscall(__NR_sched_setattr, pid, attr, flags); in sched_setattr() 42 static inline int sched_getattr(pid_t pid, struct sched_attr *attr, in sched_getattr() argument 45 return syscall(__NR_sched_getattr, pid, attr, size, flags); in sched_getattr()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 16-1.c | 44 int pid, succeeded = 0; in main() local 80 pid = fork(); in main() 81 if (pid == 0) { in main() 108 kill(pid, SIGUSR1); in main()
|