Email List: Xaustin-review-lX
[All Lists]

Defect in XSH mktime()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH mktime()
From: yyyyyyy@xxxxxxx
Date: Tue, 28 Jan 2003 12:57:10 GMT
        Defect report from : Joanna Farley , Sun Microsystems

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 765 line 24996-25001  section mktime() objection {sunw-jf03-rk-3}

Problem:

Defect code :  2. Omission

mktime()can now produce an error with a 64-bit time_t and a 32-bit 
tm_year for the same reasons gmtime() and localtime() can.

Reference: 
  TC Change Number: XSH/TC1/D6/27 [XSH ERN 27,28] 
  TC Change Number: XSH/TC1/D6/32 [XSH ERN 35] 

Action:


 Change XSH text at lines 24996-25001 from: 
   
         "The mktime() function shall return the specified time since the 
         Epoch encoded as a value of type time_t. If the time since the 
         Epoch cannot be represented, the function shall return the value 
         (time_t)-1." 
   
  to: 
         "The mktime() function shall return the specified time since the 
         Epoch encoded as a value of type time_t. If the time since the 
         Epoch cannot be represented, the function shall return the value 
         (time_t)-1 [CX] and set errno to indicate the error.[/CX]." 
   
  Add to the ERRORS section(Shaded and marked with the CX margin code): 
   
          "The mktime() function shall fail if: 
          [EOVERFLOW]  The result cannot be represented." 

<Prev in Thread] Current Thread [Next in Thread>