Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd991a2

Browse files
arndbKAGA-KOKO
authored andcommitted
y2038: Provide aliases for compat helpers
As part of the system call rework for 64-bit time_t, we are restructuringthe way that compat syscalls deal with 32-bit time_t, reusing theimplementation for 32-bit architectures. Christoph Hellwig suggested arename of the associated types and interfaces to avoid the confusing usageof the 'compat' prefix for 32-bit architectures.To prepare for doing that in linux-4.20, add a set of macros that allows toconvert subsystems separately to the new names and avoids some of thenastier merge conflicts.Signed-off-by: Arnd Bergmann <arnd@arndb.de>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: Christoph Hellwig <hch@lst.de>Cc: y2038@lists.linaro.orgCc: John Stultz <john.stultz@linaro.org>Cc: Deepa Dinamani <deepa.kernel@gmail.com>Link:https://lkml.kernel.org/r/20180821203329.2089473-1-arnd@arndb.de
1 parentf19f5c4 commitfd991a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎include/linux/time32.h‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,19 @@ static inline s64 timeval_to_ns(const struct timeval *tv)
207207
externstructtimevalns_to_timeval(consts64nsec);
208208
externstruct__kernel_old_timevalns_to_kernel_old_timeval(s64nsec);
209209

210+
/*
211+
* New aliases for compat time functions. These will be used to replace
212+
* the compat code so it can be shared between 32-bit and 64-bit builds
213+
* both of which provide compatibility with old 32-bit tasks.
214+
*/
215+
#defineold_time32_tcompat_time_t
216+
#defineold_timeval32compat_timeval
217+
#defineold_timespec32compat_timespec
218+
#defineold_itimerspec32compat_itimerspec
219+
#definens_to_old_timeval32ns_to_compat_timeval
220+
#defineget_old_itimerspec32get_compat_itimerspec64
221+
#defineput_old_itimerspec32put_compat_itimerspec64
222+
#defineget_old_timespec32compat_get_timespec64
223+
#defineput_old_timespec32compat_put_timespec64
224+
210225
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp