Commits


Stop including <sys/syslimits.h> directly. POSIX says the limits defined there are available from <limits.h>, which almost all affected source files already included anyway. ok millert stsp


do not rely on <zlib.h> to pull in <unistd.h> ok stsp


add optional 'consumed' output parameter to got_inflate_to_mem()


include <limits.h> instead of <sys/limits.h>; patch by Thomas Klausner


make got-read-blob account for header len in size check Fixes "no space" error with blobs which happen to straddle the size boundary for in-memory handling.


plug a memory leak in got-read-blob


rename got_error_prefix_errno() to got_error_from_errno()


while (1) -> for (;;)


got_error_from_errno -> got_error_prefix_errno also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)


check for errors from close(2)


check for errors from fclose()


happy new copyright year


pass smallish blobs directly via imsg buffer


verify total size vs header length in got-read-blob


eliminate got_object_open() round-trip when opening blobs