Lines Matching refs:ws
119 struct writesegs_state ws; in ELFNAMEEND() local
225 ws.secoff = notestart + notesize; in ELFNAMEEND()
226 ws.psections = psections; in ELFNAMEEND()
227 ws.npsections = npsections - 1; in ELFNAMEEND()
228 ws.p = l->l_proc; in ELFNAMEEND()
230 (l->l_proc, ELFNAMEEND(coredump_getseghdrs), &ws), ENOSYS, error); in ELFNAMEEND()
233 if (ws.npsections != 0) { in ELFNAMEEND()
240 ws.psections->p_type = PT_NOTE; in ELFNAMEEND()
241 ws.psections->p_offset = notestart; in ELFNAMEEND()
242 ws.psections->p_vaddr = 0; in ELFNAMEEND()
243 ws.psections->p_paddr = 0; in ELFNAMEEND()
244 ws.psections->p_filesz = notesize; in ELFNAMEEND()
245 ws.psections->p_memsz = 0; in ELFNAMEEND()
246 ws.psections->p_flags = PF_R; in ELFNAMEEND()
247 ws.psections->p_align = ELFROUNDSIZE; in ELFNAMEEND()
306 struct writesegs_state *ws = us->cookie; in ELFNAMEEND() local
313 if (ws->npsections == 0) in ELFNAMEEND()
315 ws->npsections--; in ELFNAMEEND()
329 if ((error = copyin_proc(ws->p, (void *)end, buf, slen)) != 0) { in ELFNAMEEND()
354 phdr.p_offset = ws->secoff; in ELFNAMEEND()
368 ws->secoff += phdr.p_filesz; in ELFNAMEEND()
369 *ws->psections++ = phdr; in ELFNAMEEND()