/system/core/libcorkscrew/arch-mips/ |
H A D | ptrace-mips.c | 24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/toolbox/ |
H A D | ionice.c | 14 int pid; local 17 fprintf(stderr, "usage: ionice <pid> [none|rt|be|idle] [prio]\n"); 21 if (!(pid = atoi(argv[1]))) { 22 fprintf(stderr, "Invalid pid specified\n"); 27 if (android_get_ioprio(pid, &clazz, &ioprio)) { 31 fprintf(stdout, "Pid %d, class %s (%d), prio %d\n", pid, classes[clazz], clazz, ioprio); 50 printf("Setting pid %d i/o class to %d, prio %d\n", pid, clazz, ioprio); 51 if (android_set_ioprio(pid, clazz, ioprio)) {
|
H A D | renice.c | 42 fprintf(stderr, "USAGE: %s [[-r] priority pids ...] [-g pid]\n", s); 46 void print_prio(pid_t pid) argument 51 printf("pid %d's priority: %d\n", pid, getpriority(PRIO_PROCESS, pid)); 54 sched = sched_getscheduler(pid); 72 sched_getparam(pid, &sp); 115 pid_t pid; local 117 pid = atoi(argv[0]); 125 ret = sched_setscheduler(pid, SCHED_R [all...] |
H A D | kill.c | 136 int pid = atoi(argv[0]); local 137 int err = kill(pid, sig); 140 fprintf(stderr, "could not kill pid %d: %s\n", pid, strerror(errno));
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_executable_destructor.c | 61 pid_t pid; local 80 pid = fork(); 81 if (pid < 0) { 86 if (pid == 0) {
|
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);
|
/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/core/libcutils/ |
H A D | iosched_policy.c | 41 int android_set_ioprio(int pid, IoSchedClass clazz, int ioprio) { argument 43 if (ioprio_set(WHO_PROCESS, pid, ioprio | (clazz << CLASS_SHIFT))) { 50 int android_get_ioprio(int pid, IoSchedClass *clazz, int *ioprio) { argument 54 if ((rc = ioprio_get(WHO_PROCESS, pid)) < 0) {
|
H A D | ashmem-host.c | 41 pid_t pid = getpid(); local 44 srand(time(NULL) + pid); 49 pid,
|
H A D | zygote.c | 52 uint32_t pid; 137 // Read the pid, as a 4-byte network-order integer 139 ivs[0].iov_base = &pid; 140 ivs[0].iov_len = sizeof(pid); 156 pid = ntohl(pid); 158 return pid; 165 int pid; local 181 pid = send_request(fd, 1, argc + 1, newargv); 183 if (pid > 222 int pid; local [all...] |
/system/extras/ext4_utils/ |
H A D | setup_fs.c | 17 pid_t pid; local 56 while ((pid=waitpid(-1, &status, 0)) != child) { 57 if (pid == -1) {
|
/system/core/init/ |
H A D | signal_handler.c | 46 pid_t pid; local 54 while ( (pid = waitpid(-1, &status, block ? 0 : WNOHANG)) == -1 && errno == EINTR ); 55 if (pid <= 0) return -1; 56 INFO("waitpid returned pid %d, status = %08x\n", pid, status); 58 svc = service_find_by_pid(pid); 60 ERROR("untracked pid %d exited\n", pid); 64 NOTICE("process '%s', pid %d exited\n", svc->name, pid); [all...] |
/system/core/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 29 static void load_exidx_header(pid_t pid, map_info_t* mi, argument 34 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 35 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_ehsize), 37 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 44 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_type), &elf_phdr_type)) { 50 if (!try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_offset), 52 || !try_get_word_ptrace(pid, elf_phdr + offsetof(Elf32_Phdr, p_filesz), 68 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 69 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size);
|
/system/netd/ |
H A D | main.cpp | 145 pid_t pid = wait(NULL); local 146 ALOGD("Child process %d exited", pid);
|
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;
|
/system/core/adb/ |
H A D | backup_service.c | 26 pid_t pid; member in struct:__anon272 44 waitpid(params->pid, &status, 0); 52 pid_t pid; local 80 pid = fork(); 81 if (pid < 0) { 91 if (pid == 0) { 138 D("fork() returned pid %d\n", pid); 143 params->pid = pid; [all...] |
H A D | transport_usb.c | 132 int is_adb_interface(int vid, int pid, int usb_class, int usb_subclass, int usb_protocol) argument
|
/system/core/include/cutils/ |
H A D | logger.h | 23 int32_t pid; /* generating process's pid */ member in struct:logger_entry 38 int32_t pid; /* generating process's pid */ member in struct:logger_entry_v2
|
H A D | logprint.h | 47 int32_t pid; member in struct:AndroidLogEntry_t
|
/system/core/libcorkscrew/ |
H A D | ptrace.c | 83 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 86 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 94 load_ptrace_map_info_data_arch(pid, mi, data); 101 ptrace_context_t* load_ptrace_context(pid_t pid) { argument 105 context->map_info_list = load_map_info_list(pid); 107 load_ptrace_map_info_data(pid, mi);
|
/system/core/logwrapper/ |
H A D | logwrapper.c | 126 pid_t pid; local 158 pid = fork(); 159 if (pid < 0) { 161 } else if (pid == 0) {
|
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 65 pid_t pid, *pids, *new_pids; local 81 if (sscanf(dir->d_name, "%d", &pid) < 1) 96 pids[pids_count] = pid;
|
/system/vold/ |
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...] |