History

Merge tag 'y2038-syscall-abi' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground into timers/2038

Pull additional syscall ABI cleanup for y2038 from Arnd Bergmann: This is a follow-up to the y2038 syscall patches already merged in the tip tree. As the final 32-bit RISC-V syscall ABI is still being decided on, this is the last chance to make a few corrections to leave out interfaces based on 32-bit time_t along with the old off_t and rlimit types. The series achieves this in a few steps: - A couple of bug fixes for minor regressions I introduced in the original series - A couple of older patches from Yury Norov that I had never merged in the past, these fix up the openat/open_by_handle_at and getrlimit/setrlimit syscalls to disallow the old versions of off_t and rlimit. - Hiding the deprecated system calls behind an #ifdef in include/uapi/asm-generic/unistd.h - Change arch/riscv to drop all these ABIs. Originally, the plan was to also leave these out on C-Sky, but that now has a glibc port that uses the older interfaces, so we need to leave them in place.

Thomas Gleixner committed 7 years ago

Commit cfbe2712 parents 41ea391 d4c08b936 files · +110 −8Browse files

Showing the changes to scripts (1 of 36 files). Show all

Unified · Split

scripts/checksyscalls.sh+12−3
@@ -30,12 +30,14 @@ cat << EOF · 29 unmodified lines
3030 #define __IGNORE_readlink /* readlinkat */
3131 #define __IGNORE_symlink /* symlinkat */
3232 #define __IGNORE_utimes /* futimesat */
33−#if BITS_PER_LONG == 64
3433 #define __IGNORE_stat /* fstatat */
3534 #define __IGNORE_lstat /* fstatat */
36−#else
3735 #define __IGNORE_stat64 /* fstatat64 */
3836 #define __IGNORE_lstat64 /* fstatat64 */
37+
38+#ifndef __ARCH_WANT_SET_GET_RLIMIT
39+#define __IGNORE_getrlimit /* getrlimit */
40+#define __IGNORE_setrlimit /* setrlimit */
3941 #endif
4042
4143 /* Missing flags argument */
@@ -133,11 +135,18 @@ cat << EOF · 91 unmodified lines
133135 #define __IGNORE_io_pgetevents
134136 #define __IGNORE_recvmmsg
135137 #define __IGNORE_mq_timedsend
136−#define __IGNORE_mq_timedreceiv
138+#define __IGNORE_mq_timedreceive
137139 #define __IGNORE_semtimedop
138140 #define __IGNORE_rt_sigtimedwait
139141 #define __IGNORE_futex
140142 #define __IGNORE_sched_rr_get_interval
143+#define __IGNORE_gettimeofday
144+#define __IGNORE_settimeofday
145+#define __IGNORE_wait4
146+#define __IGNORE_adjtimex
147+#define __IGNORE_nanosleep
148+#define __IGNORE_io_getevents
149+#define __IGNORE_recvmmsg
141150 #endif
142151
143152 /* i386-specific or historical system calls */