| Anonymous | Login | Signup for a new account | 2010-02-09 16:23 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Type | Date Submitted | Last Update | |||||||
| 0000106 | [1003.1(2008)/Issue 7] System Interfaces | Objection | Omission | 2009-06-30 19:16 | 2009-10-12 05:55 | |||||||
| Reporter | Don Cragun | View Status | public | |||||||||
| Assigned To | ajosey | |||||||||||
| Priority | normal | Resolution | Accepted As Marked | |||||||||
| Status | Interpretation Required | |||||||||||
| Name | Don Cragun | |||||||||||
| Organization | Self | |||||||||||
| User Reference | ||||||||||||
| Section | time() | |||||||||||
| Page Number | 2107 | |||||||||||
| Line Number | 66673 | |||||||||||
| Interp Status | Approved | |||||||||||
| Final Accepted Text | Note: 0000197 | |||||||||||
| Summary | 0000106: time() missing error | |||||||||||
| Description |
_____________________________________________________________________________ OBJECTION Enhancement Request Number 35 dcragun:xxxxxxxxx Defect in XSH time() (rdvk# 3) {time() missing error} Sat, 25 Apr 2009 06:36:18 +0100 (BST) _____________________________________________________________________________ Many systems today have 32-bit time_t types. At some point in the future, these systems will be unable to represent seconds since the Epoch (the return value from time()) in an object of type time_t, but the ERRORS section says "No errors are defined." As with other interfaces where returned information might not fit into the space reserved for the return value, time() should specify that when this happens, (time_t)-1 will be returned and errno will be set to EOVERFLOW. |
|||||||||||
| Desired Action |
Send this issue down the interpretations track: the standard is silent on this issue; concerns have been forwarded to the sponsor. Change: "shall return the value of time." on P2107, L66670 in the RETURN VALUE section to: "shall return the value of time without changing the value of errno." Change: "No errors are defined." on P2107, L66673 in the ERRORS sections to: "The time() function shall fail if: [EOVERFLOW] The current value of time will not fit in an object of type time_t." Change: "None." on P2108, L66710 in the APPLICATION USAGE section to: "As (time_t)-1 is a permissible return value in a successful situation, an application wishing to check for error conditions should set errno to 0, then call time(), and, if it returns (time_t)-1, check to see if errno is non-zero." |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-06-30 19:16 | msbrown | New Issue | |
| 2009-06-30 19:16 | msbrown | Status | New => Under Review |
| 2009-06-30 19:16 | msbrown | Assigned To | => ajosey |
| 2009-06-30 19:16 | msbrown | Name | => Mark Brown |
| 2009-06-30 19:16 | msbrown | Organization | => IBM |
| 2009-06-30 19:16 | msbrown | Section | => time() |
| 2009-06-30 19:16 | msbrown | Page Number | => 2107 |
| 2009-06-30 19:16 | msbrown | Line Number | => 66673 |
| 2009-06-30 19:18 | msbrown | Note Added: 0000140 | |
| 2009-06-30 19:18 | msbrown | Status | Under Review => Interpretation Required |
| 2009-06-30 19:18 | msbrown | Resolution | Open => Accepted As Marked |
| 2009-06-30 19:18 | msbrown | Final Accepted Text | => Note: 0000140 |
| 2009-07-01 16:16 | Don Cragun | Name | Mark Brown => Don Cragun |
| 2009-07-01 16:16 | Don Cragun | Organization | IBM => Self |
| 2009-07-01 16:16 | Don Cragun | Reporter | msbrown => Don Cragun |
| 2009-07-10 11:30 | geoffclare | Note Added: 0000157 | |
| 2009-07-10 11:31 | geoffclare | Note Edited: 0000157 | |
| 2009-08-06 16:19 | ajosey | Note Added: 0000188 | |
| 2009-08-13 18:28 | Don Cragun | Interp Status | => --- |
| 2009-08-13 18:28 | Don Cragun | Note Added: 0000197 | |
| 2009-08-13 18:29 | Don Cragun | Final Accepted Text | Note: 0000140 => Note: 0000197 |
| 2009-08-13 18:31 | Don Cragun | Interp Status | --- => Pending |
| 2009-08-13 18:38 | Don Cragun | Note Edited: 0000197 | |
| 2009-09-17 15:41 | nick | Interp Status | Pending => Proposed |
| 2009-10-12 05:53 | ajosey | Note Deleted: 0000188 | |
| 2009-10-12 05:55 | ajosey | Note Edited: 0000197 | |
| 2009-10-12 05:55 | ajosey | Interp Status | Proposed => Approved |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |