#undef LOCAL_DEBUG
-#include "ucw/lib.h"
-#include "ucw/mainloop.h"
+#include <ucw/lib.h>
+#include <ucw/mainloop.h>
#include <stdio.h>
#include <string.h>
{
if (errno != EINTR && errno != EAGAIN && bio->error_handler)
bio->error_handler(bio, BIO_ERR_READ);
- return 0;
+ return HOOK_IDLE;
}
else if (!l)
break;
fi->read_handler = NULL;
file_chg(fi);
bio->read_done(bio);
- return 1;
+ return HOOK_RETRY;
}
static int
{
if (errno != EINTR && errno != EAGAIN && bio->error_handler)
bio->error_handler(bio, BIO_ERR_WRITE);
- return 0;
+ return HOOK_IDLE;
}
bio->wpos += l;
}
fi->write_handler = NULL;
file_chg(fi);
bio->write_done(bio);
- return 1;
+ return HOOK_RETRY;
}
void