1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2016 */
6 /* Copyright (c) The Exim Maintainers 2020 */
7 /* See the file NOTICE for conditions of use and distribution. */
8 /* SPDX-License-Identifier: GPL-2.0-or-later */
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. */
13 #ifndef COMPILE_UTILITY
14 extern ip_address_item *os_common_find_running_interfaces(void);
17 /* If these exist as a macro, then they're overridden away from us and we
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. */
23 extern int os_getloadavg(void);
25 #ifndef os_restarting_signal
26 extern void os_restarting_signal(int, void (*)(int));
28 #ifndef os_non_restarting_signal
29 extern void os_non_restarting_signal(int, void (*)(int));
32 extern const char *os_strexit(int); /* char to match os_strsignal */
35 extern const char *os_strsignal(int); /* char to match strsignal in some OS */
38 extern int os_unsetenv(const uschar *);
41 extern uschar *os_getcwd(uschar *, size_t);
44 /* End of osfunctions.h */