Searched defs:pid (Results 51 - 65 of 65) sorted by path

123

/system/extras/tests/bionic/libc/common/
H A Dtest_clone.c62 int pid,child; local
65 pid = clone (clone_child, clone_stack + 3 * PAGE_SIZE,
67 if (pid < 0)
72 printf ("child pid %d\n", pid);
75 child = waitpid (pid, &status, 0);
H A Dtest_executable_destructor.c61 pid_t pid; local
80 pid = fork();
81 if (pid < 0) {
86 if (pid == 0) {
/system/extras/tests/cpueater/
H A Dcpueater.c30 pid_t pid; local
45 switch(pid = fork()) {
69 printf("%d\n", pid);
H A Ddaemonize.c33 int pid, fd, mode; local
84 switch(pid = fork()) {
104 switch(pid = fork()) {
117 waitpid(pid, &status, 0);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp148 // Print command line, pid, kernel version, OOM adj and scheduler.
308 pid_t *pid = (pid_t*)chunk; local
340 if (testCase->pid() != *pid)
342 fprintf(stderr, "Wrong pid found @ read block %x != %x\n", testCase->pid(), *pid);
359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk
375 sprintf(filename, "%s/file-%d-%d", kTestDir, i, testCase->pid());
[all...]
H A Dsysutil.cpp367 pid_t pid = wait(&status); local
368 if (-1 == pid)
376 fprintf(stderr, "Child pid %d did not exit cleanly %s\n",
377 pid, reasonChildExited(status));
445 pid_t pid = getpid(); local
446 char *start = reinterpret_cast<char *>(&pid);
447 size_t size = sizeof(pid);
530 pid_t pid; local
531 char *end = reinterpret_cast<char *>(&pid);
535 size = sizeof(pid);
[all...]
H A Dtestcase.h121 pid_t pid() const { return mPid; } function in class:android_test::TestCase
/system/netd/
H A DPppController.cpp54 pid_t pid; local
74 if ((pid = fork()) < 0) {
79 if (!pid) {
100 mPid = pid;
H A DSoftapController.cpp59 pid_t pid = 1; local
71 if ((pid = fork()) < 0) {
76 if (!pid) {
86 mPid = pid;
H A DTetherController.cpp109 pid_t pid; local
121 if ((pid = fork()) < 0) {
128 if (!pid) {
147 args[5] = (char *)"--pid-file";
165 mDaemonPid = pid;
210 pid_t pid; local
211 if ((pid = fork()) < 0) {
216 if (!pid) {
238 mDhcpcdPid = pid;
239 ALOGD("Reverse Tethering running, pid
[all...]
H A Dlogwrapper.c108 pid_t pid; local
128 pid = fork();
129 if (pid < 0) {
133 } else if (pid == 0) {
205 pid_t pid; local
213 switch (pid = vfork()) {
225 pid = waitpid(pid, (int *)&pstat, 0);
229 return (pid == -1 ? -1 : pstat);
H A Dmain.cpp145 pid_t pid = wait(NULL); local
146 ALOGD("Child process %d exited", pid);
/system/vold/
H A DCommandListener.cpp232 int pid = Process::getPid(de->d_name); local
234 if (pid < 0) {
239 Process::getProcessName(pid, processName, sizeof(processName));
241 if (Process::checkFileDescriptorSymLinks(pid, argv[2]) ||
242 Process::checkFileMaps(pid, argv[2]) ||
243 Process::checkSymLink(pid, argv[2], "cwd") ||
244 Process::checkSymLink(pid, argv[2], "root") ||
245 Process::checkSymLink(pid, argv[2], "exe")) {
248 snprintf(msg, sizeof(msg), "%d %s", pid, processName);
H A DProcess.cpp66 void Process::getProcessName(int pid, char *buffer, size_t max) { argument
68 snprintf(buffer, max, "/proc/%d/cmdline", pid);
79 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint) { argument
80 return checkFileDescriptorSymLinks(pid, mountPoint, NULL, 0);
83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { argument
88 sprintf(path, "/proc/%d/fd", pid);
124 int Process::checkFileMaps(int pid, const char *mountPoint) { argument
125 return checkFileMaps(pid, mountPoint, NULL, 0);
128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { argument
132 sprintf(buffer, "/proc/%d/maps", pid);
154 checkSymLink(int pid, const char *mountPoint, const char *name) argument
191 int pid = getPid(de->d_name); local
[all...]
H A Dlogwrapper.c109 pid_t pid; local
129 pid = fork();
130 if (pid < 0) {
134 } else if (pid == 0) {

Completed in 94 milliseconds

123