elf: Make glibc.rtld.enable_secure ignore alias environment variables
[glibc.git] / elf / dl-diagnostics.h
blob1049a41118343e9839445fa35fa9f207572ce385
1 /* Interfaces for printing diagnostics in ld.so.
2 Copyright (C) 2021-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
19 #ifndef _DL_DIAGNOSTICS_H
20 #define _DL_DIAGNOSTICS_H
22 #include <stdint.h>
24 /* Write the null-terminated string to standard output, surrounded in
25 quotation marks. */
26 void _dl_diagnostics_print_string (const char *s) attribute_hidden;
28 /* Like _dl_diagnostics_print_string, but add a LABEL= prefix, and a
29 newline character as a suffix. */
30 void _dl_diagnostics_print_labeled_string (const char *label, const char *s)
31 attribute_hidden;
33 /* Print LABEL=VALUE to standard output, followed by a newline
34 character. */
35 void _dl_diagnostics_print_labeled_value (const char *label, uint64_t value)
36 attribute_hidden;
38 /* Print diagnostics data for the kernel. Called from
39 _dl_print_diagnostics. */
40 void _dl_diagnostics_kernel (void) attribute_hidden;
42 /* Print diagnostics data for the CPU(s). Called from
43 _dl_print_diagnostics. */
44 void _dl_diagnostics_cpu (void) attribute_hidden;
46 #endif /* _DL_DIAGNOSTICS_H */