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