Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/imgact_elf.c
Show First 20 Lines • Show All 2,501 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
note_procstat_umask(void *arg, struct sbuf *sb, size_t *sizep) | note_procstat_umask(void *arg, struct sbuf *sb, size_t *sizep) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
size_t size; | size_t size; | ||||
int structsize; | int structsize; | ||||
p = (struct proc *)arg; | p = (struct proc *)arg; | ||||
size = sizeof(structsize) + sizeof(p->p_fd->fd_cmask); | size = sizeof(structsize) + sizeof(p->p_pd->pd_cmask); | ||||
if (sb != NULL) { | if (sb != NULL) { | ||||
KASSERT(*sizep == size, ("invalid size")); | KASSERT(*sizep == size, ("invalid size")); | ||||
structsize = sizeof(p->p_fd->fd_cmask); | structsize = sizeof(p->p_pd->pd_cmask); | ||||
sbuf_bcat(sb, &structsize, sizeof(structsize)); | sbuf_bcat(sb, &structsize, sizeof(structsize)); | ||||
sbuf_bcat(sb, &p->p_fd->fd_cmask, sizeof(p->p_fd->fd_cmask)); | sbuf_bcat(sb, &p->p_pd->pd_cmask, sizeof(p->p_pd->pd_cmask)); | ||||
} | } | ||||
*sizep = size; | *sizep = size; | ||||
} | } | ||||
static void | static void | ||||
note_procstat_rlimit(void *arg, struct sbuf *sb, size_t *sizep) | note_procstat_rlimit(void *arg, struct sbuf *sb, size_t *sizep) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |