1 /* 2 * Defines for the env routines 3 * 4 * Copyright 2020 by Gray Watson 5 * 6 * This file is part of the dmalloc package. 7 * 8 * Permission to use, copy, modify, and distribute this software for 9 * any purpose and without fee is hereby granted, provided that the 10 * above copyright notice and this permission notice appear in all 11 * copies, and that the name of Gray Watson not be used in advertising 12 * or publicity pertaining to distribution of the document or software 13 * without specific, written prior permission. 14 * 15 * Gray Watson makes no representations about the suitability of the 16 * software described herein for any purpose. It is provided "as is" 17 * without express or implied warranty. 18 * 19 * The author may be contacted via http://dmalloc.com/ 20 */ 21 22 #ifndef __ENV_H__ 23 #define __ENV_H__ 24 25 /*<<<<<<<<<< The below prototypes are auto-generated by fillproto */ 26 27 /* 28 * Break up ADDR_ALL into ADDR_P and ADDR_COUNT_P 29 */ 30 extern 31 void _dmalloc_address_break(const char *addr_all, DMALLOC_PNT *addr_p, 32 unsigned long *addr_count_p); 33 34 /* 35 * Break up START_ALL into SFILE_P, SLINE_P, and SCOUNT_P 36 */ 37 extern 38 void _dmalloc_start_break(char *start_all, char **start_file_p, 39 int *start_line_p, unsigned long *start_iter_p, 40 unsigned long *start_size_p); 41 42 /* 43 * Process the values of dmalloc environ variable(s) from ENVIRON 44 * string. 45 */ 46 extern 47 void _dmalloc_environ_process(const char *env_str, DMALLOC_PNT *addr_p, 48 unsigned long *addr_count_p, 49 unsigned int *debug_p, 50 unsigned long *interval_p, int *lock_on_p, 51 char **logpath_p, char **start_file_p, 52 int *start_line_p, 53 unsigned long *start_iter_p, 54 unsigned long *start_size_p, 55 unsigned long *limit_p); 56 57 /* 58 * Set dmalloc environ variable(s) with the values (maybe SHORT debug 59 * info) into BUF. 60 */ 61 extern 62 void _dmalloc_environ_set(char *buf, const int buf_size, 63 const int long_tokens_b, 64 const DMALLOC_PNT address, 65 const unsigned long addr_count, 66 const unsigned int debug, 67 const unsigned long interval, const int lock_on, 68 const char *logpath, const char *start_file_p, 69 const int start_line, 70 const unsigned long start_iter, 71 const unsigned long start_size, 72 const unsigned long limit_val); 73 74 /*<<<<<<<<<< This is end of the auto-generated output from fillproto. */ 75 76 #endif /* ! __ENV_H__ */ 77