X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=libmainloop%2Fsignal.h;h=bd93fb2aeea8c96bb2eb2949cd86209c793339c3;hb=3102bb90c325d9b29ac304d8f3ea0a17df564fc8;hp=7867c18b11964117f3a6410d9c966364a9457fe0;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/libmainloop/signal.h b/libmainloop/signal.h index 7867c18..bd93fb2 100644 --- a/libmainloop/signal.h +++ b/libmainloop/signal.h @@ -1,12 +1,9 @@ /* * ion/mainloop/signal.h * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2008. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #ifndef ION_LIBMAINLOOP_SIGNAL_H @@ -53,8 +50,14 @@ extern bool timer_is_set(WTimer *timer); extern bool mainloop_check_signals(); extern void mainloop_trap_signals(const sigset_t *set); +extern void mainloop_block_signals(sigset_t *oldmask); +extern bool mainloop_unhandled_signals(); +extern bool libmainloop_get_timeout(struct timeval *tv); extern WHook *mainloop_sigchld_hook; extern WHook *mainloop_sigusr2_hook; +/* Returns monotonic time if possible */ +extern int mainloop_gettime(struct timeval *val); + #endif /* ION_LIBMAINLOOP_SIGNAL_H */