64-bit time_t and __WORDSIZE_TIME64_COMPAT32

Thorsten Kukuk kukuk@suse.com
Wed Feb 8 10:11:25 GMT 2023


On Wed, Feb 08, Andreas Schwab wrote:

> On Feb 08 2023, Thorsten Kukuk via Libc-alpha wrote:
> 
> > I think the only solution would be additional functions like for other
> > 32bit time_t functions and use symbol versioning for it?
> 
> That won't work as is because struct lastlog and struct utmp describe
> the layout of the lastlog and utmp/wtmp files.  That's the whole reason
> for the existence of the __WORDSIZE_TIME64_COMPAT32 knob.

That's solveable with e.g. creating a new name for them (.e.g
/run/utmp64 instead of /run/utmp)

  Thorsten

-- 
Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies
SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany
Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman
(HRB 36809, AG Nürnberg)


More information about the Libc-alpha mailing list