Re: [PATCHv3 04/13] strbuf: add strbuf_read_once to read without blocking

2015-09-21 Thread Jacob Keller
On Mon, Sep 21, 2015 at 5:17 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> The new call will read a fd into a strbuf once. The underlying call > > "read from a fd" > >> xread_nonblock is meant to execute non blockingly if the fd is set to >> O_NONBLOCK. > > The latter sentence adds more

Re: [PATCHv3 04/13] strbuf: add strbuf_read_once to read without blocking

2015-09-21 Thread Junio C Hamano
Stefan Beller writes: > The new call will read a fd into a strbuf once. The underlying call "read from a fd" > xread_nonblock is meant to execute non blockingly if the fd is set to > O_NONBLOCK. The latter sentence adds more questions than it answers. If the file descriptor is not set to non-

[PATCHv3 04/13] strbuf: add strbuf_read_once to read without blocking

2015-09-21 Thread Stefan Beller
The new call will read a fd into a strbuf once. The underlying call xread_nonblock is meant to execute non blockingly if the fd is set to O_NONBLOCK. Signed-off-by: Stefan Beller --- strbuf.c | 11 +++ strbuf.h | 6 ++ 2 files changed, 17 insertions(+) diff --git a/strbuf.c b/strbu