On Thu, Nov 7, 2024 at 7:42 PM Gregory Nutt <spudan...@gmail.com> wrote:
> On 11/7/2024 12:34 PM, Tomek CEDRO wrote:
> > Still it will be possible to set _by_hand_ other values (i.e. int32_t
> > or uint32_t) via kconfig when necessary for older / smaller platforms.
>
> But not POSIX 2024 compliant.  We have forbid non-compliant options in
> the past.  The option would basic say "Select to make NuttX
> non-compliant with POSIX."  We don't usually allow that kind of option;
> many useful Kconfig options have been removed just that reason.  Since
> the size of time_t is 64-bits in all cases, I think we have to comply.

Ah, okay, POSIX.1-2024 / IEEE Std 1003.1-2024 / The Open Group
Standard Base Specifications, Issue 8 [1] says: "time_t shall be an
integer type with a width (see <stdint.h> ) of at least 64 bits" [2].

So in the end `int64_t time_t` only? :-)

[1] https://pubs.opengroup.org/onlinepubs/9799919799/
[2] https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_types.h.html

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to