1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* See the file NOTICE for conditions of use and distribution. */
8 /* Prototypes for os-specific functions. For utilities, we don't need the one
9 that uses a type that isn't defined for them. */
11 #ifndef COMPILE_UTILITY
12 extern ip_address_item *os_common_find_running_interfaces(void);
15 /* If these exist as a macro, then they're overridden away from us and we
16 rely upon the system headers to provide prototype declarations for us.
17 Notably, strsignal() is not in the Single Unix Specification (v3) and
18 predicting constness is awkward. */
21 extern int os_getloadavg(void);
23 #ifndef os_restarting_signal
24 extern void os_restarting_signal(int, void (*)(int));
26 #ifndef os_non_restarting_signal
27 extern void os_non_restarting_signal(int, void (*)(int));
30 extern const char *os_strexit(int); /* char to match os_strsignal */
33 extern const char *os_strsignal(int); /* char to match strsignal in some OS */
36 /* End of osfunctions.h */