This is the mail archive of the cygwin-developers@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mktime() seting errno ??


On Sat, Feb 17, 2001 at 10:24:00AM -0500, Norman Vine wrote:
>Christopher Faylor writes:
>>
>>On Fri, Feb 16, 2001 at 09:55:07PM -0500, Norman Vine wrote:
>>>The attached test program demonstrates this.  
>>>I have looked at the mktime source in newlib 
>>>and can not see why this should be happening ?
>>
>>Have you debugged the problem in gdb?  It should be fairly easy
>>to figure out what is going on.  
>
>Yes I have stepped thru this in gdb
>And it wasn't 'obvious' to me how to find out 
>how errno was even being touched.

Do a "display impure_ptr->_errno" (or whatever errno translates to) and
step into mktime.  You should be able to see which instruction changes errno.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]