// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-FileCopyrightText: 2020-2021 Alyssa Ross #include enum verbosity { nothing, errors, all, }; extern enum verbosity verbosity; // Functions with an `e' suffix additionally print strerrno(errno). // If opt is a character that matches a standard UCSPI command line // verbosity option, sets the verbosity appropriately and returns // true. Otherwise, returns false. _Bool set_verbosity(int opt); // Log an error message then exit with status eval. _Noreturn void die(int eval, const char *fmt, ...); _Noreturn void diee(int eval, const char *fmt, ...); // Log an error message. void elog(const char *fmt, ...); void velog(const char *fmt, va_list args); void veloge(const char *fmt, va_list args); // Log an informative message. void ilog(const char *fmt, ...); void vilog(const char *fmt, va_list args);