This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mktime()


Good day,
  Running some tests and found an omission?
In the mktime.c file, the function "validate_structure", it appears (to me) that the month test
might be incomplete?
 "if (tim_p->tm_mon > 11)"
should it possibly be:
"if (tim_p->tm_mon > 11 || tim_p->tm_mon < 0)"

And this probably should be second thread?? but I tried using the environment variable
"TZ=GMT0" and I get tm_isdst = -1 when passing -1 in. Not sure, in this case, if user
should be setting to 0?.  It could also be that I screwed up on porting newlib code for testing
purposes?

Cheers
Steve


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