Commit Briefs

a7472cb328 Stefan Sperling

check return value of RB_INSERT; ok + memleak fix by op@


70cc983209 Christian Weisgerber

move got_errors[] table into a single compilation unit (error.c)

ok stsp


5c02d2a555 Stefan Sperling

for portability, handle errno variations upon open(2) failure with O_NOFOLLOW

Problem pointed out by naddy for FreeBSD -portable. Discussed with millert, thomas adam, and naddy.


9a02f8b791 Stefan Sperling

switch to strerror_r(3) in error.c for thread-safety


c884fd0a8e Stefan Sperling

introduce got_custom_error array to support multiple errors in flight

This is still not thread-safe but at least avoids errors overwriting each other in single-threaded contexts.


73e7eb7d1c Stefan Sperling

add got_error_fmt()

got_error_fmt() could eventually replace got_error_path() which has already been used to construct errors with strings that are not actually paths... ok millert@


4cc6a5a5fa Stefan Sperling

add got_error_from_errno_fmt() for more flexibility in error messages

suggested by and ok millert




7d45c7f1ef Stefan Sperling

error.c: use <limits.h> instead of <sys/param.h>


df056ada35 Stefan Sperling

introduce got_error_path()


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


2af4a04192 joshua stein

got_error_set_errno: take a char arg to pass to got_error_prefix_errno

$> got rm a got: : No such file or directory becomes $> got rm a got: /path/to/a: No such file or directory


230a42bdc6 joshua stein

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)



10689f3a4e joshua stein

error: fix definition of got_error_from_errno


095892882c Stefan Sperling

add got_error_uuid()


2aa0475caa Stefan Sperling

add got_error_not_ref()


8fa9fd14da Stefan Sperling

remove unnecessary cast




b4691ea5e0 Stefan Sperling

simplify got_error_from_errno()



8251fdbcd7 Stefan Sperling

introduce got_ferror() and use it


72bcf0f9f3 Stefan Sperling

bump copyright