summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* LOCAL_PEERCRED is also available on MacOS X.akr2009-02-081-1/+1
| | | | 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-081-0/+2
| | | | | | | 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-081-1/+1
| | | | | | | 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-084-11/+67
| | | | | | | | | | | | | * 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
* * ext/socket/rubysocket.h (sockopt_new): add family argument.akr2009-02-083-16/+50
| | | | | | | | | | | | | | * 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
* * ext/socket/option.c (inspect_peercred): new function to showakr2009-02-081-0/+20
| | | | | | | SO_PEERCRED socket option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: check struct cmsgcred.akr2009-02-082-19/+54
| | | | | | | | | | * 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
* * ext/socket/extconf.rb: check struct sockcred.akr2009-02-082-0/+40
| | | | | | | | * ext/socket/ancdata.c (anc_inspect_socket_creds): new function to show SCM_CREDS on NetBSD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more constants.akr2009-02-081-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (anc_inspect_passcred_credentials): newakr2009-02-081-0/+20
| | | | | | | function to show SCM_CREDENTIALS on GNU/Linux. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (init_unix_addrinfo): add socktype argument.akr2009-02-081-9/+21
| | | | | | | | | (addrinfo_initialize): follow init_unix_addrinfo change. (addrinfo_s_unix): add optional argument: socktype git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix rdoc.akr2009-02-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_header): needs dependent headers if trying tonobu2009-02-071-1/+1
| | | | | | | | | compile. * ext/socket/extconf.rb: net/if.h depends on other headers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_cipher.c (add_cipher_name_to_ary): usednobu2009-02-061-0/+2
| | | | | | | conditionally. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): type fixed.akr2009-02-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_run_exec_options_err): renamed fromakr2009-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_run_exec_options. (rb_exec_err): renamed from rb_exec. (rb_fork_err): renamed from rb_fork. (rb_spawn_err): renamed from rb_spawn. (rb_run_exec_options): declared with 1.9.1 compatible signature. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * process.c (rb_run_exec_options_err): renamed from rb_run_exec_options. (rb_exec_err): renamed from rb_exec. (rb_fork_err): renamed from rb_fork. (rb_spawn_err): renamed from rb_spawn. (rb_run_exec_options): defined. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * io.c: follow above change. * ext/pty/pty.c: follow above change. [ruby-dev:37893] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket: AddrInfo is renamed to Addrinfo. [ruby-dev:37876]akr2009-02-058-165/+165
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (Init_readline): entry may be NULL.kazu2009-02-041-2/+4
| | | | | | | [ruby-dev:37891] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_socketpair): make 3rd argument optional.akr2009-02-043-5/+15
| | | | | | | | | | | * ext/socket/unixsocket.c (unix_s_socketpair): follow the above change. * ext/socket/rubysocket.h (sock_s_socketpair): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_ipv6_to_ipv4): new method.akr2009-02-041-0/+35
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert useless change part in the previous commit.akr2009-02-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfoakr2009-02-031-4/+4
| | | | | | | | detection. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): skipakr2009-02-031-1/+5
| | | | | | | | socket creation error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: checked rl_set_screen_size andkouji2009-02-032-0/+62
| | | | | | | | | | | | | rl_get_screen_size. * ext/readline/readline.c (readline_s_set_screen_size): added Readline.set_screen_size. * ext/readline/readline.c (readline_s_get_screen_size): added Readline.get_screen_size. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: updated year of copyright.kouji2009-02-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_s_set_completion_proc): setkouji2009-02-031-1/+3
| | | | | | | default if proc is nil. fix #1095 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): newakr2009-02-031-19/+67
| | | | | | | | private function for allocating same port both IPv4 and IPv6. (Socket.tcp_server_sockets): use tcp_server_sockets_port0 for port 0. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): extracted fromakr2009-02-021-43/+96
| | | | | | | | | | | Socket.tcp_server_loop. (Socket.accept_loop): ditto. (Socket.unix_server_socket): extracted from Socket.unix_server_loop. (Socket.unix_server_loop): use Socket.accept_loop. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb (in_pktinfo, in6_pktinfo),nobu2009-02-022-5/+13
| | | | | | | | ext/socket/ancdata.c: defined in w32api/ws2tcpip.h on cygwin but cannot compile for some reason. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (Init_addrinfo): add AddrInfo#to_s as anakr2009-02-022-0/+3
| | | | | | | | | | | alias of AddrInfo#to_sockaddr. * ext/socket/option.c (Init_sockopt): add Socket::Option#to_s as an alias of Socket::Option#data. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (cmsg_type_to_sym): add #ifdef for no IPv6akr2009-02-021-0/+2
| | | | | | | | environment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_initialize): make 3rd argument, protocol,akr2009-02-021-8/+14
| | | | | | | optional. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/constants.c (cmsg_type_arg): INET6 check.usa2009-02-021-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c: use INET6 instead of IPV6.akr2009-02-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/{options,raddrinfo}.c: use INET6 instead of AF_INET6 forusa2009-02-022-2/+4
| | | | | | | | VC++6. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (cmsg_type_arg): declared.akr2009-02-028-0/+1128
| | | | | | | | | | | | | | | | | | | | | | (Init_ancdata): ditto. * ext/socket/init.c (Init_socket_init): call Init_ancdata. * ext/socket/constants.c (cmsg_type_arg): defined. * ext/socket/depend: add dependency for ancdata.o. * ext/socket/mkconstants.rb: generate scm_optname_to_int. more constants. * ext/socket/extconf.rb: add ancdata.o. * ext/socket/ancdata.c: new file. new method BasicSocket#{sendmsg,sendmsg_nonblock,recvmsg,recvmsg_nonblock} git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h (rb_cSockOpt): declared.akr2009-02-028-3/+401
| | | | | | | | | | | | | | | | | | | | | | | (sockopt_new): ditto. (Init_sockopt): ditto. * ext/socket/init.c (Init_socket_init): call Init_sockopt. * ext/socket/depend: add dependency for option.o * ext/socket/mkconstants.rb: generate intern_level, intern_so_optname, intern_ip_optname, intern_ipv6_optname, intern_tcp_optname, intern_udp_optname and intern_scm_optname. * ext/socket/extconf.rb: add option.o. * ext/socket/basicsocket.c (bsock_setsockopt): accept Socket::Option object. (bsock_getsockopt): return Socket::Option object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb (Server#serve): gets rid of hardcodednobu2009-02-012-3/+3
| | | | | | | | | | | | | | | | | | | | | | platform names. * lib/resolv.rb (Resolv::Hosts::DefaultFileName), (Resolv::DNS::Config.default_config_hash): tries win32/resolv on mswin64 too. * lib/rubygems/specification.rb (Gem::Specification#ruby_code): aded mswin64. * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command): spawn is better to start a process in background. * ext/extmk.rb: uses FNM_SYSCASE. * instruby.rb: installs win32.h on mswin64 platform. [ruby-core:21722] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_ipv4_private_p): new method.akr2009-02-011-0/+58
| | | | | | | | (addrinfo_ipv4_loopback_p): ditto. (addrinfo_ipv4_multicast_p): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_ipv6_unspecified_p): new method.akr2009-01-311-3/+177
| | | | | | | | | | | | | | | | | (addrinfo_ipv6_loopback_p): ditto. (addrinfo_ipv6_multicast_p): ditto. (addrinfo_ipv6_linklocal_p): ditto. (addrinfo_ipv6_sitelocal_p): ditto. (addrinfo_ipv6_v4mapped_p): ditto. (addrinfo_ipv6_v4compat_p): ditto. (addrinfo_ipv6_mc_nodelocal_p): ditto. (addrinfo_ipv6_mc_linklocal_p): ditto. (addrinfo_ipv6_mc_sitelocal_p): ditto. (addrinfo_ipv6_mc_orglocal_p): ditto. (addrinfo_ipv6_mc_global_p): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): Curses#crmode andkouji2009-01-301-2/+2
| | | | | | | | Curses#nocrmode changes to the module function. fix #916 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/spclet.c (socket_s_ip_address_list): support Windows XPusa2009-01-292-2/+93
| | | | | | | | or later. (Win2k or earlier is still not supported) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_run): previous change didn't resolve theusa2009-01-281-1/+4
| | | | | | | | problem. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (zstream_run): desperately guard the variable.usa2009-01-281-1/+1
| | | | | | | | [ruby-core:20576] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2009-01-271-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/init.c (socks_connect_blocking): moved fromakr2009-01-272-10/+10
| | | | | | | | | | sockssocket.c. [ruby-dev:37834] * sockssocket.c (socks_init): don't omit "int" type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend: use VPATH.naruse2009-01-271-1/+1
| | | | | | | If a platform doesn't support VPATH, Ruby doesn't support it: for exapmle MSYS. [ruby-core:21570] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend: lex.c's correct path is ../../lex.c.naruse2009-01-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend: fixed dependency path to lex.c.matz2009-01-261-1/+1
| | | | | | [ruby-core:21570] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e