[前][次][番号順一覧][スレッド一覧]

ruby-changes:68399

From: Kazuhiro <ko1@a...>
Date: Tue, 12 Oct 2021 16:46:06 +0900 (JST)
Subject: [ruby-changes:68399] 8dd6d58543 (master): Add more socket constants

https://git.ruby-lang.org/ruby.git/commit/?id=8dd6d58543

From 8dd6d58543cc9ebab7569a0b48ed96469d9de2f7 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Tue, 12 Oct 2021 15:24:37 +0900
Subject: Add more socket constants

from http://manpages.ubuntu.com/manpages/focal/en/man2/socket.2.html
---
 ext/socket/mkconstants.rb | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 620a5f60ff..577958a358 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -358,6 +358,8 @@ SOCK_RAW	nil	A raw socket provides low-level access for direct access or impleme https://github.com/ruby/ruby/blob/trunk/ext/socket/mkconstants.rb#L358
 SOCK_RDM	nil	A reliable datagram socket provides reliable delivery of messages
 SOCK_SEQPACKET	nil	A sequential packet socket provides sequenced, reliable two-way connection for datagrams
 SOCK_PACKET	nil	Device-level packet access
+SOCK_NONBLOCK	nil	Set the O_NONBLOCK file status flag on the open file description (see open(2)) referred to by the new file descriptor.
+SOCK_CLOEXEC	nil	Set the close-on-exec (FD_CLOEXEC) flag on the new file  descriptor.
 
 AF_UNSPEC	nil	Unspecified protocol, any supported address family
 PF_UNSPEC	nil	Unspecified protocol, any supported address family
@@ -397,6 +399,8 @@ AF_SNA	nil	IBM SNA protocol https://github.com/ruby/ruby/blob/trunk/ext/socket/mkconstants.rb#L399
 PF_SNA	nil	IBM SNA protocol
 AF_DEC	nil	DECnet protocol
 PF_DEC	nil	DECnet protocol
+AF_DECnet	nil	DECnet protocol
+PF_DECnet	nil	DECnet protocol
 AF_DLI	nil	DEC Direct Data Link Interface protocol
 PF_DLI	nil	DEC Direct Data Link Interface protocol
 AF_LAT	nil	Local Area Transport protocol
@@ -438,7 +442,34 @@ AF_E164	nil	CCITT (ITU-T) E.164 recommendation https://github.com/ruby/ruby/blob/trunk/ext/socket/mkconstants.rb#L442
 PF_XTP	nil	eXpress Transfer Protocol
 PF_RTIP
 PF_PIP
-PF_KEY
+AF_KEY	nil	Key management protocol, originally developed for usage with IPsec
+PF_KEY	nil	Key management protocol, originally developed for usage with IPsec
+AF_NETLINK	nil	Kernel user interface device
+PF_NETLINK	nil	Kernel user interface device
+AF_RDS	nil	Reliable Datagram Sockets (RDS) protocol
+PF_RDS	nil	Reliable Datagram Sockets (RDS) protocol
+AF_PPPOX	nil	Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
+PF_PPPOX	nil	Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
+AF_LLC	nil	Logical  link control (IEEE 802.2 LLC) protocol
+PF_LLC	nil	Logical  link control (IEEE 802.2 LLC) protocol
+AF_IB	nil	InfiniBand native addressing
+PF_IB	nil	InfiniBand native addressing
+AF_MPLS	nil	Multiprotocol Label Switching
+PF_MPLS	nil	Multiprotocol Label Switching
+AF_CAN	nil	Controller Area Network automotive bus protocol
+PF_CAN	nil	Controller Area Network automotive bus protocol
+AF_TIPC	nil	TIPC, "cluster domain sockets" protocol
+PF_TIPC	nil	TIPC, "cluster domain sockets" protocol
+AF_BLUETOOTH	nil	Bluetooth low-level socket protocol
+PF_BLUETOOTH	nil	Bluetooth low-level socket protocol
+AF_ALG	nil	Interface to kernel crypto API
+PF_ALG	nil	Interface to kernel crypto API
+AF_VSOCK	nil	VSOCK (originally "VMWare VSockets") protocol for hypervisor-guest communication
+PF_VSOCK	nil	VSOCK (originally "VMWare VSockets") protocol for hypervisor-guest communication
+AF_KCM	nil	KCM (kernel connection multiplexor) interface
+PF_KCM	nil	KCM (kernel connection multiplexor) interface
+AF_XDP	nil	XDP (express data path) interface
+PF_XDP	nil	XDP (express data path) interface
 
 MSG_OOB	nil	Process out-of-band data
 MSG_PEEK	nil	Peek at incoming message
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]