]> git.decadent.org.uk Git - ion3.git/blobdiff - libmainloop/signal.h
Imported Upstream version 20090110
[ion3.git] / libmainloop / signal.h
index 7e8682e33c7b2d455e9756c6102b3a37a19ac6de..d501f7158b39a36511cabd04435148077ff5c707 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/mainloop/signal.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * 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 */