Commit | Line | Data |
---|---|---|
0a49a7a4 | 1 | /* $Cambridge: exim/src/src/osfunctions.h,v 1.5 2009/11/16 19:50:37 nm4 Exp $ */ |
059ec3d9 PH |
2 | |
3 | /************************************************* | |
4 | * Exim - an Internet mail transport agent * | |
5 | *************************************************/ | |
6 | ||
0a49a7a4 | 7 | /* Copyright (c) University of Cambridge 1995 - 2009 */ |
059ec3d9 PH |
8 | /* See the file NOTICE for conditions of use and distribution. */ |
9 | ||
10 | /* Prototypes for os-specific functions. For utilities, we don't need the one | |
11 | that uses a type that isn't defined for them. */ | |
12 | ||
13 | #ifndef COMPILE_UTILITY | |
14 | extern ip_address_item *os_common_find_running_interfaces(void); | |
15 | #endif | |
16 | ||
43236f35 | 17 | /* If these exist as a macro, then they're overridden away from us and we |
b52ce060 PP |
18 | rely upon the system headers to provide prototype declarations for us. |
19 | Notably, strsignal() is not in the Single Unix Specification (v3) and | |
20 | predicting constness is awkward. */ | |
21 | ||
22 | #ifndef os_getloadavg | |
1ba28e2b | 23 | extern int os_getloadavg(void); |
b52ce060 PP |
24 | #endif |
25 | #ifndef os_restarting_signal | |
1ba28e2b | 26 | extern void os_restarting_signal(int, void (*)(int)); |
b52ce060 PP |
27 | #endif |
28 | #ifndef os_non_restarting_signal | |
1ba28e2b | 29 | extern void os_non_restarting_signal(int, void (*)(int)); |
b52ce060 PP |
30 | #endif |
31 | #ifndef os_strexit | |
1ba28e2b | 32 | extern const char *os_strexit(int); /* char to match os_strsignal */ |
b52ce060 PP |
33 | #endif |
34 | #ifndef os_strsignal | |
1ba28e2b | 35 | extern const char *os_strsignal(int); /* char to match strsignal in some OS */ |
b52ce060 | 36 | #endif |
059ec3d9 PH |
37 | |
38 | /* End of osfunctions.h */ |