* [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
@ 2016-11-07 7:43 Andreas Larsson
2016-11-07 15:48 ` Joseph Myers
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Larsson @ 2016-11-07 7:43 UTC (permalink / raw)
To: GNU C Library; +Cc: David Miller, Adhemerval Zanella, software
The sendmsg and recvmsg systems calls were not available for 32-bit
sparc Linux kernels before Linux kernel version 4.4.
* sysdeps/unix/sysv/linux/sparc/kernel-features.h: Undefine
__ASSUME_SENDMSG_SYSCALL and __ASSUME_RECVMSG_SYSCALL for 32-bit
sparc for older Linux kernels than 4.4.
---
sysdeps/unix/sysv/linux/sparc/kernel-features.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h
index 69c9c7c..b7a79a7 100644
--- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h
@@ -36,4 +36,9 @@
#if !defined __arch64__ && !defined __sparc_v9__
# undef __ASSUME_REQUEUE_PI
# undef __ASSUME_SET_ROBUST_LIST
+/* All direct socketcalls are available only with kernel 4.4. */
+# if __LINUX_KERNEL_VERSION < 0x040400
+# undef __ASSUME_SENDMSG_SYSCALL
+# undef __ASSUME_RECVMSG_SYSCALL
+# endif
#endif
--
2.8.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
2016-11-07 7:43 [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4 Andreas Larsson
@ 2016-11-07 15:48 ` Joseph Myers
2016-11-08 14:20 ` Andreas Larsson
0 siblings, 1 reply; 4+ messages in thread
From: Joseph Myers @ 2016-11-07 15:48 UTC (permalink / raw)
To: Andreas Larsson; +Cc: GNU C Library, David Miller, Adhemerval Zanella, software
On Mon, 7 Nov 2016, Andreas Larsson wrote:
> The sendmsg and recvmsg systems calls were not available for 32-bit
> sparc Linux kernels before Linux kernel version 4.4.
Given the conditional you are putting this under: should I take it it is
specifically for 32-bit kernels and the system calls *are* available for
32-bit binaries executed under 64-bit kernels?
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
2016-11-07 15:48 ` Joseph Myers
@ 2016-11-08 14:20 ` Andreas Larsson
2016-11-08 16:32 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Larsson @ 2016-11-08 14:20 UTC (permalink / raw)
To: Joseph Myers; +Cc: GNU C Library, David Miller, Adhemerval Zanella, software
On 2016-11-07 16:48, Joseph Myers wrote:
> On Mon, 7 Nov 2016, Andreas Larsson wrote:
>
>> The sendmsg and recvmsg systems calls were not available for 32-bit
>> sparc Linux kernels before Linux kernel version 4.4.
>
> Given the conditional you are putting this under: should I take it it is
> specifically for 32-bit kernels and the system calls *are* available for
> 32-bit binaries executed under 64-bit kernels?
Yes, the intention is specifically for 32-bit kernels. This patch makes
interfacing older 32-bit kernels work.
The system calls are available in 64-bit kernels since before Linux 3.2.
I don't have the possibility to test the case with 32-bit binaries under
a 64-bit kernel, so I don't want to touch the behavior for that case.
Best regards,
Andreas Larsson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4
2016-11-08 14:20 ` Andreas Larsson
@ 2016-11-08 16:32 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2016-11-08 16:32 UTC (permalink / raw)
To: andreas; +Cc: joseph, libc-alpha, adhemerval.zanella, software
From: Andreas Larsson <andreas@gaisler.com>
Date: Tue, 08 Nov 2016 15:20:30 +0100
> On 2016-11-07 16:48, Joseph Myers wrote:
>> On Mon, 7 Nov 2016, Andreas Larsson wrote:
>>
>>> The sendmsg and recvmsg systems calls were not available for 32-bit
>>> sparc Linux kernels before Linux kernel version 4.4.
>>
>> Given the conditional you are putting this under: should I take it it
>> is
>> specifically for 32-bit kernels and the system calls *are* available
>> for
>> 32-bit binaries executed under 64-bit kernels?
>
> Yes, the intention is specifically for 32-bit kernels. This patch
> makes interfacing older 32-bit kernels work.
>
> The system calls are available in 64-bit kernels since before Linux
> 3.2. I don't have the possibility to test the case with 32-bit
> binaries under a 64-bit kernel, so I don't want to touch the behavior
> for that case.
The same commit in the kernel added them to all of the 32-bit cases
(native and running under 64-bit kernel) so you can safely assume
they exist universally starting with 4.4
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-08 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-07 7:43 [PATCH] sparc32: Make no sendmsg/recvmsg syscalls for older Linux kernels than 4.4 Andreas Larsson
2016-11-07 15:48 ` Joseph Myers
2016-11-08 14:20 ` Andreas Larsson
2016-11-08 16:32 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).