Skip to content
  • Arnd Bergmann's avatar
    y2038: globally rename compat_time to old_time32 · 9afc5eee
    Arnd Bergmann authored
    Christoph Hellwig suggested a slightly different path for handling
    backwards compatibility with the 32-bit time_t based system calls:
    
    Rather than simply reusing the compat_sys_* entry points on 32-bit
    architectures unchanged, we get rid of those entry points and the
    compat_time types by renaming them to something that makes more sense
    on 32-bit architectures (which don't have a compat mode otherwise),
    and then share the entry points under the new name with the 64-bit
    architectures that use them for implementing the compatibility.
    
    The following types and interfaces are renamed here, and moved
    from linux/compat_time.h to linux/time32.h:
    
    old				new
    ---				---
    compat_time_t			old_time32_t
    struct compat_timeval		struct old_timeval32
    struct compat_timespec		struct old_timespec32
    struct compat_itimerspec	struct old_itimerspec32
    ns_to_compat_timeval()		ns_to_old_timeval32()
    get_compat_itimerspec64()	get_old_itimerspec32()
    put_compat_itimerspec64()	put_old_itimer...
    9afc5eee