1 #ifndef JEMALLOC_INTERNAL_UTIL_EXTERNS_H
2 #define JEMALLOC_INTERNAL_UTIL_EXTERNS_H
3 
4 #pragma GCC visibility push(hidden)
5 
6 int	buferror(int err, char *buf, size_t buflen);
7 uintmax_t	malloc_strtoumax(const char *restrict nptr,
8     char **restrict endptr, int base);
9 void	malloc_write(const char *s);
10 
11 /*
12  * malloc_vsnprintf() supports a subset of snprintf(3) that avoids floating
13  * point math.
14  */
15 size_t	malloc_vsnprintf(char *str, size_t size, const char *format,
16     va_list ap);
17 size_t	malloc_snprintf(char *str, size_t size, const char *format, ...)
18     JEMALLOC_FORMAT_PRINTF(3, 4);
19 void	malloc_vcprintf(void (*write_cb)(void *, const char *), void *cbopaque,
20     const char *format, va_list ap);
21 void malloc_cprintf(void (*write)(void *, const char *), void *cbopaque,
22     const char *format, ...) JEMALLOC_FORMAT_PRINTF(3, 4);
23 void	malloc_printf(const char *format, ...) JEMALLOC_FORMAT_PRINTF(1, 2);
24 
25 #pragma GCC visibility pop
26 
27 #endif /* JEMALLOC_INTERNAL_UTIL_EXTERNS_H */
28