On 02/19/13 11:05, Andy Wingo wrote: > We use full_read in Guile and just got a bug report that full_read was > depending on the incoming errno.
Sorry, I don't see the bug here. The calling code should look like this: size_t r = full_read (fd, buf, n); if (r != n) { if (errno == 0) handle_end_of_file (); else handle_error (errno); } Is this how Guile works? If not, then it should probably be changed to work like that. If so, then can you explain what the bug is, from Guile's point of view?