1234567891011121314151617181920212223242526272829303132 |
- /*
- * Header file for error.c
- *
- * Copyright 2022 and 2023 Odin Kroeger.
- *
- * This file is part of suCGI.
- *
- * suCGI is free software: you can redistribute it and/or modify it
- * under the terms of the GNU Affero General Public License as published
- * by the Free Software Foundation, either version 3 of the License,
- * or (at your option) any later version.
- *
- * suCGI is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
- * Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public
- * License along with suCGI. If not, see <https://www.gnu.org/licenses/>.
- */
- #if !defined(ERROR_H)
- #define ERROR_H
- #include "attr.h"
- /* Log the given message as an error and exit with status EXIT_FAILURE */
- _read_only(1) _nonnull(1) _noreturn
- void error(const char *message, ...);
- #endif /* !defined(ERROR_H) */
|