Home
last modified time | relevance | path

Searched refs:mypid (Results 1 – 24 of 24) sorted by relevance

/external/ltp/testcases/kernel/syscalls/kill/
Dkill10.c202 pid_t mypid = 0; variable
251 mypid, -child_checklist[cnt].pid); in main()
260 mypid, child_signal_counter, num_pgrps); in main()
298 mypid = getpid(); in setup()
303 printf("%d: setting SIGTRAP -> SIG_DFL\n", mypid); in setup()
306 printf("%d: setting SIGCONT -> SIG_DFL\n", mypid); in setup()
311 printf("%d: setting SIGALRM -> set_create_procs\n", mypid); in setup()
318 printf("%d: setting SIGUSR1 -> ack_ready\n", mypid); in setup()
325 printf("Master: %d\n", mypid); in setup()
330 mypid, pgrps_ready, num_pgrps); in setup()
[all …]
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/event/
Devent-pid.tc42 read mypid rest < /proc/self/stat
44 echo $mypid > set_event_pid
45 grep -q $mypid set_event_pid
50 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
57 echo $mypid > set_event_pid
63 count=`cat trace | grep sched_switch | grep -v "pid=$mypid" | wc -l`
/external/ltp/testcases/kernel/syscalls/open/
Dopen04.c41 static int fd, ifile, mypid, first; variable
88 mypid = getpid(); in setup()
90 sprintf(fname, "open04.%d", mypid); in setup()
106 sprintf(fname, "open04.%d.%d", ifile, mypid); in setup()
124 sprintf(fname, "open04.%d.%d", ifile, mypid); in cleanup()
Dopen10.c76 pid_t mypid; in main() local
89 mypid = getpid(); in main()
90 sprintf(DIR_A, DIR_A_TEMP, mypid); in main()
91 sprintf(DIR_B, DIR_B_TEMP, mypid); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/
D1-1.c72 pid_t mypid, hispid, ctlpid; in main() local
77 mypid = getpid(); in main()
79 output("Main pid: %d\n", mypid); in main()
95 if (mypid != hispid) { in main()
185 if (hispid == mypid) { in main()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork09.c61 static int mypid, nfiles; variable
81 mypid = getpid(); in main()
86 sprintf(filname, "fork09.%d", mypid); in main()
98 sprintf(filname, "file%d.%d", nfiles, mypid); in main()
151 sprintf(filname, "file%d.%d", nf, mypid); in main()
/external/ltp/testcases/kernel/syscalls/close/
Dclose01.c104 int mypid; in setup() local
114 mypid = getpid(); in setup()
115 sprintf(fname, "fname.%d", mypid); in setup()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl01.c49 int mypid, i; in main() local
61 mypid = getpid(); in main()
63 sprintf(fname, "./fcntl%d.%d", i, mypid); in main()
160 sprintf(fname, "./fcntl%d.%d", i, mypid); in main()
/external/ltp/testcases/kernel/syscalls/mknod/
Dmknod03.c100 pid_t mypid; /* process id */ variable
214 mypid = getpid(); in setup()
217 sprintf(node_name, TNODE, mypid); in setup()
Dmknod08.c99 pid_t mypid; /* process id */ variable
215 mypid = getpid(); in setup()
218 sprintf(node_name, TNODE, mypid); in setup()
Dmknod05.c100 pid_t mypid; /* process id */ variable
211 mypid = getpid(); in setup()
214 sprintf(node_name, TNODE, mypid); in setup()
Dmknod02.c100 pid_t mypid; /* process id */ variable
218 mypid = getpid(); in setup()
221 sprintf(node_name, TNODE, mypid); in setup()
Dmknod04.c100 pid_t mypid; /* process id */ variable
219 mypid = getpid(); in setup()
222 sprintf(node_name, TNODE, mypid); in setup()
/external/libcap/progs/
Dquicktest.sh146 mypid=\$\$
147 caps=\$(./getpcaps \$mypid 2>&1 | /usr/bin/cut -d: -f2)
190 mypid=\$\$
191 caps=\$(./getpcaps \$mypid 2>&1 | /usr/bin/cut -d: -f2)
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c260 __u32 mypid; in main() local
356 mypid = getpid(); in main()
365 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
381 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
397 rc = send_cmd(nl_sd, id, mypid, CGROUPSTATS_CMD_GET, in main()
517 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
/external/python/cpython2/Python/
Dthread_sgi.h81 pid_t mypid, pid; in clean_threads() local
84 mypid = getpid(); in clean_threads()
87 if (pidlist[i].parent == mypid && (pid = pidlist[i].child) > 0) { in clean_threads()
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c88 pid_t mypid; in main() local
102 mypid = getpid(); in main()
103 sprintf(DIR_A, DIR_A_TEMP, mypid); in main()
104 sprintf(DIR_B, DIR_B_TEMP, mypid); in main()
/external/linux-kselftest/android/patches/
D0017-seccomp_bpf.patch64 pid_t mypid, parent;
67 EXPECT_EQ(mypid, syscall(__NR_getpid));
D0009-seccomp-disable-tests-broken-on-kernels-4.8.patch35 EXPECT_NE(self->mypid, syscall(__NR_getpid));
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1328 pid_t mypid, parent;
1331 mypid = getpid();
1343 EXPECT_EQ(mypid, syscall(__NR_getpid));
1348 pid_t mypid, parent;
1351 mypid = getpid();
1363 EXPECT_EQ(mypid, syscall(__NR_getpid));
1833 pid_t tracer, mytid, mypid, parent; in FIXTURE_DATA() local
1865 self->mypid = getpid(); in FIXTURE_SETUP()
1866 ASSERT_GT(self->mypid, 0); in FIXTURE_SETUP()
1867 ASSERT_EQ(self->mytid, self->mypid); in FIXTURE_SETUP()
[all …]
/external/seccomp-tests/linux/
Dseccomp_bpf.c1379 pid_t tracer, mytid, mypid, parent; in FIXTURE_DATA() local
1409 self->mypid = getpid(); in FIXTURE_SETUP()
1410 ASSERT_GT(self->mypid, 0); in FIXTURE_SETUP()
1411 ASSERT_EQ(self->mytid, self->mypid); in FIXTURE_SETUP()
1415 ASSERT_NE(self->parent, self->mypid); in FIXTURE_SETUP()
1440 EXPECT_NE(self->mypid, syscall(__NR_getppid)); in TEST_F()
1455 EXPECT_NE(self->mypid, syscall(__NR_getpid)); in TEST_F()
/external/ppp/pppd/
Dsys-linux.c2174 pid_t mypid = getpid(); in logwtmp() local
2185 while ((utp = getutent()) && (utp->ut_pid != mypid)) in logwtmp()
2203 ut.ut_pid = mypid; in logwtmp()
/external/python/cpython3/Modules/
Dposixmodule.c7642 pid_t mypid; in win32_getppid() local
7647 mypid = getpid(); /* This function never fails */ in win32_getppid()
7656 if (mypid == (pid_t)pe.th32ProcessID) { in win32_getppid()
/external/mksh/src/
Dcheck.t12886 (mypid=$$; try mypid)
12917 mypid=nz