mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/readline/readline.c: use rb_f_notimplement for methods not
implemented. * ext/openssl/ossl_engine.c: ditto. * ext/openssl/ossl_config.c: ditto. * ext/openssl/ossl_cipher.c: ditto. * ext/openssl/ossl_pkcs5.c: ditto. * ext/openssl/ossl_x509ext.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/basicsocket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. * ext/iconv/iconv.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
be2d3f5979
commit
05a278b4cd
13 changed files with 248 additions and 229 deletions
|
@ -171,6 +171,7 @@ sendmsg_blocking(void *data)
|
|||
return sendmsg(arg->fd, &arg->msg, 0);
|
||||
}
|
||||
|
||||
#if defined(HAVE_SENDMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
|
||||
/*
|
||||
* call-seq:
|
||||
* unixsocket.send_io(io) => nil
|
||||
|
@ -190,7 +191,6 @@ sendmsg_blocking(void *data)
|
|||
static VALUE
|
||||
unix_send_io(VALUE sock, VALUE val)
|
||||
{
|
||||
#if defined(HAVE_SENDMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
|
||||
int fd;
|
||||
rb_io_t *fptr;
|
||||
struct iomsg_arg arg;
|
||||
|
@ -248,11 +248,10 @@ unix_send_io(VALUE sock, VALUE val)
|
|||
rb_sys_fail("sendmsg(2)");
|
||||
|
||||
return Qnil;
|
||||
#else
|
||||
rb_notimplement();
|
||||
return Qnil; /* not reached */
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define unix_send_io rb_f_notimplement
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
recvmsg_blocking(void *data)
|
||||
|
@ -261,6 +260,7 @@ recvmsg_blocking(void *data)
|
|||
return recvmsg(arg->fd, &arg->msg, 0);
|
||||
}
|
||||
|
||||
#if defined(HAVE_RECVMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
|
||||
/*
|
||||
* call-seq:
|
||||
* unixsocket.recv_io([klass [, mode]]) => io
|
||||
|
@ -283,7 +283,6 @@ recvmsg_blocking(void *data)
|
|||
static VALUE
|
||||
unix_recv_io(int argc, VALUE *argv, VALUE sock)
|
||||
{
|
||||
#if defined(HAVE_RECVMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
|
||||
VALUE klass, mode;
|
||||
rb_io_t *fptr;
|
||||
struct iomsg_arg arg;
|
||||
|
@ -390,11 +389,10 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
|
|||
ff_argv[1] = mode;
|
||||
return rb_funcall2(klass, for_fd, ff_argc, ff_argv);
|
||||
}
|
||||
#else
|
||||
rb_notimplement();
|
||||
return Qnil; /* not reached */
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define unix_recv_io rb_f_notimplement
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue