summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/socket/init.c (struct recvfrom_arg): use structakr2009-02-104-21/+36
| | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@22214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/basicsocket.c (bsock_getpeername): use structakr2009-02-102-9/+16
| | | | | | | | | | sockaddr_storage. (bsock_local_address): ditto. (bsock_remote_address): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (Socket.udp_server_sockets): new method.akr2009-02-103-10/+219
| | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@22212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sockaddr_obj): fill pfamily.akr2009-02-102-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_s_bool): new method.akr2009-02-103-0/+71
| | | | | | | (sockopt_bool): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated.akr2009-02-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_family_m): renamed from sockopt_family.akr2009-02-102-9/+17
| | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@22208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoidakr2009-02-102-4/+7
| | | | | | | a rb_str_cat2 call. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix grammos regarding the verb "refer".knu2009-02-106-17/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_local_peercred): constfied.nobu2009-02-102-4/+5
| | | | | | | * ext/socket/ancdata.c (anc_inspect_socket_creds): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in (when): use all parameters.nobu2009-02-101-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-102-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: needs to quote commas.nobu2009-02-091-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (when): makes parentheses balanced.nobu2009-02-092-286/+292
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed fromakr2009-02-092-2/+7
| | | | | | | | cmsg_type_to_sym. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_inspect): refactored.akr2009-02-092-5/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-02-10svn2009-02-091-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: generate intern_family_noprefix.akr2009-02-094-2/+12
| | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@22187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/constants.c (level_arg): use unknown_level_to_int forakr2009-02-094-36/+73
| | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@22186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: rename level_to_int to iplevel_to_int.akr2009-02-095-5/+16
| | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@22185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (level_arg): add family argument.akr2009-02-097-44/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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: http://svn.ruby-lang.org/repos/ruby/trunk@22184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-091-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_inspect): show address family.akr2009-02-092-9/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/basicsocket.c (bsock_getsockname): use sockaddr_storage.akr2009-02-092-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (load_conv_function51932): fixed for thenobu2009-02-092-32/+48
| | | | | | | case IMultiLanguage is not available. [ruby-dev:37950] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_int): return 1/0 on success/failure.akr2009-02-092-120/+136
| | | | | | | | | | | | | (inspect_uint): ditto. (inspect_linger): ditto. (inspect_socktype): ditto. (inspect_timeval): ditto. (inspect_peercred): ditto. (inspect_local_peercred): ditto. (sockopt_inspect): refactored. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: more constants for Solaris.akr2009-02-092-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/basicsocket.c (bsock_getsockopt): refine address familyakr2009-02-092-2/+6
| | | | | | | | examination. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_initialize): argument conversionakr2009-02-092-5/+9
| | | | | | | | reordered. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_initialize): add family argument.akr2009-02-093-28/+74
| | | | | | | | | | | | | (ancdata_new): ditto. (ancillary_s_int): ditto. (ancillary_family): new function. (ancillary_family_m): new method. (ancillary_s_ip_pktinfo): follow ancdata_new change. (ancillary_s_ipv6_pktinfo): ditto. (bsock_recvmsg_internal): examine the socket address family. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Slightly fix rdoc of with_index.knu2009-02-091-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mention Enumerator#with_index.knu2009-02-091-4/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_encoding_set): ignore second argument when external andnaruse2009-02-092-0/+9
| | | | | | internal are same. [ruby-dev:37939] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_local_peercred): check version.akr2009-02-092-0/+11
| | | | | | | (sockopt_inspect): suppress warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_peercred): struct ucred containsakr2009-02-083-3/+8
| | | | | | | effective uid/gid. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a note.akr2009-02-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* LOCAL_PEERCRED is also available on MacOS X.akr2009-02-082-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_inspect): add ifdef guard forakr2009-02-082-0/+7
| | | | | | | LOCAL_PEERCRED. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_local_peercred): cr_uid is a effectiveakr2009-02-083-2/+7
| | | | | | | uid, not a real uid. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: check sys/param.h and sys/ucred.h.akr2009-02-086-12/+93
| | | | | | | | | | | | | * ext/socket/rubysocket.h: include sys/param.h and sys/ucred.h. * ext/socket/option.c (inspect_local_peercred): new function to show LOCAL_PEERCRED socket option on FreeBSD. (sockopt_inspect): show as LOCAL_* socket option if AF_UNIX and level is 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-02-09svn2009-02-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (sockopt_new): add family argument.akr2009-02-084-16/+63
| | | | | | | | | | | | | | * ext/socket/option.c (sockopt_initialize): add vfamily argument. (sockopt_new): add family argument and record it in the object. (sockopt_family): new method. (sockopt_s_int): add vfamily argument. (sockopt_inspect): show family. * ext/socket/basicsocket.c (bsock_getsockopt): check address family using getsockname. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_with_index): receives one argument whichmame2009-02-083-9/+34
| | | | | | | represents a start offset. [ruby-dev:37921] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove debug print.akr2009-02-081-2/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/st.h, st.c: order entries by a linked list instead ofmame2009-02-083-21/+28
| | | | | | | | a loop to fix iteration miss when hash is modified during iteration. [ruby-dev:37910] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_peercred): new function to showakr2009-02-083-4/+45
| | | | | | | SO_PEERCRED socket option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin),nobu2009-02-082-3/+11
| | | | | | | | | | (rb_thread_blocking_region_end): marked as deprecated. * include/ruby/backward/rubysig.h (TRAP_BEG): fix for C++. a patch from Aman Gupta at [ruby-core:21934] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: check struct cmsgcred.akr2009-02-084-29/+97
| | | | | | | | | | * ext/socket/ancdata.c (anc_inspect_passcred_credentials): add "(ucred)". (anc_inspect_socket_creds): show struct cmsgcred too, for FreeBSD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):akr2009-02-082-1/+6
| | | | | | | detach spawned process. [ruby-dev:37936] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test renamed.akr2009-02-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e