Home
last modified time | relevance | path

Searched refs:pid (Results 1226 - 1250 of 6074) sorted by relevance

1...<<41424344454647484950>>...243

/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A Dsignal_test_033.cpp50 int pid = 0; in TestCase() local
55 pid = fork(); in TestCase()
56 if (pid < 0) { in TestCase()
59 } else if (pid == 0) { in TestCase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_008.cpp51 int pid; in ProcessTest001() local
88 int pid; in Testcase() local
101 pid = ret; in Testcase()
104 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
/kernel/liteos_a/testsuites/unittest/process/fs/
H A Dprocess_fs_test.cpp47 std::string GenProcPidPath(int pid) in GenProcPidPath() argument
50 buf << "/proc/" << pid; in GenProcPidPath() local
54 std::string GenProcPidContainerPath(int pid, char *name) in GenProcPidContainerPath() argument
57 buf << "/proc/" << pid << "/container/" << name; in GenProcPidContainerPath()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_memory_002.cpp58 int ret, pid, status; in ItProcessPlimitsMemory002() local
75 pid = clone(CloneOne, stack, 0, NULL); in ItProcessPlimitsMemory002()
76 ret = waitpid(pid, &status, 0); in ItProcessPlimitsMemory002()
77 ASSERT_EQ(ret, pid); in ItProcessPlimitsMemory002()
H A DIt_process_plimits_memory_001.cpp57 int ret, pid, status; in ItProcessPlimitsMemory001() local
74 pid = clone(CloneOne, stack, 0, NULL); in ItProcessPlimitsMemory001()
75 ret = waitpid(pid, &status, 0); in ItProcessPlimitsMemory001()
76 ASSERT_EQ(ret, pid); in ItProcessPlimitsMemory001()
/test/xts/hats/kernel/syscalls/mem/processvm/
H A DProcessvmApiTest.cpp71 pid_t pid = getpid(); in HWTEST_F() local
86 ssize_t nread = process_vm_readv(pid, local, 2, remote, 1, 0); in HWTEST_F()
101 pid_t pid = getpid(); in HWTEST_F() local
116 ssize_t len = process_vm_writev(pid, local, 2, remote, 1, 0); in HWTEST_F()
/third_party/mesa3d/include/android_stub/log/
H A Dlog_read.h42 int32_t pid; /* generating process's pid */ member
112 pid_t pid);
114 pid_t pid);
124 unsigned int tail, pid_t pid);
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns13.c44 tst_res(TWARN, "cinit(pid %d): Caught signal! sig=%d, si_fd=%d, si_code=%d", in child_signal_handler()
54 pid_t pid, ppid; in child_fn() local
57 pid = tst_getpid(); in child_fn()
59 if (pid != CHILD_PID || ppid != PARENT_PID) in child_fn()
69 SAFE_FCNTL(pipe_fd[0], F_SETOWN, pid); in child_fn()
/third_party/ltp/testcases/kernel/controllers/cpuctl/
H A Drun_cpuctl_latency_test.sh46 declare -a pid;
59 if [ -n "${pid[1]}" ]; then
62 kill -s SIGUSR1 ${pid[$i]} 2>/dev/null;
155 pid[$i]=$!;
186 pid[$num]=$!;
/third_party/ltp/testcases/kernel/crypto/
H A Dcrypto_user02.c90 pid_t pid; in run() local
102 pid = SAFE_FORK(); in run()
104 if (pid == 0) { in run()
122 kill(pid, SIGKILL); in run()
/third_party/musl/src/unistd/
H A Dfaccessat.c41 pid_t pid; in faccessat() local
50 pid = __clone(checker, stack+sizeof stack, 0, &c); in faccessat()
53 if (pid<0 || __syscall(SYS_read, p[0], &ret, sizeof ret) != sizeof(ret)) in faccessat()
56 __sys_wait4(pid, &status, __WCLONE, 0); in faccessat()
/third_party/ltp/testcases/kernel/syscalls/access/
H A Daccess04.c75 pid_t pid; in verify_access() local
79 pid = SAFE_FORK(); in verify_access()
80 if (pid) { in verify_access()
81 SAFE_WAITPID(pid, NULL, 0); in verify_access()
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen05.c55 pid_t pid; in main() local
65 pid = FORK_OR_VFORK(); in main()
66 if (pid == -1) in main()
69 if (pid == 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl10.c70 int tsc_val = 0, pid, status; in verify_prctl() local
72 pid = SAFE_FORK(); in verify_prctl()
73 if (!pid) { in verify_prctl()
94 SAFE_WAITPID(pid, &status, 0); in verify_prctl()
H A Dprctl03.c63 pid_t pid; in verify_prctl() local
82 pid = SAFE_FORK(); in verify_prctl()
83 if (!pid) { in verify_prctl()
103 SAFE_WAITPID(pid, NULL, 0); in verify_prctl()
107 tst_res(TPASS, "wait() got orphaned process, pid %d, status %d", in verify_prctl()
/third_party/ltp/testcases/kernel/syscalls/setrlimit/
H A Dsetrlimit06.c55 pid_t pid; in verify_setrlimit() local
59 pid = SAFE_FORK(); in verify_setrlimit()
60 if (!pid) { in verify_setrlimit()
78 SAFE_WAITPID(pid, &status, 0); in verify_setrlimit()
/third_party/ltp/testcases/kernel/syscalls/statfs/
H A Dstatfs02.c53 int pid, status; in statfs_verify() local
55 pid = SAFE_FORK(); in statfs_verify()
56 if (!pid) { in statfs_verify()
61 SAFE_WAITPID(pid, &status, 0); in statfs_verify()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap21.c33 tst_res(TINFO, "Thread %d (pid %d): Mapped at address %p", in do_work()
40 tst_brk(TBROK | TERRNO, "Thread %d (pid %d): msync() failed", in do_work()
45 tst_res(TFAIL, "thread %d (pid: %d): Corruption at %p; " in do_work()
52 tst_res(TINFO, "Thread %d (pid %d): Pattern verified", in do_work()
62 int i, pid; in run_test() local
82 pid = SAFE_FORK(); in run_test()
84 if (pid == 0) in run_test()
87 wait_list[i] = pid; in run_test()
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/
H A Depoll_pwait01.c57 pid_t pid; in run() local
60 pid = getppid(); in run()
62 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in run()
63 SAFE_KILL(pid, SIGUSR1); in run()
/third_party/ltp/testcases/kernel/syscalls/fstat/
H A Dfstat03.c63 pid_t pid; in run() local
66 pid = SAFE_FORK(); in run()
67 if (pid == 0) { in run()
71 SAFE_WAITPID(pid, &status, 0); in run()
/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect03.c69 int fd, pid; in main() local
98 if ((pid = FORK_OR_VFORK()) == -1) { in main()
102 if (pid == 0) { in main()
109 waitpid(pid, &status, 0); in main()
/third_party/ltp/testcases/kernel/uevents/
H A Duevent02.c111 int pid, fd; in verify_uevent() local
113 pid = SAFE_FORK(); in verify_uevent()
114 if (!pid) { in verify_uevent()
125 wait_for_pid(pid); in verify_uevent()
/third_party/ltp/testcases/kernel/input/
H A Dinput01.c47 int pid; in main() local
54 pid = tst_fork(); in main()
56 switch (pid) { in main()
70 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
H A Dinput03.c47 int pid; in main() local
54 pid = tst_fork(); in main()
56 switch (pid) { in main()
71 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
/third_party/ltp/testcases/kernel/syscalls/dup2/
H A Ddup203.c91 int pid; in setup() local
93 pid = getpid(); in setup()
94 sprintf(filename0, "dup203.file0.%d\n", pid); in setup()
95 sprintf(filename1, "dup203.file1.%d\n", pid); in setup()

Completed in 8 milliseconds

1...<<41424344454647484950>>...243