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.
Showing the changes to scripts (1 of 36 files). Show all
Unified · Split
| @@ -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 | #endif | 41 | #endif |
| 40 | 42 | ||
| 41 | /* Missing flags argument */ | 43 | /* Missing flags argument */ |
| @@ -133,11 +135,18 @@ cat << EOF · 91 unmodified lines | |||
| 133 | #define __IGNORE_io_pgetevents | 135 | #define __IGNORE_io_pgetevents |
| 134 | #define __IGNORE_recvmmsg | 136 | #define __IGNORE_recvmmsg |
| 135 | #define __IGNORE_mq_timedsend | 137 | #define __IGNORE_mq_timedsend |
| 136 | #define __IGNORE_mq_timedreceiv | 138 | #define __IGNORE_mq_timedreceive |
| 137 | #define __IGNORE_semtimedop | 139 | #define __IGNORE_semtimedop |
| 138 | #define __IGNORE_rt_sigtimedwait | 140 | #define __IGNORE_rt_sigtimedwait |
| 139 | #define __IGNORE_futex | 141 | #define __IGNORE_futex |
| 140 | #define __IGNORE_sched_rr_get_interval | 142 | #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 | #endif | 150 | #endif |
| 142 | 151 | ||
| 143 | /* i386-specific or historical system calls */ | 152 | /* i386-specific or historical system calls */ |