/external/chromium/base/ |
process_util_posix.cc | 187 bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) { 190 *handle = pid; 194 bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle) { 197 return OpenProcessHandle(pid, handle); 200 bool OpenProcessHandleWithAccess(ProcessId pid, 205 return OpenProcessHandle(pid, handle); 234 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); local 235 if (pid == process_id) { 239 if (pid == -1) { 242 // the same pid, causing the process state to get cleaned up 505 pid_t pid; local 859 pid_t pid; local [all...] |
process.h | 30 // On POSIX, our ProcessHandle will just be the PID. 70 // Get the PID for this process. 71 ProcessId pid() const;
|
/external/dnsmasq/contrib/Suse/ |
rc.dnsmasq-suse | 15 NAMED_PID=/var/run/dnsmasq.pid
|
/external/oprofile/opcontrol/ |
opcontrol.cpp | 527 printf("oprofiled pid: %d\n", num); 631 int pid = read_num(OP_DATA_DIR"/lock"); local 633 if (pid >= 0) { 635 kill(pid, SIGHUP); 641 int pid = read_num(OP_DATA_DIR"/lock"); local 642 if (pid >= 0) { 643 kill(pid, SIGHUP); /* Politely ask the daemon to close files */ 645 kill(pid, SIGTERM);/* Politely ask the daemon to die */ 647 kill(pid, SIGKILL);
|
/external/ppp/pppd/ |
utils.c | 922 notice("Device %s is locked by pid %d", dev, result); 930 int fd, pid, n; 982 n = read(fd, &pid, sizeof(pid)); 987 error("Can't read pid from lock file %s", lock_file); 994 pid = atoi(lock_buffer); 996 if (pid == getpid()) 998 if (pid == 0 999 || (kill(pid, 0) == -1 && errno == ESRCH)) { 1001 notice("Removed stale lock on %s (pid %d)", dev, pid) [all...] |
/external/qemu/memcheck/ |
memcheck_proc_management.h | 52 uint32_t pid; member in struct:ProcDesc 114 /* Checks if process has been forked, rather than created from a "fresh" PID. 119 * created from a "fresh" PID. 198 * pid - Process ID to look up process descriptor for. 200 * Process descriptor for the PID, or NULL, if process descriptor 203 ProcDesc* get_process_from_pid(uint32_t pid);
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
http_lock_unittest.py | 58 pid = os.getpid() 62 self.assertEqual(pid, int(lock_file_pid))
|
/frameworks/base/core/java/android/content/ |
ContentProvider.java | 260 final int pid = Binder.getCallingPid(); local 262 || context.checkPermission(rperm, pid, uid) 276 if (context.checkPermission(pprperm, pid, uid) 284 if (context.checkUriPermission(uri, pid, uid, 292 + " uri " + uri + " from pid=" + Binder.getCallingPid() 306 final int pid = Binder.getCallingPid(); local 308 || context.checkPermission(wperm, pid, uid) 322 if (context.checkPermission(ppwperm, pid, uid) 330 if (context.checkUriPermission(uri, pid, uid, 346 + " uri " + uri + " from pid=" + Binder.getCallingPid( [all...] |
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 59 // get the info in /proc/[pid]/map 63 pid_t pid = getpid(); local 66 sprintf(path, "/proc/%d/maps", pid);
|
/frameworks/base/services/java/com/android/server/am/ |
BatteryStatsService.java | 105 public void noteStartWakelock(int uid, int pid, String name, int type) { 108 mStats.noteStartWakeLocked(uid, pid, name, type); 112 public void noteStopWakelock(int uid, int pid, String name, int type) { 115 mStats.noteStopWakeLocked(uid, pid, name, type); 119 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, int type) { 122 mStats.noteStartWakeFromSourceLocked(ws, pid, name, type); 126 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, int type) { 129 mStats.noteStopWakeFromSourceLocked(ws, pid, name, type); 470 pw.println("Permission Denial: can't dump BatteryStats from from pid="
|
/hardware/libhardware/modules/gralloc/ |
mapper.cpp | 98 if (hnd->pid != getpid()) { 113 if (hnd->pid != getpid()) {
|
/hardware/msm7k/libgralloc-qsd8k/ |
gralloc_priv.h | 121 int pid; member in struct:private_handle_t 130 base(0), lockState(0), writeOwner(0), gpuaddr(0), pid(getpid())
|
/hardware/ti/omap4xxx/test/CameraHal/ |
camera_test.h | 96 int start_logging(char *config, int &pid); 97 int stop_logging(int &pid);
|
/ndk/sources/android/libthread_db/gdb-7.1.x/ |
thread_db.h | 74 pid_t pid; member in struct:__anon16679 80 pid_t pid; member in struct:__anon16680
|
/packages/experimental/procstatlog/ |
procstatlog.c | 235 int pid = atoi(proc_entry->d_name); local 236 if (pid <= 0) continue; 239 while (bad_pos < bad_count && bad[bad_pos] < pid) ++bad_pos; 240 if (bad_pos < bad_count && bad[bad_pos] == pid) continue; 243 sprintf(filename, "/proc/%d/cmdline", pid); 266 while (pos > 0 && bad[pos - 1] > pid) { 270 bad[pos] = pid; 279 pids[pid_count++] = pid;
|
/prebuilt/ndk/android-ndk-r5/platforms/android-9/arch-arm/usr/include/ |
thread_db.h | 71 pid_t pid; member in struct:__anon24052 77 pid_t pid; member in struct:__anon24053
|
/prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-arm/usr/include/ |
thread_db.h | 71 pid_t pid; member in struct:__anon25027 77 pid_t pid; member in struct:__anon25028
|
/prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-x86/usr/include/ |
thread_db.h | 71 pid_t pid; member in struct:__anon25150 77 pid_t pid; member in struct:__anon25151
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/log/ |
LogReceiver.java | 40 /** pid of the process that generated this {@link LogEntry} */ 41 public int pid; field in class:LogReceiver.LogEntry 232 entry.pid = ArrayHelper.swap32bitFromArray(data, offset);
|
/external/strace/ |
process.c | 638 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_EAX * 4), new) < 0) 643 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_RAX * 8), new) < 0) 647 if (ptrace(PTRACE_POKEUSER, tcp->pid, 653 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR2), new)<0) 657 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*PT_ORIG_D0), new)<0) 662 if (ptrace(PTRACE_GETREGS, tcp->pid, (char*)®s, 0)<0) 665 if (ptrace(PTRACE_SETREGS, tcp->pid, (char*)®s, 0)<0) 669 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_V0), new)<0) 673 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_A3), new)<0) 686 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R1), new)<0 809 int pid; local [all...] |
/external/v8/src/ |
d8-posix.cc | 165 explicit ZombieProtector(int pid): pid_(pid) { } 385 static bool WaitForChild(int pid, 397 waitid(P_PID, pid, &child_info, WEXITED | WNOHANG | WNOWAIT); 403 kill(pid, SIGINT); 429 waitpid(pid, &child_status, 0); // We hang here if the child doesn't exit. 496 pid_t pid = fork(); local 497 if (pid == 0) { // Child process. 503 ZombieProtector child_waiter(pid); 516 kill(pid, SIGINT); // On timeout, kill the subprocess [all...] |
/external/bluetooth/glib/glib/ |
gmain.h | 40 typedef void (*GChildWatchFunc) (GPid pid, 223 GSource *g_child_watch_source_new (GPid pid); 277 GPid pid, 281 guint g_child_watch_add (GPid pid,
|
/external/chromium/chrome/browser/chromeos/cros/ |
login_library.h | 107 virtual bool RestartJob(int pid, const std::string& command_line) = 0;
|
/external/dnsmasq/contrib/dynamic-dnsmasq/ |
dynamic-dnsmasq.pl | 44 my $dnsmasqpidfile = "/var/run/dnsmasq.pid"; # if this doesn't exist, will look for process in /proc 224 open(PID,"<$dnsmasqpidfile") || die "Could not open PID file \"$dnsmasqpidfile\": $!\n"; 225 my $pid = <PID>; 226 close(PID); 227 chomp $pid; 228 if ( kill(0, $pid) ) { 229 kill(1, $pid);
|
/external/kernel-headers/original/linux/ |
proc_fs.h | 124 * of the /proc/<pid> subdirectories. 249 struct pid *pid; member in struct:proc_inode 270 struct pid *pid; member in struct:proc_maps_private
|