diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-02-09 07:42:15 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-02-09 07:42:15 +0000 |
commit | e1391cf65c56ca86030b93375c448b91985dfb7c (patch) | |
tree | 6ec4d4a54c32682861bfcbd9c073db3fa6c7d64f /ext | |
parent | 66d8ad006ff1ca1ede0b0e1988d6a25a67321ae4 (diff) | |
download | ruby_io_splice-e1391cf65c56ca86030b93375c448b91985dfb7c.tar.gz |
This functionality should not be implemented in Ruby, at least. This flag could also conflict with future flags used by the underlying syscalls.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/io_splice/io_splice_ext.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c index cad5dd1..f4745ac 100644 --- a/ext/io_splice/io_splice_ext.c +++ b/ext/io_splice/io_splice_ext.c @@ -216,7 +216,6 @@ static ssize_t do_splice(int argc, VALUE *argv, unsigned dflags) * * IO::Splice::F_MOVE * * IO::Splice::F_NONBLOCK * * IO::Splice::F_MORE - * * IO::Splice::WAITALL * * Returns the number of bytes spliced. * Raises EOFError when +io_in+ has reached end of file. @@ -350,7 +349,6 @@ static ssize_t do_tee(int argc, VALUE *argv, unsigned dflags) * * +flags+ may be zero (the default) or a combination of: * * IO::Splice::F_NONBLOCK - * * IO::Splice::WAITALL * * Other IO::Splice flags are currently unimplemented or have no effect. * @@ -652,6 +650,9 @@ static int can_mod_pipe_size(void) #endif /* ! HAVE_PIPE2 */ } +#define NODOC_CONST(klass,name,value) \ + rb_define_const((klass),(name),(value)) + void Init_io_splice_ext(void) { VALUE mSplice = rb_define_module_under(rb_cIO, "Splice"); @@ -712,7 +713,7 @@ void Init_io_splice_ext(void) * * IO.vmsplice always defaults to this behavior. */ - rb_define_const(mSplice, "WAITALL", UINT2NUM(WAITALL)); + NODOC_CONST(mSplice, "WAITALL", UINT2NUM(WAITALL)); /* * The maximum size of an atomic write to a pipe |