Michał Kępień
365b47caee
Add an ERRNO_CHECK() preprocessor macro
...
In a number of situations in pthreads-related code, a common sequence of
steps is taken: if the value returned by a library function is not 0,
pass errno to strerror_r(), log the string returned by the latter, and
immediately abort execution. Add an ERRNO_CHECK() preprocessor macro
which takes those exact steps and use it wherever (conveniently)
possible.
Notes:
1. The "log the return value of strerror_r() and abort" pattern is used
in a number of other places that this commit does not touch; only
"!= 0" checks followed by isc_error_fatal() calls with
non-customized error messages are replaced here.
2. This change temporarily breaks file name & line number reporting for
isc__mutex_init() errors, to prevent breaking the build. This issue
will be rectified in a subsequent change.
2022-07-13 13:19:32 +02:00
..
2022-07-13 13:19:32 +02:00
2022-07-12 14:40:22 +03:00
2022-03-02 10:48:09 +00:00
2022-07-05 12:22:55 -07:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-04-19 14:25:23 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-08 11:19:34 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-03-28 15:02:18 -07:00
2022-04-19 11:08:13 +02:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-04-25 15:18:58 +01:00
2022-03-25 08:33:43 +01:00
2022-05-28 14:53:02 -07:00
2022-03-04 13:49:51 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-07-05 12:22:55 -07:00
2022-01-11 09:05:02 +01:00
2022-07-13 13:19:32 +02:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-05-23 18:25:18 +03:00
2022-05-23 18:25:18 +03:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-07-05 12:22:55 -07:00
2022-01-11 09:05:02 +01:00
2022-04-25 15:18:58 +01:00
2022-04-02 01:23:15 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-28 15:32:30 +03:00
2022-03-28 23:26:08 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-03-25 08:33:43 +01:00
2022-02-10 17:18:09 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-07-05 12:22:55 -07:00
2022-05-28 14:53:02 -07:00
2022-07-13 13:19:32 +02:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-04-06 07:33:41 +00:00
2022-01-11 09:05:02 +01:00
2022-07-05 12:22:55 -07:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-05-13 10:07:20 +02:00
2022-03-25 08:33:43 +01:00
2022-01-11 09:05:02 +01:00
2022-05-04 12:31:46 +02:00