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