Repository navigation
make 64-bit time_t back to unsigned - #11466
Conversation
it has been changed by apache#10303 without any explicit mentions. i suppose it was a mistake. see apache#8201 and referenced PRs for previous discussions.
|
@yamt probably a mistake because for 32-bit he used uint32_t! |
|
@yamt #10303 is needed to pass LTP test case. From https://en.wikipedia.org/wiki/Unix_time, most POSIX OS(except 32bit QNX) define time_t to signed integer, so it's better to follow others choice to improve the compatibility with other POSIX implementation at least for 64bit time_t. |
xiaoxiang781216
left a comment
There was a problem hiding this comment.
#10303 is to pass LTP test
|
Is the LTP test a part of the CI run? |
|
I mean, does the LTP test fail with unsigned 64-bit |
pkarashchenko
left a comment
There was a problem hiding this comment.
LGTM! Let's merge the change if the LTP test pass
While I agree we can benefit from following the majority, IMO it's more important to be consistent within nuttx. Pros and cons have been discussed in the referenced PRs. It doesn't seem appropriate to revert it almost silently. |
If you prefer consistent, I suggest changing 32bit time_t to signed.
Compatibility is always top priority of NuttX design principle.
The reason already highlights in #10303. |
We run LTP internally, and plan to enable it on github In 24Q1.
No, LTP will break if we merging this patch. |
as you know, 32 bit time_t overlaps too soon.
in reality, i guess it depends on other factors as well.
"highlights"? it actually didn't even mention the change at all.
ok, there is no problem with changing your mind. what's wrong with disabling the "some LTP test case"? |
It's mistake. LTP case do not need change unsigned 64-bit |
|
@xiaoxiang781216 so which LTP test fails with this change? POSIX does not mandate |
Ok, it's a false report as @fxysunshine reply here: #11466 (comment). |
Summary
it has been changed by #10303 without any explicit mentions. i suppose it was a mistake.
see #8201 and referenced PRs for previous discussions.
Impact
Testing