Home | History | Annotate | Line # | Download | only in internal
      1  1.1  christos #ifndef JEMALLOC_INTERNAL_CONF_H
      2  1.1  christos #define JEMALLOC_INTERNAL_CONF_H
      3  1.1  christos 
      4  1.1  christos #include "jemalloc/internal/sc.h"
      5  1.1  christos 
      6  1.1  christos void malloc_conf_init(sc_data_t *sc_data, unsigned bin_shard_sizes[SC_NBINS],
      7  1.1  christos     char readlink_buf[PATH_MAX + 1]);
      8  1.1  christos void malloc_abort_invalid_conf(void);
      9  1.1  christos 
     10  1.1  christos #ifdef JEMALLOC_JET
     11  1.1  christos extern bool had_conf_error;
     12  1.1  christos 
     13  1.1  christos bool conf_next(char const **opts_p, char const **k_p, size_t *klen_p,
     14  1.1  christos     char const **v_p, size_t *vlen_p);
     15  1.1  christos void conf_error(
     16  1.1  christos     const char *msg, const char *k, size_t klen, const char *v, size_t vlen);
     17  1.1  christos bool conf_handle_bool(const char *v, size_t vlen, bool *result);
     18  1.1  christos bool conf_handle_signed(const char *v, size_t vlen, intmax_t min, intmax_t max,
     19  1.1  christos     bool check_min, bool check_max, bool clip, intmax_t *result);
     20  1.1  christos bool conf_handle_char_p(const char *v, size_t vlen, char *dest, size_t dest_sz);
     21  1.1  christos #endif
     22  1.1  christos 
     23  1.1  christos #endif /* JEMALLOC_INTERNAL_CONF_H */
     24