/system/extras/tests/bionic/libc/common/ |
H A D | test_clone.c | 62 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 D | test_executable_destructor.c | 61 pid_t pid; local 80 pid = fork(); 81 if (pid < 0) { 86 if (pid == 0) {
|
/system/extras/tests/cpueater/ |
H A D | cpueater.c | 30 pid_t pid; local 45 switch(pid = fork()) { 69 printf("%d\n", pid);
|
H A D | daemonize.c | 33 int pid, fd, mode; local 84 switch(pid = fork()) { 104 switch(pid = fork()) { 117 waitpid(pid, &status, 0);
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 148 // 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 D | sysutil.cpp | 367 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 D | testcase.h | 121 pid_t pid() const { return mPid; } function in class:android_test::TestCase
|
/system/netd/ |
H A D | PppController.cpp | 54 pid_t pid; local 74 if ((pid = fork()) < 0) { 79 if (!pid) { 100 mPid = pid;
|
H A D | SoftapController.cpp | 59 pid_t pid = 1; local 71 if ((pid = fork()) < 0) { 76 if (!pid) { 86 mPid = pid;
|
H A D | TetherController.cpp | 109 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 D | logwrapper.c | 108 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 D | main.cpp | 145 pid_t pid = wait(NULL); local 146 ALOGD("Child process %d exited", pid);
|
/system/vold/ |
H A D | CommandListener.cpp | 232 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 D | Process.cpp | 66 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 D | logwrapper.c | 109 pid_t pid; local 129 pid = fork(); 130 if (pid < 0) { 134 } else if (pid == 0) {
|