Lines Matching +refs:gpg +refs:err +refs:code
1 /* strerror.c - Describing an error code.
30 #include <gpg-error.h>
33 #include "err-codes.h"
36 code in the error value ERR. This function is not thread-safe. */
38 gpg_strerror (gpg_error_t err)
40 gpg_err_code_t code = gpg_err_code (err);
42 if (code & GPG_ERR_SYSTEM_ERROR)
44 int no = gpg_err_code_to_errno (code);
48 code = GPG_ERR_UNKNOWN_ERRNO;
50 return dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);
137 gpg_strerror_r (gpg_error_t err, char *buf, size_t buflen)
139 gpg_err_code_t code = gpg_err_code (err);
144 if (code & GPG_ERR_SYSTEM_ERROR)
146 int no = gpg_err_code_to_errno (code);
158 code = GPG_ERR_UNKNOWN_ERRNO;
161 errstr = dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);