at_quick_exit(3)

at_quick_exit3

Registers a cleanup function to run on quick exit

Usage

#include <stdlib.h>

int

at_quick_exit(void (*func)(void));

Library

Standard C Library (libc, -lc)

Overview

The at_quick_exit() function registers a cleanup function to be called when the program exits as a result of calling quick_exit(3). The cleanup functions are called in the reverse order and will not be called if the program exits by calling exit(3), _Exit(3), or abort(3).

Return values

The at_quick_exit() function returns the value 0 if successful and a non-zero value on failure.

Releases

33 releases since FreeBSD 9.1-RELEASE; the text changed 19 times.

  1. 9.1
  2. 9.2
  3. 9.3
  4. 10.0
  5. 10.1
  6. 10.2
  7. 10.3
  8. 10.4
  9. 11.0
  10. 11.1
  11. 11.2
  12. 11.3
  13. 11.4
  14. 12.0
  15. 12.1
  16. 12.2
  17. 12.3
  18. 12.4
  19. 13.0–13.2
  20. 13.3–16.0

Standards

The at_quick_exit() function conforms to ISO/IEC 9899:2011 (“ISO C11”).

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.