Lines Matching defs:pid
281 Int VG_(waitpid)(Int pid, Int *status, Int options)
285 pid, (UWord)status, options, 0);
289 pid, (UWord)status, options, 0);
344 Int pid;
347 pid = VG_(fork)();
348 if (pid < 0)
350 if (pid == 0) {
381 zzz = VG_(waitpid)(pid, NULL, 0);
454 HChar pid[16];
472 (UWord)pid, sizeof(pid));
475 (UWord)pid, sizeof(pid));
479 pid[sr_Res(res)] = '\0';
480 res = VG_(mk_SysRes_Success)( VG_(strtoll10)(pid, &s) );
484 pid);
501 /* You'd be amazed how many places need to know the current pid. */
587 Int VG_(ptrace) ( Int request, Int pid, void *addr, void *data )
590 res = VG_(do_syscall4)(__NR_ptrace, request, pid, (UWord)addr, (UWord)data);
622 /* on success: wLO = child pid; wHI = 1 for child, 0 for parent */
624 return 0; /* this is child: return 0 instead of child pid */