Add SOL_TLS definition from Linux 4.13

Message ID alpine.DEB.2.20.1709061448550.2445@digraph.polyomino.org.uk
State New
Headers show
Series
  • Add SOL_TLS definition from Linux 4.13
Related show

Commit Message

Joseph Myers Sept. 6, 2017, 2:50 p.m.
This patch adds the new SOL_TLS constant from Linux 4.13 to the Linux
bits/socket.h.

Tested for x86_64.

2017-09-06  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New.

Comments

Dmitry V. Levin Sept. 7, 2017, 9:38 a.m. | #1
On Wed, Sep 06, 2017 at 02:50:00PM +0000, Joseph Myers wrote:
> This patch adds the new SOL_TLS constant from Linux 4.13 to the Linux
> bits/socket.h.
> 
> Tested for x86_64.
> 
> 2017-09-06  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New.

New macro?

> diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
> index ec2bf85..a9d16e2 100644
> --- a/sysdeps/unix/sysv/linux/bits/socket.h
> +++ b/sysdeps/unix/sysv/linux/bits/socket.h
> @@ -163,6 +163,7 @@ typedef __socklen_t socklen_t;
>  #define SOL_ALG		279
>  #define SOL_NFC		280
>  #define SOL_KCM		281
> +#define SOL_TLS		282
>  
>  /* Maximum queue length specifiable by listen.  */
>  #define SOMAXCONN	128

OK assuming that the typo in the changelog entry is corrected.

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index ec2bf85..a9d16e2 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -163,6 +163,7 @@  typedef __socklen_t socklen_t;
 #define SOL_ALG		279
 #define SOL_NFC		280
 #define SOL_KCM		281
+#define SOL_TLS		282
 
 /* Maximum queue length specifiable by listen.  */
 #define SOMAXCONN	128