[ruby-cvs:51641] nobu:r44496 (trunk): socket.c: use rb_syserr_fail

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Jan 4 19:13:38 JST 2014


nobu	2014-01-04 19:13:36 +0900 (Sat, 04 Jan 2014)

  New Revision: 44496

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44496

  Log:
    socket.c: use rb_syserr_fail
    
    * ext/socket/socket.c (rsock_syserr_fail_host_port): add errno
      argument version anduse rb_syserr_fail_str() instead of
      rb_sys_fail_str() with restoring errno.
    * ext/socket/socket.c (rsock_syserr_fail_path): ditto, and
      rb_syserr_fail().
    * ext/socket/socket.c (rsock_sys_fail_sockaddr): ditto, use
      rsock_syserr_fail_raddrinfo().
    * ext/socket/socket.c (rsock_sys_fail_raddrinfo): ditto.
    * ext/socket/socket.c (setup_domain_and_type): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/rubysocket.h
    trunk/ext/socket/socket.c


More information about the ruby-cvs mailing list