/*
* call-seq:
*
* io.kgio_trywrite(str) -> nil, String or :wait_writable
*
* Returns nil if the write was completed in full.
*
* Returns a String containing the unwritten portion if EAGAIN
* was encountered, but some portion was successfully written.
*
* Returns :wait_writable if EAGAIN is encountered and nothing
* was written.
*/
static VALUE kgio_trywrite(VALUE io, VALUE str)
{
return my_write(io, str, 0);
}