mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* ext/socket/socket.c (bsock_shutdown): accept symbol/string as how.
(shutdown_how_arg): new function. * ext/socket/mkconstants.rb: generate shutdown_how_to_int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f31ea3c86
commit
80618e75aa
4 changed files with 22 additions and 6 deletions
|
@ -219,6 +219,7 @@ init_constants(VALUE mConst)
|
|||
<%= gen_name_to_int_func("ipv6_optname_to_int", /\AIPV6_/, "IPV6_", "IPPROTO_IPV6") %>
|
||||
<%= gen_name_to_int_func("tcp_optname_to_int", /\ATCP_/, "TCP_") %>
|
||||
<%= gen_name_to_int_func("udp_optname_to_int", /\AUDP_/, "UDP_") %>
|
||||
<%= gen_name_to_int_func("shutdown_how_to_int", /\ASHUT_/, "SHUT_") %>
|
||||
|
||||
<%= INTERN_DEFS.map {|decl, gen_hash, func| func }.join("\n") %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue