Ruby io_splice 2.0.0v2.0.0
commit2b95ba46ee144eb3a22054ae98a6416996136469
authorEric Wong <normalperson@yhbt.net>
Sat, 5 Jun 2010 08:36:16 +0000 (5 08:36 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 5 Jun 2010 08:47:41 +0000 (5 08:47 +0000)
tree3cdb43dd73a4e3fcbfb331d92a868f2988570ec9
parent901e6061348490b3ea5d1e08be5b08c9601ad310
Ruby io_splice 2.0.0

There is a new IO::Splice.copy_stream method which is similar to
the IO.copy_stream method in 1.9 core, but uses splice()
internally to avoid copies to userspace in situations where
sendfile() is not possible.

With Linux 2.6.35 (and header files to match), we will also
export the F_GETPIPE_SZ and and F_SETPIPE_SZ constants so
they can be used with fcntl() to resize pipe buffers.

The documentation is also updated to reflect the returned
usefulness of the IO::Splice::F_MOVE constant for FUSE
filesystems under Linux 2.6.35.

I've also relicensed to LGPLv2.1+ (from LGPLv3-only) to allow
bundling with GPLv2-only applications (I'm currently the sole
copyright holder).

Signed-off-by: Eric Wong <normalperson@yhbt.net>
GIT-VERSION-GEN
Rakefile
ext/io_splice/io_splice_ext.c
lib/io/splice.rb