summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/quick_exit.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* C++17 requires quick_exit(3) to be async-signal safe.Konstantin Belousov2017-11-041-1/+6
| | | | | | | | | | Make it safe, and update man page with the useful information. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=325389
* Small style(9) improvements.David Chisnall2011-12-151-2/+4
| | | | | | | Approved by: dim (mentor) Notes: svn path=/head/; revision=228528
* style(9) cleanups.David Chisnall2011-12-071-10/+7
| | | | | | | Approved by: brooks (mentor) Notes: svn path=/head/; revision=228323
* Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add aDavid Chisnall2011-12-071-0/+81
__noreturn macro and modify the other exiting functions to use it. The __noreturn macro, unlike __dead2, must be used BEFORE the function. This is in line with the C and C++ specifications that place _Noreturn (c1x) and [[noreturn]] (C++11) in front of the functions. As with __dead2, this macro falls back to using the GCC attribute. Unfortunately, clang currently sets the same value for the C version macro in C99 and C1x modes, so these functions are hidden by default. At some point before 10.0, I need to go through the headers and clean up the C1x / C++11 visibility. Reviewed by: brooks (mentor) Notes: svn path=/head/; revision=228322