Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0000703 |
[1003.1(2013)/Issue7+TC1] System Interfaces |
Editorial |
Enhancement Request |
2013-05-27 03:37 |
2022-09-27 15:26 |
|
Reporter |
dalias |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Applied |
|
|
|
|
Name |
Rich Felker |
Organization |
musl libc |
User Reference |
|
Section |
clock |
Page Number |
670 |
Line Number |
22728 |
Interp Status |
--- |
Final Accepted Text |
|
|
Summary |
0000703: Add errno values for clock |
Description |
The clock() function has failure cases specified (unavailable or unrepresentable processor time usage) but does not have error codes defined. As the resolution of #686 imposes a common real-world failure case on implementations using 32-bit clock_t, it seems desirable to have the cause of failure reported in errno.
|
Desired Action |
In the ERRORS section for clock(), replace the text:
"No errors are defined."
with the CX-shaded text:
"The clock() function shall fail if:
[EOVERFLOW]
the processor time used cannot be represented in an object of type clock_t."
|
Tags |
tc3-2008 |
|
Attached Files |
|
|