/external/lldb/tools/debugserver/source/ |
PseudoTerminal.cpp | 160 // In the parent process when a valid pid is returned, the master file 174 // in the parent process: the pid of the child, or -1 if fork fails 181 pid_t pid = invalid_pid; local 188 pid = ::fork (); 189 if (pid < 0) 194 else if (pid == 0) 223 // Do nothing and let the pid get returned! 226 return pid;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
BinderTest.java | 26 int pid = Binder.getCallingPid(); local 28 assertThat(pid, not(equalTo(0)));
|
ProcessTest.java | 17 int pid = android.os.Process.myPid(); local 19 assertThat(pid, not(equalTo(0)));
|
/external/strace/tests/ |
scm_rights.c | 28 pid_t pid = fork(); local 29 assert(pid >= 0); 31 if (pid) { 62 assert(waitpid(pid, &status, 0) == pid);
|
/external/strace/ |
wait.c | 103 * pid argument to int on 64bit arches, producing, 107 int pid = tcp->u_arg[0]; local 108 tprintf("%d, ", pid);
|
/external/toybox/toys/pending/ |
openvt.c | 79 pid_t pid; local 115 pid = xfork(); 116 if (!pid) { 123 while (-1 == waitpid(pid, NULL, 0) && errno == EINTR)
|
/external/toybox/toys/posix/ |
xargs.c | 169 pid_t pid=xfork(); local 170 if (!pid) { 175 waitpid(pid, &status, 0);
|
/external/valgrind/coregrind/ |
m_debugger.c | 49 static Int ptrace_setregs(Int pid, const VexGuestArchState* vex) 70 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); 108 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); 113 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0); 114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1); 115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2); 116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3); 117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4); 118 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5); 119 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R6 * 4), (void*)vex->guest_GPR6) 464 Int pid, rc; local [all...] |
/external/valgrind/memcheck/tests/linux/ |
getregset.c | 49 pid_t cpid, pid; local 58 pid = wait(&status); 59 if (pid == -1)
|
stack_switch.c | 37 pid_t pid; local 48 if ( ( pid = clone( thread_main, stack + STACK_SIZE, CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|SIGCHLD, NULL ) ) == -1 )
|
/external/valgrind/none/tests/ |
async-sigs.c | 28 static void do_kill(int pid, int sig) 45 sprintf(pidbuf, "%d", pid); 71 int pid; local 78 pid = fork(); 79 if (pid == -1) { 89 if (pid == 0) { 103 do_kill(pid, caughtsig); // Should be caught. 105 do_kill(pid, caughtsig); // Ditto. 106 do_kill(pid, caughtsig); // Ditto. 111 do_kill(pid, fatalsig); // Should kill it [all...] |
fdleak_ipv4.c | 74 int pid, status; local 78 if ((pid = fork()) == 0) {
|
pth_atfork1.c | 99 pid_t pid; local 101 pid = fork (); 102 if (pid == 0) 107 else if (pid == (pid_t) -1) 110 if (waitpid (pid, &status, 0) != pid)
|
/external/wpa_supplicant_8/src/utils/ |
browser-android.c | 70 pid_t pid; local 88 pid = fork(); 89 if (pid < 0) { 96 if (pid == 0) {
|
browser-system.c | 70 pid_t pid; local 88 pid = fork(); 89 if (pid < 0) { 96 if (pid == 0) {
|
browser-wpadebug.c | 71 pid_t pid; local 89 pid = fork(); 90 if (pid < 0) { 97 if (pid == 0) {
|
/frameworks/base/services/core/java/com/android/server/am/ |
ProcessMemInfo.java | 21 final int pid; field in class:ProcessMemInfo 32 pid = _pid;
|
/frameworks/native/libs/binder/ |
IPermissionController.cpp | 39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) 44 data.writeInt32(pid); 94 int32_t pid = data.readInt32(); local 96 bool res = checkPermission(permission, pid, uid);
|
PermissionCache.cpp | 62 // note, we don't need to store the pid, which is not actually used in 84 pid_t pid = ipcState->getCallingPid(); local 86 if (outPid) *outPid = pid; 88 return PermissionCache::checkPermission(permission, pid, uid); 92 const String16& permission, pid_t pid, uid_t uid) { 93 if ((uid == 0) || (pid == getpid())) { 102 granted = android::checkPermission(permission, pid, uid);
|
/frameworks/native/services/inputflinger/host/ |
InputFlinger.cpp | 53 const int pid = ipc->getCallingPid(); local 56 && !PermissionCache::checkPermission(sDumpPermission, pid, uid)) { 58 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
|
/hardware/intel/common/libva/va/drm/ |
va_drm_auth.c | 53 int i, auth, pid, uid; local 59 if (drmGetClient(fd, i, &auth, &pid, &uid, &magic, &iocs) != 0) 61 is_authenticated = auth && (pid == client_pid || is_local_tid(pid));
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/dvb/ |
net.h | 30 __u16 pid; member in struct:dvb_net_if 45 __u16 pid; member in struct:__dvb_net_if_old
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/dvb/ |
net.h | 30 __u16 pid; member in struct:dvb_net_if 45 __u16 pid; member in struct:__dvb_net_if_old
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/netfilter_ipv4/ |
ipt_owner.h | 24 pid_t pid; member in struct:ipt_owner_info
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/netfilter_ipv6/ |
ip6t_owner.h | 23 pid_t pid; member in struct:ip6t_owner_info
|