void init_timer(timestamp_t *timer);
uns get_timer(timestamp_t *timer);
-uns switch_timer(timestamp_t *old, timestamp_t *new);
+uns switch_timer(timestamp_t *oldt, timestamp_t *newt);
/* random.c */
void handle_signal(int signum);
void unhandle_signal(int signum);
-ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t new);
+ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh);
/* bigalloc.c */
}
ucw_sighandler_t
-set_signal_handler(int signum, ucw_sighandler_t new)
+set_signal_handler(int signum, ucw_sighandler_t newh)
{
struct ucwlib_context *ctx = ucwlib_thread_context();
if (!ctx->signal_handlers)
ctx->signal_handlers = xmalloc_zero(NSIG * sizeof(ucw_sighandler_t));
ucw_sighandler_t old = ctx->signal_handlers[signum];
- ctx->signal_handlers[signum] = new;
+ ctx->signal_handlers[signum] = newh;
return old;
}
}
uns
-switch_timer(timestamp_t *old, timestamp_t *new)
+switch_timer(timestamp_t *oldt, timestamp_t *newt)
{
- *new = get_timestamp();
- return MIN(*new-*old, ~0U);
+ *newt = get_timestamp();
+ return MIN(*newt-*oldt, ~0U);
}