/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open07.c | 164 sprintf(file1, "open03.1.%d", getpid()); in setupfunc_test1() 165 sprintf(file2, "open03.2.%d", getpid()); in setupfunc_test1() 177 sprintf(file1, "open03.3.%d", getpid()); in setupfunc_test2() 178 sprintf(file2, "open03.4.%d", getpid()); in setupfunc_test2() 190 sprintf(file1, "open03.5.%d", getpid()); in setupfunc_test3() 191 sprintf(file2, "open03.6.%d", getpid()); in setupfunc_test3() 192 sprintf(file3, "open03.7.%d", getpid()); in setupfunc_test3() 206 sprintf(file1, "open03.8.%d", getpid()); in setupfunc_test4() 207 sprintf(file2, "open03.9.%d", getpid()); in setupfunc_test4() 208 sprintf(file3, "open03.10.%d", getpid()); in setupfunc_test4() [all …]
|
/third_party/ltp/testcases/kernel/mem/mtest07/ |
D | shm_test.c | 72 dprt("pid[%d]: exiting with %d\n", getpid(),exit_val); \ 141 getpid(), shm_id, shm_addr, cmd); in rm_shared_mem() 143 dprt("pid[%d]: rm_shared_mem(): shmctl unable to remove shm_id[%d]\n", getpid(), shm_id); in rm_shared_mem() 150 dprt("pid[%d]:rm_shared_mem(): shmdt unable to detach addr = %#x\n", getpid(), shm_addr); in rm_shared_mem() 191 getpid(), args->shmkey); in shmat_rd_wr() 198 getpid()); in shmat_rd_wr() 204 "success got segment id %d\n", getpid(), shm_id); in shmat_rd_wr() 211 getpid(), (long)shmat_addr); in shmat_rd_wr() 215 dprt("pid[%d]: do_shmat_shmadt(): content of memory shmat_addr = %s\n", getpid(), shmat_addr); in shmat_rd_wr() 219 getpid(), (long)shmat_addr); in shmat_rd_wr() [all …]
|
/third_party/musl/libc-test/src/functionalext/trace/ |
D | trace_marker.c | 70 … int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Musl_Trace_Marker_0100"); in trace_marker_0010() 76 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0010() 120 …int buf_async_begin_fd = snprintf(buf_async_begin, BUFFER_LEN, "S|%d|%s|%s %d", getpid(), "async_b… in trace_marker_0020() 126 …int buf_async_end_fd = snprintf(buf_async_end, BUFFER_LEN, "F|%d|%s|%s %d", getpid(), "async_end_0… in trace_marker_0020() 170 …int buf_begin_fd = snprintf(buf_count, BUFFER_LEN, "C|%d|%s %d", getpid(), "traceCount", traceCoun… in trace_marker_0030() 209 int pidChild = getpid(); in trace_marker_0040() 222 …int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Trace_Marker0400_Forkfir"… in trace_marker_0040() 228 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040() 260 …int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Trace_Marker0400_Forksec"… in trace_marker_0040() 266 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0040() [all …]
|
/third_party/musl/libc-test/src/functionalext/info/ |
D | fatal_message.c | 67 pidChild = getpid(); in fatal_message_0020() 102 pidChild = getpid(); in fatal_message_0030() 104 pidParent = getpid(); in fatal_message_0030() 112 pidCChild = getpid(); in fatal_message_0030() 118 pidCParent = getpid(); in fatal_message_0030() 154 pidChild = getpid(); in fatal_message_0040() 156 pidParent = getpid(); in fatal_message_0040() 164 pidCChild = getpid(); in fatal_message_0040() 169 pidCParent = getpid(); in fatal_message_0040()
|
/third_party/ltp/testcases/kernel/syscalls/eventfd2/ |
D | eventfd2_03.c | 67 getpid(), fd, cntr); in xsem_wait() 82 fprintf(stdout, "[%u] posting 1 on %d\n", getpid(), fd1); in sem_player() 85 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player() 88 fprintf(stdout, "[%u] posting 1 on %d\n", getpid(), fd1); in sem_player() 91 fprintf(stdout, "[%u] waiting on %d\n", getpid(), fd2); in sem_player() 94 fprintf(stdout, "[%u] posting 5 on %d\n", getpid(), fd1); in sem_player() 97 fprintf(stdout, "[%u] waiting 5 times on %d\n", getpid(), fd2); in sem_player()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | forker.c | 186 getpid(); in forker() 212 getpid(); in forker() 262 printf("Starting Pid = %d\n", getpid()); 264 printf("After background() ret:%d, pid = %d\n", ret, getpid()); 269 ncopies, mode, argv[0], ret, getpid()); 272 getpid(), Forker_npids); 275 printf("%d ind:%-2d pid:%d\n", getpid(), ind, Forker_pids[ind]);
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | getpriority.c | 33 int ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0100() 38 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0100() 58 ret = setpriority(PRIO_PROCESS, getpid(), i); in getpriority_0200() 62 ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0200() 69 ret = setpriority(PRIO_PGRP, getpgid(getpid()), i); in getpriority_0200() 73 ret = getpriority(PRIO_PGRP, getpgid(getpid())); in getpriority_0200() 103 ret = getpriority(TEST_WHO_ERROR, getpid()); in getpriority_0300()
|
/third_party/musl/porting/linux/user/src/trace/ |
D | trace_marker.c | 71 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d %s", getpid(), message); in trace_marker_begin() 73 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "B|%d|%s %s", getpid(), message, value); in trace_marker_begin() 102 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "E|%d", getpid()); in trace_marker_end() 132 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s %d", getpid(), message, taskId); in trace_marker_async_begin() 134 … len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "S|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_begin() 165 len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s %d", getpid(), message, taskId); in trace_marker_async_end() 167 … len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "F|%d|%s|%s %d", getpid(), message, value, taskId); in trace_marker_async_end() 195 int len = snprintf(buf, TRACE_MARKER_MESSAGE_LEN, "C|%d|%s %d", getpid(), message, value); in trace_marker_count()
|
/third_party/ltp/testcases/kernel/sched/tool/ |
D | trace_sched.c | 145 sprintf(filename, "/proc/%d/stat", getpid()); in get_proc_num() 210 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 230 if ((sched_setscheduler(getpid(), sched_policy, &ssp)) == -1) { in thread_func() 232 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 239 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 243 if ((get_priority = sched_getparam(getpid(), &gsp)) == -1) { in thread_func() 245 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 252 dprt("pid[%d]: exiting with -1\n", getpid()); in thread_func() 263 "Processor last execed on = %d\n\n", getpid(), in thread_func() 271 locargptr->procs_id = getpid(); in thread_func() [all …]
|
/third_party/gettext/gettext-tools/examples/hello-smalltalk/ |
D | hello.st.in | 32 …Transcript showCr: ((NLS ? 'This program is running as process number %1.') bindWith: self getpid). 36 "Unfortunately I cannot define getpid like this - it gives 37 'C function getpid not defined'. 39 SystemDictionary defineCFunc: 'getpid' 40 withSelectorArgs: 'getpid' 48 getpid
|
/third_party/ltp/lib/newlib_tests/ |
D | test06.c | 14 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 19 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup() 28 tst_brk(TBROK, "Child pid %i", getpid()); in do_test() 31 tst_res(TPASS, "Parent pid %i", getpid()); in do_test()
|
D | test05.c | 14 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 19 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup() 28 tst_res(TPASS, "Child (%i) reports", getpid()); in do_test() 31 tst_res(TPASS, "Parent (%i) reports", getpid()); in do_test()
|
D | tst_cgroup02.c | 34 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 51 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 56 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid()); in do_test() 77 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid()); in cleanup()
|
D | test07.c | 14 tst_res(TINFO, "setup() executed by pid %i", getpid()); in setup() 19 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); in cleanup() 28 tst_res(TPASS, "Child (%i)", getpid()); in do_test()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | process_vm.c | 36 ssize_t rev = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_writev_0100() 61 ssize_t rev = process_vm_readv(getpid(), local, 2, remote, 2, 0); in process_vm_writev_0200() 83 ssize_t rev = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_writev_0300() 103 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0100() 123 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0200() 143 int ret = process_vm_readv(getpid(), &local, 1, &remote, 1, 0); in process_vm_readv_0300()
|
D | prlimit.c | 32 int ret = prlimit(getpid(), RLIMIT_STACK, &new_limit, NULL); in prlimit_0100() 34 ret = prlimit(getpid(), RLIMIT_STACK, NULL, &old_limit); in prlimit_0100() 50 int ret = prlimit(getpid(), -1, &new_limit, NULL); in prlimit_0200() 54 ret = prlimit(getpid(), RLIMIT_STACK, &new_limit, NULL); in prlimit_0200()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
D | 17-2.c | 37 if (sched_getparam(getpid(), ¶m) != 0) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 61 if (sched_getparam(getpid(), ¶m) != 0) { in main() 66 new_policy = sched_getscheduler(getpid()); in main()
|
D | 17-4.c | 36 if (sched_getparam(getpid(), ¶m) == -1) { in main() 42 old_policy = sched_getscheduler(getpid()); in main() 57 if (sched_getparam(getpid(), ¶m) != 0) { in main() 62 new_policy = sched_getscheduler(getpid()); in main()
|
D | 17-3.c | 37 if (sched_getparam(getpid(), ¶m) != 0) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 60 if (sched_getparam(getpid(), ¶m) != 0) { in main() 65 new_policy = sched_getscheduler(getpid()); in main()
|
D | 17-7.c | 37 if (sched_getparam(getpid(), ¶m) == -1) { in main() 43 old_policy = sched_getscheduler(getpid()); in main() 75 if (sched_getparam(getpid(), ¶m) != 0) { in main() 80 new_policy = sched_getscheduler(getpid()); in main()
|
D | 4-1.c | 26 if (sched_getparam(getpid(), ¶m) != 0) { in main() 31 old_policy = sched_getscheduler(getpid()); in main() 49 if (sched_getparam(getpid(), ¶m) != 0) { in main() 54 test_policy = sched_getscheduler(getpid()); in main()
|
D | 17-6.c | 76 if (sched_getparam(getpid(), ¶m) == -1) { in main() 82 old_policy = sched_getscheduler(getpid()); in main() 98 if (sched_getparam(getpid(), ¶m) != 0) { in main() 103 new_policy = sched_getscheduler(getpid()); in main()
|
D | 17-1.c | 60 if (sched_getparam(getpid(), ¶m) != 0) { in main() 66 old_policy = sched_getscheduler(getpid()); in main() 86 if (sched_getparam(getpid(), ¶m) != 0) { in main() 91 new_policy = sched_getscheduler(getpid()); in main()
|
/third_party/glib/gio/tests/ |
D | credentials.c | 60 getpid ()); in test_basic() 100 g_assert_cmpuint (native->pid, ==, getpid ()); in test_basic() 116 g_assert_cmpuint (native->cmcred_pid, ==, getpid ()); in test_basic() 124 g_assert_cmpuint (native->unp_pid, ==, getpid ()); in test_basic() 132 g_assert_cmpuint (native->pid, ==, getpid ()); in test_basic() 140 g_assert_cmpuint (ucred_getpid (native), ==, getpid ()); in test_basic()
|
/third_party/ltp/testcases/kernel/connectors/pec/ |
D | event_generator.c | 62 printf("exec pid: %d\n", getpid()); in gen_exec() 80 printf("fork parent: %d, child: %d\n", getppid(), getpid()); in gen_fork() 90 getpid(), 0, SIGCHLD); in gen_exit() 100 printf("uid pid: %d euid: %d ruid: %d\n", getpid(), ltp_uid, ltp_uid); in gen_uid() 109 printf("gid pid: %d egid: %d rgid: %u\n", getpid(), ltp_gid, ltp_gid); in gen_gid()
|