Lines Matching defs:cpi
1407 struct elfcore_procinfo cpi;
1419 elfround(sizeof(cpi));
1421 memset(&cpi, 0, sizeof(cpi));
1423 cpi.cpi_version = ELFCORE_PROCINFO_VERSION;
1424 cpi.cpi_cpisize = sizeof(cpi);
1425 cpi.cpi_signo = p->p_sisig;
1426 cpi.cpi_sigcode = p->p_sicode;
1428 cpi.cpi_sigpend = p->p_siglist | pr->ps_siglist;
1429 cpi.cpi_sigmask = p->p_sigmask;
1430 cpi.cpi_sigignore = pr->ps_sigacts->ps_sigignore;
1431 cpi.cpi_sigcatch = pr->ps_sigacts->ps_sigcatch;
1433 cpi.cpi_pid = pr->ps_pid;
1434 cpi.cpi_ppid = pr->ps_ppid;
1435 cpi.cpi_pgrp = pr->ps_pgid;
1437 cpi.cpi_sid = pr->ps_session->s_leader->ps_pid;
1439 cpi.cpi_sid = 0;
1441 cpi.cpi_ruid = p->p_ucred->cr_ruid;
1442 cpi.cpi_euid = p->p_ucred->cr_uid;
1443 cpi.cpi_svuid = p->p_ucred->cr_svuid;
1445 cpi.cpi_rgid = p->p_ucred->cr_rgid;
1446 cpi.cpi_egid = p->p_ucred->cr_gid;
1447 cpi.cpi_svgid = p->p_ucred->cr_svgid;
1449 (void)strlcpy(cpi.cpi_name, pr->ps_comm, sizeof(cpi.cpi_name));
1452 nhdr.descsz = sizeof(cpi);
1456 "OpenBSD", &cpi);