Lines Matching defs:pid

1015 get_struct(pid_t pid, void *offset, void *buf, int len)
1023 if (ptrace(PT_IO, pid, (caddr_t)&iorequest, 0) < 0)
1036 get_string(pid_t pid, void *addr, int max)
1060 if (ptrace(PT_IO, pid, (caddr_t)&iorequest, 0) < 0) {
1154 pid_t pid = trussinfo->curthread->proc->pid;
1167 if (get_struct(pid, arg, sa, len) == -1) {
1221 pid_t pid = trussinfo->curthread->proc->pid;
1235 if (get_struct(pid, arg, &iov, iovcnt * sizeof(struct iovec)) == -1) {
1250 if (len && get_struct(pid, iov[i].iov_base, &tmp2, len) != -1) {
1469 print_cmsgs(FILE *fp, pid_t pid, bool receive, struct msghdr *msghdr)
1484 if (get_struct(pid, msghdr->msg_control, cmsgbuf, len) == -1) {
1536 pid_t pid;
1539 pid = trussinfo->curthread->proc->pid;
1556 if (get_struct(pid, (void *)args[sc->offset], &val,
1576 tmp2 = get_string(pid, (void*)args[sc->offset], 0);
1606 if (len && get_struct(pid, (void*)args[sc->offset], &tmp2, len)
1660 if (get_struct(pid, (void *)addr, u.buf, len) == -1) {
1669 string = get_string(pid, u.strarray[i], 0);
1678 if (get_struct(pid, (void *)addr, u.buf, len) ==
1718 if (get_struct(pid, (void *)args[sc->offset], &val,
1733 tmp2 = get_string(pid, (void*)args[sc->offset], retval[0]);
1758 if (get_struct(pid, (void *)args[sc->offset], &ts,
1771 if (get_struct(pid, (void *)args[sc->offset], &ts, sizeof(ts))
1800 if (get_struct(pid, (void *)args[sc->offset], &tv, sizeof(tv))
1811 if (get_struct(pid, (void *)args[sc->offset], &tv, sizeof(tv))
1823 if (get_struct(pid, (void *)args[sc->offset], &itv,
1838 if (get_struct(pid, (void *)args[sc->offset], (void *)&largs,
1861 if (get_struct(pid, (void *)args[sc->offset], pfd, bytes)
1889 if (get_struct(pid, (void *)args[sc->offset], fds, bytes)
1911 if (get_struct(pid, (void *)args[sc->offset], (void *)&ss,
1991 if (get_struct(pid, (void *)args[sc->offset + 1],
2005 if (get_struct(pid, (void *)args[sc->offset], &sa, sizeof(sa))
2046 if (numevents >= 0 && get_struct(pid, (void *)args[sc->offset],
2063 if (get_struct(pid, (void *)args[sc->offset], &st, sizeof(st))
2081 if (get_struct(pid, (void *)args[sc->offset], &buf,
2104 if (get_struct(pid, (void *)args[sc->offset], &ru, sizeof(ru))
2118 if (get_struct(pid, (void *)args[sc->offset], &rl, sizeof(rl))
2129 if (get_struct(pid, (void *)args[sc->offset], &status,
2195 if (get_struct(pid, (void *)args[sc->offset],
2214 if (get_struct(pid, (void *)args[sc->offset],
2232 if (get_struct(pid, (void *)args[sc->offset], &rights,
2316 if (get_struct(pid, (void *)args[sc->offset], &rights,
2370 if (get_struct(pid, (void *)args[sc->offset], &sp,
2380 if (get_struct(pid, (void *)args[sc->offset], &sig,
2390 if (get_struct(pid, (void *)args[sc->offset], &si,
2411 if (get_struct(pid, (void *)args[sc->offset],
2422 if (get_struct(pid, (void *)args[sc->offset],
2432 print_cmsgs(fp, pid, sc->type & OUT, &msghdr);
2450 if (get_struct(pid, (void *)args[sc->offset], &fds, sizeof(fds))
2462 if (get_struct(pid, (void *)args[sc->offset], &fsb, sizeof(fsb))