Lines Matching refs:ev

148 	cloudabi_event_t ev;  in cloudabi32_kevent_copyout()  local
155 memset(&ev, 0, sizeof(ev)); in cloudabi32_kevent_copyout()
156 ev.userdata = (uintptr_t)kevp->udata; in cloudabi32_kevent_copyout()
159 ev.type = CLOUDABI_EVENTTYPE_CLOCK; in cloudabi32_kevent_copyout()
162 ev.type = CLOUDABI_EVENTTYPE_FD_READ; in cloudabi32_kevent_copyout()
165 ev.type = CLOUDABI_EVENTTYPE_FD_WRITE; in cloudabi32_kevent_copyout()
168 ev.type = CLOUDABI_EVENTTYPE_PROC_TERMINATE; in cloudabi32_kevent_copyout()
177 ev.fd_readwrite.nbytes = kevp->data; in cloudabi32_kevent_copyout()
179 ev.fd_readwrite.flags |= in cloudabi32_kevent_copyout()
186 ev.proc_terminate.signal = in cloudabi32_kevent_copyout()
188 ev.proc_terminate.exitcode = 0; in cloudabi32_kevent_copyout()
191 ev.proc_terminate.signal = 0; in cloudabi32_kevent_copyout()
192 ev.proc_terminate.exitcode = in cloudabi32_kevent_copyout()
199 ev.error = cloudabi_convert_errno(kevp->data); in cloudabi32_kevent_copyout()
204 error = copyout(&ev, args->out++, sizeof(ev)); in cloudabi32_kevent_copyout()
230 cloudabi_event_t ev = {}; in cloudabi32_sys_poll() local
236 ev.userdata = sub.userdata; in cloudabi32_sys_poll()
237 ev.type = sub.type; in cloudabi32_sys_poll()
240 ev.error = cloudabi_convert_errno( in cloudabi32_sys_poll()
248 return (copyout(&ev, uap->out, sizeof(ev))); in cloudabi32_sys_poll()
251 ev.error = cloudabi_convert_errno( in cloudabi32_sys_poll()
257 return (copyout(&ev, uap->out, sizeof(ev))); in cloudabi32_sys_poll()
260 ev.error = cloudabi_convert_errno( in cloudabi32_sys_poll()
266 return (copyout(&ev, uap->out, sizeof(ev))); in cloudabi32_sys_poll()
270 cloudabi_event_t ev[2] = {}; in cloudabi32_sys_poll() local
276 ev[0].userdata = sub[0].userdata; in cloudabi32_sys_poll()
277 ev[0].type = sub[0].type; in cloudabi32_sys_poll()
278 ev[1].userdata = sub[1].userdata; in cloudabi32_sys_poll()
279 ev[1].type = sub[1].type; in cloudabi32_sys_poll()
293 return (copyout(&ev[1], uap->out, in cloudabi32_sys_poll()
294 sizeof(ev[1]))); in cloudabi32_sys_poll()
297 ev[0].error = cloudabi_convert_errno(error); in cloudabi32_sys_poll()
299 return (copyout(&ev[0], uap->out, sizeof(ev[0]))); in cloudabi32_sys_poll()
311 return (copyout(&ev[1], uap->out, in cloudabi32_sys_poll()
312 sizeof(ev[1]))); in cloudabi32_sys_poll()
315 ev[0].error = cloudabi_convert_errno(error); in cloudabi32_sys_poll()
317 return (copyout(&ev[0], uap->out, sizeof(ev[0]))); in cloudabi32_sys_poll()
329 return (copyout(&ev[1], uap->out, in cloudabi32_sys_poll()
330 sizeof(ev[1]))); in cloudabi32_sys_poll()
333 ev[0].error = cloudabi_convert_errno(error); in cloudabi32_sys_poll()
335 return (copyout(&ev[0], uap->out, sizeof(ev[0]))); in cloudabi32_sys_poll()