Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 11 of 11) sorted by relevance

/elf/
A Dtst-pldd.c58 *target_pid_ptr = target.pid; in pldd_process()
61 char pid[3 * sizeof (uint32_t) + 1]; in pldd_process() local
62 snprintf (pid, array_length (pid), "%d", target.pid); in pldd_process()
67 execve (prog, (char *const []) { (char *) prog, pid, NULL }, in pldd_process()
108 pid_t pid; in do_test() local
116 TEST_COMPARE (fscanf (out, "%u: " STRINPUT (512), &pid, buffer), 2); in do_test()
118 TEST_COMPARE (pid, *target_pid_ptr); in do_test()
A Dpldd.c75 static void wait_for_ptrace_stop (long int pid);
99 long int pid = strtol (argv[remaining], &endp, 10); in main() local
100 if (pid < 0 || (pid == ULONG_MAX && errno == ERANGE) || *endp != '\0' in main()
101 || (sizeof (pid_t) < sizeof (pid) && pid > INT_MAX)) in main()
106 char buf[7 + 3 * sizeof (pid)]; in main()
107 snprintf (buf, sizeof (buf), "/proc/%lu", pid); in main()
165 if (errno == ESRCH && tid != pid) in main()
205 wait_for_ptrace_stop (long int pid) in wait_for_ptrace_stop() argument
211 while (waitpid (pid, &status, __WALL) == pid && WIFSTOPPED (status)) in wait_for_ptrace_stop()
216 if (ptrace (PTRACE_CONT, pid, NULL, in wait_for_ptrace_stop()
[all …]
A Dtst-align2.c73 pid_t pid = fork (); in do_test() local
74 if (pid < 0) in do_test()
80 if (!pid) in do_test()
133 termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)); in do_test()
139 else if (termpid != pid) in do_test()
142 (long int) termpid, (long int) pid); in do_test()
A Drestest2.c8 pid_t pid, pid2; variable
29 pid = f(); in main()
30 if (pid != pid2 + 26) in main()
A Dtst-latepthread.c50 pid_t pid = fork (); in do_test() local
51 if (pid < 0) in do_test()
56 else if (pid == 0) in do_test()
67 if (waitpid (pid, &status, 0) < 0) in do_test()
A Dtst-stackguard1.c91 pid_t pid = fork (); in do_test() local
92 if (pid < 0) in do_test()
98 if (!pid) in do_test()
128 termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)); in do_test()
134 else if (termpid != pid) in do_test()
137 (long int) termpid, (long int) pid); in do_test()
A Dtst-ptrguard1.c101 pid_t pid = fork (); in do_test() local
102 if (pid < 0) in do_test()
108 if (!pid) in do_test()
138 termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)); in do_test()
144 else if (termpid != pid) in do_test()
147 (long int) termpid, (long int) pid); in do_test()
A Dtst-create_format1.c47 pid_t pid = xfork (); in init_invalid_status() local
48 if (pid == 0) in init_invalid_status()
50 xwaitpid (pid, &invalid_status, 0); in init_invalid_status()
A Ddl-misc.c83 pid_t pid = 0; in _dl_debug_vdprintf() local
94 if (pid == 0) in _dl_debug_vdprintf()
97 pid = __getpid (); in _dl_debug_vdprintf()
98 assert (pid >= 0 && sizeof (pid_t) <= 4); in _dl_debug_vdprintf()
99 p = _itoa (pid, &pidbuf[10], 10, 0); in _dl_debug_vdprintf()
A Dsotruss-lib.c50 match_pid (pid_t pid, const char *which) in match_pid() argument
60 return *endp == '\0' && n == pid; in match_pid()
78 pid_t pid = getpid (); in init() local
80 if (match_pid (pid, which_process)) in init()
90 snprintf (endp, 13, ".%ld", (long int) pid); in init()
A Dpldd-xx.c76 E(find_maps) (const char *exe, int memfd, pid_t pid, void *auxv, in E()
172 printf ("%lu:\t%s\n", (unsigned long int) pid, exe); in E()

Completed in 12 milliseconds