Defect Report #214

Submitter: Clive Feather (UK)
Submission Date: 04-April-2000
Reference Document: NA
Version: 1.2
Date: 2000/04/18 03:06:36
Subject:atexit
Summary
7.20.4.2 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 Suggested 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 funcrtion, 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