Events: Fix msg:defer event for the hosts_max_try_hardlimit case. Bug 2554
[exim.git] / src / src / osfunctions.h
CommitLineData
059ec3d9
PH
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
4
80fea873 5/* Copyright (c) University of Cambridge 1995 - 2016 */
059ec3d9
PH
6/* See the file NOTICE for conditions of use and distribution. */
7
8/* Prototypes for os-specific functions. For utilities, we don't need the one
9that uses a type that isn't defined for them. */
10
11#ifndef COMPILE_UTILITY
12extern ip_address_item *os_common_find_running_interfaces(void);
13#endif
14
43236f35 15/* If these exist as a macro, then they're overridden away from us and we
b52ce060
PP
16rely upon the system headers to provide prototype declarations for us.
17Notably, strsignal() is not in the Single Unix Specification (v3) and
18predicting constness is awkward. */
19
20#ifndef os_getloadavg
847a015a 21extern int os_getloadavg(void);
b52ce060
PP
22#endif
23#ifndef os_restarting_signal
847a015a 24extern void os_restarting_signal(int, void (*)(int));
b52ce060
PP
25#endif
26#ifndef os_non_restarting_signal
847a015a 27extern void os_non_restarting_signal(int, void (*)(int));
b52ce060
PP
28#endif
29#ifndef os_strexit
847a015a 30extern const char *os_strexit(int); /* char to match os_strsignal */
b52ce060
PP
31#endif
32#ifndef os_strsignal
847a015a 33extern const char *os_strsignal(int); /* char to match strsignal in some OS */
b52ce060 34#endif
271019bd 35#ifndef os_unsetenv
847a015a 36extern int os_unsetenv(const uschar *);
271019bd 37#endif
3ae121c9 38#ifndef os_getcwd
847a015a 39extern uschar *os_getcwd(uschar *, size_t);
3ae121c9 40#endif
059ec3d9
PH
41
42/* End of osfunctions.h */