return fd;
}
-void signal_event_handler(struct task *t)
+static void signal_event_handler(struct task *t)
{
struct signal_task *st = t->private_data;
handle_signal(st->signum);
}
-void signal_pre_select(struct sched *s, struct task *t)
+static void signal_pre_select(struct sched *s, struct task *t)
{
struct signal_task *st = t->private_data;
t->ret = 1;
para_fd_set(st->fd, &s->rfds, &s->max_fileno);
}
-void signal_post_select(struct sched *s, struct task *t)
+static void signal_post_select(struct sched *s, struct task *t)
{
struct signal_task *st = t->private_data;
t->ret = 1;
st->signum = para_next_signal();
}
-void signal_setup_default(struct signal_task *st)
+static void signal_setup_default(struct signal_task *st)
{
st->task.pre_select = signal_pre_select;
st->task.post_select = signal_post_select;