[ruby-cvs:60427] nobu:r53264 (trunk): prefer rb_syserr_fail

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Dec 23 17:57:51 JST 2015


nobu	2015-12-23 17:57:48 +0900 (Wed, 23 Dec 2015)

  New Revision: 53264

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

  Log:
    prefer rb_syserr_fail
    
    * file.c, io.c, util.c: prefer rb_syserr_fail with saved errno
      over setting errno then call rb_sys_fail, not to be clobbered
      potentially and to reduce thread local errno accesses.

  Modified files:
    trunk/ChangeLog
    trunk/ext/io/console/console.c
    trunk/ext/openssl/ossl_bio.c
    trunk/ext/socket/ancdata.c
    trunk/ext/socket/init.c
    trunk/ext/socket/socket.c
    trunk/ext/socket/unixsocket.c
    trunk/ext/stringio/stringio.c
    trunk/file.c
    trunk/io.c
    trunk/process.c
    trunk/util.c


More information about the ruby-cvs mailing list