X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Fio.h;h=510ee0be0166033618768b91cbcafcec8541c85b;hp=c9ab228c7a046b3c3575d0c1aa40d1255b15f5d7;hb=fedf515165bfafaf4fb98252ecda1abe050c8da5;hpb=b6e8d929d2c0c37afc840ac99e3e0f469e33e6c0;ds=sidebyside diff --git a/ccan/io/io.h b/ccan/io/io.h index c9ab228c..510ee0be 100644 --- a/ccan/io/io.h +++ b/ccan/io/io.h @@ -223,7 +223,8 @@ struct io_plan *io_write_(struct io_conn *conn, * * This creates a plan to read data into a buffer. Once it's all * read, the @next function will be called: on an error, the finish - * function is called instead. + * function is called instead. If read() returns 0 (EOF) errno is set + * to 0. * * Note that the I/O may actually be done immediately. * @@ -256,7 +257,8 @@ struct io_plan *io_read_(struct io_conn *conn, * * This creates a plan to read data into a buffer. Once any data is * read, @len is updated and the @next function will be called: on an - * error, the finish function is called instead. + * error, the finish function is called instead. If read() returns 0 (EOF) + * errno is set to 0. * * Note that the I/O may actually be done immediately. *