usa
e3c5fbba91
* gc.c (define_final, undefine_final): shouldn't add/remove finalizer
...
of forzen objects.
* gc.c (undefine_final): should remove FL_FINALIZE flag.
[ruby-dev:37964] (also see [ruby-dev:37959])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 09:11:48 +00:00
akr
a2c779be35
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 08:49:49 +00:00
akr
83eddaad27
* ext/socket/lib/socket.rb (Socket.udp_server_sockets): call the block
...
if given. close the sockets when the block exits.
(Socket.udp_server_loop): use udp_server_sockets in block form.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 08:39:57 +00:00
akr
b9d2a43990
* ext/socket/lib/socket.rb (Socket.tcp_server_sockets): call the block
...
if given. close the sockets when the block exits.
(Socket.tcp_server_loop): use tcp_server_sockets in block form.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 08:35:35 +00:00
akr
d27c1748cd
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 08:13:20 +00:00
akr
630e4ef492
* ext/socket/lib/socket.rb (Socket.unix_server_loop): use
...
unix_server_socket with a block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 08:03:17 +00:00
akr
3f0d724dc3
* ext/socket/lib/socket.rb (Socket.unix_server_socket): close the
...
socket when the block exits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 07:54:52 +00:00
akr
0a954e9117
* ext/socket/lib/socket.rb (Socket.unix_server_socket): call the block
...
if given. remove the socket file when the block exits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 07:51:53 +00:00
akr
ff955766d4
* ext/socket/ancdata.c (ancillary_s_ip_pktinfo): make 3rd argument
...
optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 07:44:53 +00:00
nobu
f23292afb4
* array.c (ary_make_shared): returns shared root array itself, and
...
frozen array can be shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 06:47:12 +00:00
nobu
9da4ec12df
svn:eol-style
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 05:46:40 +00:00
nobu
66a5fcab3a
* insns.def (setspecial, putstring): fixed typos in rdoc.
...
* insns.def (toregexp): uses rb_ary_tmp_new(), and clears it after
used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 05:46:17 +00:00
akr
4b036bb69b
* ext/socket/ancdata.c (anc_inspect_socket_rights): return 1 on
...
success. 0 on failure.
(anc_inspect_passcred_credentials): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_socket_creds): ditto.
(anc_inspect_ip_recvdstaddr): ditto.
(anc_inspect_ip_pktinfo): ditto.
(anc_inspect_ipv6_pktinfo): ditto.
(ancillary_inspect): check family.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 05:10:47 +00:00
akr
6e6676a223
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 04:31:19 +00:00
akr
f871e8cf0d
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 04:29:12 +00:00
akr
a8de15e0b5
rename tests classes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 04:17:57 +00:00
akr
c9c3437b20
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 04:11:48 +00:00
akr
c7a66ff804
* ext/socket/ancdata.c (anc_inspect_ip_pktinfo): make result bit
...
succinct.
(Init_ancdata): fix number of arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 03:56:13 +00:00
akr
fa65ca097b
* ext/socket/ipsocket.c (Init_ipsocket): undef getpeereid at IPSocket.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 02:48:08 +00:00
akr
c645978f1c
updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 01:38:02 +00:00
akr
fdf5d80890
add getpeereid.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 01:30:05 +00:00
akr
b4e50055c3
* ext/socket/extconf.rb: check getpeereid.
...
* ext/socket/basicsocket.c (bsock_getpeereid): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 01:22:08 +00:00
akr
b8147c444b
* ext/socket/lib/socket.rb (Socket::UDPSource#inspect): fix variable
...
name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-11 00:59:30 +00:00
akr
bb4abd612e
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 15:43:02 +00:00
svn
923284e242
* 2009-02-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 15:39:20 +00:00
akr
be25c48638
* ext/socket/socket.c (sock_gethostname): use HOST_NAME_MAX.
...
* ext/socket/raddrinfo.c (make_ipaddr): local variable renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 15:39:16 +00:00
akr
2ee0859119
* ext/socket/init.c (struct recvfrom_arg): use struct
...
sockaddr_storage.
(recvfrom_blocking): follow struct recvfrom_arg change.
(s_recvfrom): ditto.
(s_recvfrom_nonblock): use struct sockaddr_storage.
* ext/socket/socket.c (sock_accept): use struct sockaddr_storage.
(sock_accept_nonblock): ditto.
(sock_sysaccept): ditto.
* ext/socket/ancdata.c (bsock_recvmsg_internal): use struct
sockaddr_storage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 14:46:51 +00:00
akr
6245caf58c
* ext/socket/basicsocket.c (bsock_getpeername): use struct
...
sockaddr_storage.
(bsock_local_address): ditto.
(bsock_remote_address): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 14:31:21 +00:00
akr
1463f1dfe7
* ext/socket/lib/socket.rb (Socket.udp_server_sockets): new method.
...
(Socket.udp_server_loop_on): new method.
(Socket.udp_server_loop): new method
(Socket.ip_sockets_port0): extracted from tcp_server_sockets_port0.
(Socket::UDPSource): new class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 12:38:16 +00:00
akr
a038fab649
* ext/socket/socket.c (sockaddr_obj): fill pfamily.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 12:15:54 +00:00
akr
98d3eca7fc
* ext/socket/option.c (sockopt_s_bool): new method.
...
(sockopt_bool): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 12:09:57 +00:00
akr
7be3cdbc04
updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 11:59:16 +00:00
akr
939efe7d4c
* ext/socket/option.c (sockopt_family_m): renamed from sockopt_family.
...
(sockopt_level_m): renamed from sockopt_level.
(sockopt_optname_m): renamed from sockopt_optname.
(inspect_local_peercred): follow the renaming.
(Init_sockopt): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 11:59:04 +00:00
akr
ba75dd6b95
* ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoid
...
a rb_str_cat2 call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 11:57:07 +00:00
knu
df0f575e1d
Fix grammos regarding the verb "refer".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 08:55:40 +00:00
nobu
160c230f94
* ext/socket/option.c (inspect_local_peercred): constfied.
...
* ext/socket/ancdata.c (anc_inspect_socket_creds): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 03:57:23 +00:00
nobu
395abae93d
configure.in (when): use all parameters.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 03:54:12 +00:00
akr
2acc18ad99
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-10 00:18:53 +00:00
nobu
d1ec929188
* configure.in: needs to quote commas.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 20:07:00 +00:00
nobu
4165800cae
* configure.in (when): makes parentheses balanced.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 19:34:43 +00:00
akr
c6ea437727
* ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed from
...
cmsg_type_to_sym.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 16:29:16 +00:00
akr
b877fc2f15
* ext/socket/option.c (sockopt_inspect): refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 16:23:36 +00:00
svn
41f256b484
* 2009-02-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 16:03:12 +00:00
akr
97ba0d4aa7
* ext/socket/mkconstants.rb: generate intern_family_noprefix.
...
* ext/socket/option.c (sockopt_inspect): use intern_family_noprefix
not to show AF_ prefix.
* ext/socket/ancdata.c (ancillary_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 16:03:08 +00:00
akr
810dd43a20
* ext/socket/constants.c (level_arg): use unknown_level_to_int for
...
non internet protocol.
(optname_arg): use only so_optname_to_int for non internet protocol.
(cmsg_type_arg): use only scm_optname_to_int for non internet
protocol.
* ext/socket/mkconstants.rb: generate unknown_level_to_int.
rename iplevel_to_int to ip_level_to_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 14:23:53 +00:00
akr
2dd3fa9f3e
* ext/socket/mkconstants.rb: rename level_to_int to iplevel_to_int.
...
rename intern_level to intern_iplevel.
* ext/socket/constants.c: follow the renaming.
* ext/socket/option.c: ditto.
* ext/socket/ancdata.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 14:05:37 +00:00
akr
f5da7031b9
* ext/socket/rubysocket.h (level_arg): add family argument.
...
(optname_arg): ditto.
(cmsg_type_arg): ditto.
(rb_sock_getfamily): declared.
* ext/socket/constants.c (level_arg): add family argument.
(optname_arg): ditto.
(cmsg_type_arg): ditto.
* ext/socket/init.c (rb_sock_getfamily): defined.
* ext/socket/option.c (sockopt_initialize): give family for level_arg
and optname_arg.
(sockopt_s_int): ditto.
* ext/socket/basicsocket.c (bsock_setsockopt): ditto.
(bsock_getsockopt): ditto.
* ext/socket/ancdata.c (ancillary_initialize): ditto.
(ancillary_s_int): ditto.
(ancillary_cmsg_is_p): ditto.
(bsock_sendmsg_internal): ditto.
(bsock_recvmsg_internal): use rb_sock_getfamily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 13:56:43 +00:00
akr
2092fbcc3a
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 12:52:11 +00:00
akr
ecfea8e28e
* ext/socket/ancdata.c (ancillary_inspect): show address family.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 12:49:24 +00:00
akr
8977fe1e36
* ext/socket/basicsocket.c (bsock_getsockname): use sockaddr_storage.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-09 11:19:57 +00:00