diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-02-04 13:45:45 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-02-06 10:38:44 -0500 |
commit | f8aca1c316b116c2de11d42010fdda0ddb418750 (patch) | |
tree | c75e31e1f895c92721fa31be2c559335b21de714 /build/has/dprintf.c | |
parent | 532dec0849dcdc3e15e530ac40a8168f146a41cd (diff) | |
download | bfs-f8aca1c316b116c2de11d42010fdda0ddb418750.tar.xz |
diag: Try to make diagnostics signal-safer
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=16060
Diffstat (limited to 'build/has/dprintf.c')
-rw-r--r-- | build/has/dprintf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/has/dprintf.c b/build/has/dprintf.c new file mode 100644 index 0000000..c206fa3 --- /dev/null +++ b/build/has/dprintf.c @@ -0,0 +1,8 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +#include <stdio.h> + +int main(void) { + return dprintf(1, "%s\n", "Hello world!"); +} |