diff options
Diffstat (limited to 'meta-microblaze/recipes-core/glibc/files/select-use-newselect-syscall.patch')
-rw-r--r-- | meta-microblaze/recipes-core/glibc/files/select-use-newselect-syscall.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/meta-microblaze/recipes-core/glibc/files/select-use-newselect-syscall.patch b/meta-microblaze/recipes-core/glibc/files/select-use-newselect-syscall.patch deleted file mode 100644 index 04231f0a..00000000 --- a/meta-microblaze/recipes-core/glibc/files/select-use-newselect-syscall.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | Restore newselect syscall override of select syscall | ||
2 | |||
3 | Commit 4c3df0eba5e8fe98f0de917ade9b2ebba6951c5f removed the check and override | ||
4 | of select syscall with newselect if newselect was defined. | ||
5 | |||
6 | This code path, using select instead of pselect is only executed when | ||
7 | ASSUME_PSELECT is not enabled. This happens on microblaze when the | ||
8 | kernel version is set below 3.15. | ||
9 | |||
10 | On Microblaze select is not implemented, only newselect is. So this automatic | ||
11 | conversion from select to newselect syscall is expected. The original | ||
12 | implementation of the select to newselect syscall was part of: | ||
13 | |||
14 | commit 26f28fd73d20df8847d93f88b6e2a7bd3bd9bf51 | ||
15 | Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> | ||
16 | Date: Fri Nov 18 14:27:03 2016 -0200 | ||
17 | |||
18 | Consolidate Linux select implementation | ||
19 | |||
20 | This patch consolidates the select Linux syscall implementation on | ||
21 | sysdeps/unix/sysv/linux/select.c. The changes are: | ||
22 | |||
23 | 1. Remove select from auto-generation syscalls.list on the architecture | ||
24 | that uses __NR_select. | ||
25 | 2. Remove generic implementation add a default one that handle all | ||
26 | current cases (with the expection of alpha) | ||
27 | The new default implementation will either use __NR_select if | ||
28 | available of fallback to __NR_pselect6 otherwise. | ||
29 | 3. Add a alpha outlier implementation which requires old compatibility | ||
30 | symbols. | ||
31 | |||
32 | Upstream-Status: Submitted [https://sourceware.org/bugzilla/show_bug.cgi?id=28883] | ||
33 | |||
34 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | ||
35 | |||
36 | diff --git a/sysdeps/unix/sysv/linux/select.c b/sysdeps/unix/sysv/linux/select.c | ||
37 | index da25b4b4cfe..0f4c67aa29e 100644 | ||
38 | --- a/sysdeps/unix/sysv/linux/select.c | ||
39 | +++ b/sysdeps/unix/sysv/linux/select.c | ||
40 | @@ -101,6 +116,10 @@ __select64 (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, | ||
41 | TIMESPEC_TO_TIMEVAL (timeout, pts32); | ||
42 | return r; | ||
43 | # else | ||
44 | +# ifdef __NR__newselect | ||
45 | +# undef __NR_select | ||
46 | +# define __NR_select __NR__newselect | ||
47 | +# endif | ||
48 | struct timeval tv32, *ptv32 = NULL; | ||
49 | if (pts64 != NULL) | ||
50 | { | ||