error.h 999 B

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