diff mbox series

Add SOL_VSOCK from Linux 6.7 to bits/socket.h

Message ID 15f9d396-9737-d091-c541-e355d631aa73@redhat.com
State New
Headers show
Series Add SOL_VSOCK from Linux 6.7 to bits/socket.h | expand

Commit Message

Joseph Myers Feb. 7, 2024, 9:35 p.m. UTC
Linux 6.7 adds a constant SOL_VSOCK (recall that various constants in
include/linux/socket.h are in fact part of the kernel-userspace API
despite that not being a uapi header).  Add it to glibc's
bits/socket.h.

Tested for x86_64.

Comments

Andreas Schwab Feb. 8, 2024, 9:11 a.m. UTC | #1
On Feb 07 2024, Joseph Myers wrote:

> Linux 6.7 adds a constant SOL_VSOCK (recall that various constants in
> include/linux/socket.h are in fact part of the kernel-userspace API
> despite that not being a uapi header).  Add it to glibc's
> bits/socket.h.

Ok.
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index 0d86feb4ca..86444f0018 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -172,6 +172,7 @@  typedef __socklen_t socklen_t;
 #define SOL_MPTCP	284
 #define SOL_MCTP	285
 #define SOL_SMC		286
+#define SOL_VSOCK	287
 
 /* Maximum queue length specifiable by listen.  */
 #define SOMAXCONN	4096