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
30#define __IGNORE_readlink /* readlinkat */30#define __IGNORE_readlink /* readlinkat */
31#define __IGNORE_symlink /* symlinkat */31#define __IGNORE_symlink /* symlinkat */
32#define __IGNORE_utimes /* futimesat */32#define __IGNORE_utimes /* futimesat */
33#if BITS_PER_LONG == 64
34#define __IGNORE_stat /* fstatat */33#define __IGNORE_stat /* fstatat */
35#define __IGNORE_lstat /* fstatat */34#define __IGNORE_lstat /* fstatat */
36#else
37#define __IGNORE_stat64 /* fstatat64 */35#define __IGNORE_stat64 /* fstatat64 */
38#define __IGNORE_lstat64 /* fstatat64 */36#define __IGNORE_lstat64 /* fstatat64 */
37
38#ifndef __ARCH_WANT_SET_GET_RLIMIT
39#define __IGNORE_getrlimit /* getrlimit */
40#define __IGNORE_setrlimit /* setrlimit */
39#endif41#endif
40 42
41/* Missing flags argument */43/* Missing flags argument */
@@ -133,11 +135,18 @@ cat << EOF · 91 unmodified lines
133#define __IGNORE_io_pgetevents135#define __IGNORE_io_pgetevents
134#define __IGNORE_recvmmsg136#define __IGNORE_recvmmsg
135#define __IGNORE_mq_timedsend137#define __IGNORE_mq_timedsend
136#define __IGNORE_mq_timedreceiv138#define __IGNORE_mq_timedreceive
137#define __IGNORE_semtimedop139#define __IGNORE_semtimedop
138#define __IGNORE_rt_sigtimedwait140#define __IGNORE_rt_sigtimedwait
139#define __IGNORE_futex141#define __IGNORE_futex
140#define __IGNORE_sched_rr_get_interval142#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
141#endif150#endif
142 151
143/* i386-specific or historical system calls */152/* i386-specific or historical system calls */