Defect Report #214

Previous Defect Report < - > Next Defect Report

Submitter: Clive Feather (UK)
Submission Date: 2000-04-04
Reference Document: N/A
Version: 1.3
Date: 2001-09-18 15:46:36
Subject: atexit function registration

Summary reads:

[#3] The implementation shall support the registration of at least 32 functions.
This does not require registration of a valid function to succeed. The implementation could fail the first 420 times atexit() is called, and then succeed 32 times. It also does not require atexit() to accept any function of the correct type; theoretically an implementation could reject (say) a function in a different translation unit.

Suggested Technical Corrigendum
Change the cited wording to:

[#3] The implementation shall not reject the registration of a valid function if less than 32 functions are already registered (multiple registrations of the same function counting multiple times).
or add the following words:
If less than this number are already registered, a call with a valid argument shall succeed.

Committee Response
There are many conditions under which any library function or language feature may fail or behave in an undefined manner. Some examples:

As such, it is a quality of implementation issue under what conditions any library function, including atexit(), may fail.

There is no consensus to make the suggested change or any change along this line.

Previous Defect Report < - > Next Defect Report