Lines Matching refs:ev
93 register SM_EVENT *ev;
120 (ev = *evp) != NULL;
121 evp = &ev->ev_link)
124 if (timercmp(&(ev->ev_time), &nowi, >=))
126 if (ev->ev_time >= nowi)
149 ev = SmFreeEventList;
150 SmFreeEventList = ev->ev_link;
155 ev->ev_time = nowi;
156 ev->ev_func = func;
157 ev->ev_arg = arg;
158 ev->ev_pid = getpid();
160 ev->ev_link = *evp;
161 *evp = ev;
180 return ev;
186 ** ev -- pointer to event to remove.
192 ** arranges for event ev to not happen.
196 sm_clrevent(ev)
197 register SM_EVENT *ev;
205 if (ev == NULL)
214 if (*evp == ev)
222 *evp = ev->ev_link;
223 ev->ev_link = SmFreeEventList;
224 SmFreeEventList = ev;
260 register SM_EVENT *ev;
283 for (ev = SmEventQueue; ev->ev_link != NULL; ev = ev->ev_link)
287 ev->ev_link = SmFreeEventList;
322 register SM_EVENT *ev;
388 while ((ev = SmEventQueue) != NULL &&
389 (ev->ev_pid != mypid ||
391 timercmp(&ev->ev_time, &now, <=)
393 ev->ev_time <= now
402 ev = SmEventQueue;
406 f = ev->ev_func;
407 arg = ev->ev_arg;
408 pid = ev->ev_pid;
410 ev->ev_link = SmFreeEventList;
411 SmFreeEventList = ev;
523 SM_EVENT *ev;
565 ev = sm_setevent((time_t) intvl, sm_endsleep, 0);
566 if (ev == NULL)
619 sm_clrevent(ev);