Hi Timothy,

From the docs, the signature of uv_fs_read() is this
(http://docs.libuv.org/en/latest/fs.html#c.uv_fs_read):

int uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, const
uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)

This seems to differ from what you're reporting.  The "bufs" and
"nbufs" are not a pointer and size of a resulting buffer, but instead
they are an array of buffers (possibly more than one), and the length
of this array (i.e. the number of buffers).  Each buffer is described
by a uv_buf_t.  This is more like preadv(2) than read(2).


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to