Skip to content
Browse files

Add all Socket constants from ruby 1.8

  • Loading branch information...
1 parent 977bb7a commit 1e485bac4f62e95ce997a84de4c74c7e494c80b5 @drbrain drbrain committed Jan 14, 2008
Showing with 235 additions and 22 deletions.
  1. +235 −22 Rakefile
View
257 Rakefile
@@ -420,10 +420,10 @@ namespace :clean do
(Dir["lib/compiler/*.rbc"] + Dir["lib/compiler/**/*.rbc"]).each do |f|
rm_f f, :verbose => $verbose
end
-
+
rm_f "runtime/platform.conf"
end
-
+
desc "Cleans all compiled extension files (lib/ext)"
task :extensions do
Dir["lib/ext/**/*#{$dlext}"].each do |f|
@@ -545,7 +545,7 @@ RbConfig = Config
sh "cd shotgun/lib; make DEV=1"
end
end
-
+
task :platform => 'runtime/platform.conf'
end
@@ -593,7 +593,7 @@ file 'runtime/platform.conf' => 'Rakefile' do |t|
LOCK_UN
BINARY
}
-
+
file_constants = %w{
O_RDONLY
O_WRONLY
@@ -622,32 +622,245 @@ file 'runtime/platform.conf' => 'Rakefile' do |t|
SEEK_END
}
- socket_constants = %w{
- SOCK_STREAM
- SOCK_DGRAM
- SOCK_RAW
- SOCK_RDM
- SOCK_SEQPACKET
- SOCK_PACKET
+ socket_constants = %w[
+ AF_APPLETALK
+ AF_ATM
+ AF_AX25
+ AF_CCITT
+ AF_CHAOS
+ AF_CNT
+ AF_COIP
+ AF_DATAKIT
+ AF_DEC
+ AF_DLI
+ AF_E164
+ AF_ECMA
+ AF_HYLINK
+ AF_IMPLINK
AF_INET
- PF_INET
- AF_UNIX
- PF_UNIX
- AF_UNSPEC
- PF_UNSPEC
AF_INET6
- PF_INET6
+ AF_IPX
+ AF_ISDN
+ AF_ISO
+ AF_LAT
+ AF_LINK
AF_LOCAL
- PF_LOCAL
+ AF_MAX
+ AF_NATM
+ AF_NDRV
+ AF_NETBIOS
+ AF_NETGRAPH
+ AF_NS
+ AF_OSI
+ AF_PPP
+ AF_PUP
+ AF_ROUTE
+ AF_SIP
+ AF_SNA
+ AF_SYSTEM
+ AF_UNIX
+ AF_UNSPEC
+
+ AI_ADDRCONFIG
+ AI_ALL
+ AI_CANONNAME
+ AI_DEFAULT
+ AI_MASK
+ AI_NUMERICHOST
+ AI_PASSIVE
+ AI_V4MAPPED
+ AI_V4MAPPED_CFG
+
+ EAI_ADDRFAMILY
+ EAI_AGAIN
+ EAI_BADFLAGS
+ EAI_BADHINTS
+ EAI_FAIL
+ EAI_FAMILY
+ EAI_MAX
+ EAI_MEMORY
+ EAI_NODATA
+ EAI_NONAME
+ EAI_PROTOCOL
+ EAI_SERVICE
+ EAI_SOCKTYPE
+ EAI_SYSTEM
+
+ INADDR_ALLHOSTS_GROUP
+ INADDR_ANY
+ INADDR_BROADCAST
+ INADDR_LOOPBACK
+ INADDR_MAX_LOCAL_GROUP
+ INADDR_NONE
+ INADDR_UNSPEC_GROUP
+
+ IPPORT_RESERVED
+ IPPORT_USERRESERVED
+
+ IPPROTO_BIP
+ IPPROTO_EGP
+ IPPROTO_EON
+ IPPROTO_GGP
+ IPPROTO_HELLO
+ IPPROTO_ICMP
+ IPPROTO_IDP
+ IPPROTO_IGMP
+ IPPROTO_IP
+ IPPROTO_MAX
+ IPPROTO_ND
+ IPPROTO_PUP
+ IPPROTO_RAW
+ IPPROTO_TCP
+ IPPROTO_TP
+ IPPROTO_UDP
+ IPPROTO_XTP
+
+ IPX_TYPE
+
+ IP_ADD_MEMBERSHIP
+ IP_DEFAULT_MULTICAST_LOOP
+ IP_DEFAULT_MULTICAST_TTL
+ IP_DROP_MEMBERSHIP
+ IP_HDRINCL
+ IP_MAX_MEMBERSHIPS
+ IP_MULTICAST_IF
+ IP_MULTICAST_LOOP
+ IP_MULTICAST_TTL
+ IP_OPTIONS
+ IP_RECVDSTADDR
+ IP_RECVOPTS
+ IP_RECVRETOPTS
+ IP_RETOPTS
+ IP_TOS
+ IP_TTL
+
+ MSG_COMPAT
+ MSG_CTRUNC
+ MSG_DONTROUTE
+ MSG_DONTWAIT
+ MSG_EOF
+ MSG_EOR
+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CHECK
+ SO_NREAD
+ SO_OOBINLINE
+ SO_PASSCRED
+ SO_PEERCRED
+ SO_PEERNAME
+ SO_PRIORITY
+ SO_RCVBUF
+ SO_RCVLOWAT
+ SO_RCVTIMEO
+ SO_REUSEADDR
+ SO_REUSEPORT
+ SO_SECURITY_AUTHENTICATION
+ SO_SECURITY_ENCRYPTION_NETWORK
+ SO_SECURITY_ENCRYPTION_TRANSPORT
+ SO_SNDBUF
+ SO_SNDLOWAT
+ SO_SNDTIMEO
+ SO_TIMESTAMP
+ SO_TYPE
+ SO_USELOOPBACK
+ SO_WANTMORE
+ SO_WANTOOBFLAG
+
+ TCP_MAXSEG
+ TCP_NODELAY
+ ]
process_constants = %w{
WNOHANG

0 comments on commit 1e485ba

Please sign in to comment.
Something went wrong with that request. Please try again.