libsir 2.2.6
Standard Incident Reporter
Loading...
Searching...
No Matches
tests_malloc_bsd.h
1/*
2 * tests_malloc_bsd.h
3 *
4 * Version: 2.2.6
5 *
6 * ----------------------------------------------------------------------------
7 *
8 * SPDX-License-Identifier: MIT
9 *
10 * Copyright (c) 2018-2024 Jeffrey H. Johnson <trnsz@pobox.com>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a copy of
13 * this software and associated documentation files (the "Software"), to deal in
14 * the Software without restriction, including without limitation the rights to
15 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16 * the Software, and to permit persons to whom the Software is furnished to do so,
17 * subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included in all
20 * copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 *
29 * -----------------------------------------------------------------------------
30 */
31
32#ifndef _SIR_TESTS_MALLOC_BSD_H_INCLUDED
33# define _SIR_TESTS_MALLOC_BSD_H_INCLUDED
34
35# if defined(__FreeBSD__) && defined(DEBUG)
36# if !(__FreeBSD_version < 1000011)
37const char *malloc_conf = "abort:true,confirm_conf:true,junk:true";
38# else
39const char *malloc_conf = "JR";
40# endif
41# endif
42
43# if defined(__NetBSD__) && defined(DEBUG)
44const char *malloc_conf = "abort:true,junk:true";
45# endif
46
47# if defined(__OpenBSD__)
48# if defined(DEBUG)
49char *malloc_options = "CFGJRU";
50# else
51char *malloc_options = "j";
52# endif
53# endif
54
55#endif /* !_SIR_TESTS_MALLOC_BSD_H_INCLUDED */