Commits
- Commit:
9a02f8b79138972ddde059e5683108d07b409289
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch to strerror_r(3) in error.c for thread-safety
- Commit:
c884fd0a8efbd1c76504f46ddb5b688134983a3a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
73e7eb7d1cfead096b0297377490aeaac95a73f5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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@
- Commit:
4cc6a5a5fa3d5a5351d59385e614a0a78d167987
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_from_errno_fmt() for more flexibility in error messages
suggested by and ok millert
- Commit:
16aeacf7088dcd3cd5e654af46a3015cecf41426
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
- Commit:
cc483380c54d31f8ddf61787337cefe1ccf3581b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix NULL deref in got_error_from_errno via got_error_uuid (found by jasper)
- Commit:
7d45c7f1ef956f45432c26a99b9d874dfac2cfdc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
error.c: use <limits.h> instead of <sys/param.h>
- Commit:
df056ada35bdbbcc6e248b7ec0ec8a7d25fd5147
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_error_path()
- Commit:
638f9024045bbe2420143f8868dcc484c231c634
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_error_prefix_errno() to got_error_from_errno()
- Commit:
2af4a0419220dba40c25f0f6af548638b5ae3a1b
- From:
- joshua stein <jcs@jcs.org>
- Date:
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
- Commit:
230a42bdc60c6136d2a5ce65bf1a2f26d990c096
- From:
- joshua stein <jcs@jcs.org>
- Date:
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)
- Commit:
48b8b0ebe312124b17b290c38f2bbd0b5fbc1338
- From:
- joshua stein <jcs@jcs.org>
- Date:
error: introduce got_error_prefix_errno for better errno messages
- Commit:
10689f3a4e8324ff47f0192606e1b0962435ec46
- From:
- joshua stein <jcs@jcs.org>
- Date:
error: fix definition of got_error_from_errno
- Commit:
095892882c4ccc2f584998552200561f340e060f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_uuid()
- Commit:
2aa0475caa333b7d3f25991b11b09ab048e8e6de
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_not_ref()
- Commit:
8fa9fd14daaef1c185a6751487bf26fe0b14e9f2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unnecessary cast
- Commit:
91a3d81fcf77040d5c432c86b5d4aebbec565468
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got errors with custom messages; add one for ERR_NO_OBJ
- Commit:
1a76625ff1fb0585ad07bacb1a753bf01939f910
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog log' use background thread and introduce global mutex
- Commit:
b4691ea5e088973f4d146a0f9a0ef24f480e3b24
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify got_error_from_errno()
- Commit:
8fd174549d6af728ab316c727a527717d9fec756
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't forget to set error message in got_error_from_errno()
- Commit:
8251fdbcd71582c610ee8e416cae5c67e4f93796
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_ferror() and use it
- Commit:
72bcf0f9f354aa395c61c7846287a7af638554a2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump copyright
- Commit:
6c6d65896b4a60cb147c853ed0c38882ff0c61c5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use strerror_r()
- Commit:
f334529ed243c898cbf0cc8ee1058a769444f448
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a conversion function from errno to got_error and use it
- Commit:
2b4402a2eb769abead4dd3371af94390722b5c3c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
only define nitems() if it is not already defined