From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BA031385842D; Wed, 16 Feb 2022 14:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA031385842D From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/28883] sysdeps/unix/sysv/linux/select.c: __select64 !__ASSUME_TIME64_SYSCALLS && !__ASSUME_PSELECT fails on Microblaze Date: Wed, 16 Feb 2022 14:07:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.3.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2022 14:07:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28883 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at lina= ro dot o | |rg --- Comment #1 from Adhemerval Zanella --- It would be good if Linux UAPI could clean this up and advertise the real supported syscall, so consumers would not require to add such hacks. I will push a slight different patch (below), it documents microblaze difference a= nd gives glibc a consistent view of the supported syscalls. PS: next time please send the patch to libc-alpha maillist, we don't apply patch that were only attached in the bugzilla. --- diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index 6e10c3661d..06c0575325 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -313,7 +313,7 @@ #define __NR_sched_setscheduler 156 #define __NR_sched_yield 158 #define __NR_seccomp 384 -#define __NR_select 82 +#define __NR_select 142 #define __NR_semctl 328 #define __NR_semget 329 #define __NR_semop 330 diff --git a/sysdeps/unix/sysv/linux/microblaze/fixup-asm-unistd.h b/sysdeps/unix/sysv/linux/microblaze/fixup-asm-unistd.h new file mode 100644 index 0000000000..6103a5c13e --- /dev/null +++ b/sysdeps/unix/sysv/linux/microblaze/fixup-asm-unistd.h @@ -0,0 +1,23 @@ +/* Regularize definitions. Microblaze version. + Copyright (C) 2022 Free Software Foundation, Inc. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Microblaze does not implement __NR_select, besides kernel advertise + it. */ +#ifdef __NR_select +# undef __NR_select +# define __NR_select __NR__newselect +#endif --=20 You are receiving this mail because: You are on the CC list for the bug.=