libgpg-error/src (10 files)
cvs user marcus
cvs@cvs.gnupg.org
Sun, 01 Jun 2003 23:11:50 +0200
Date: Sunday, June 1, 2003 @ 23:11:40
Author: marcus
Path: /cvs/gnupg/libgpg-error/src
Added: code-from-errno.c code-to-errno.c errnos.in mkerrcodes1.awk
mkerrcodes2.awk mkerrnos.awk
Modified: Makefile.am err-codes.h.in gpg-error.h strerror.c
2003-06-01 Marcus Brinkmann <marcus@g10code.de>
* src/mkerrcodes1.awk: New file.
* src/mkerrcodes2.awk: New file.
* src/mkerrnos.awk: New file.
* src/errnos.in: New file.
* src/code-from-errno.c: New file.
* src/code-to-errno.c: New file.
* src/Makefile.am (libgpg_error_la_SOURCES): Remove err-sources.h
and err-codes.h. Add code-to-errno.c and code-from-errno.c.
(code-to-errno.h): New target.
(code-from-errno.h): Likewise.
(EXTRA_DIST): Add mkerrnos.awk, errnos.in, and mkerrcodes1.awk.
(BUILT_SOURCES): Add code-to-errno.h and code-from-errno.h.
(CLEANFILES): Likewise.
* src/strerror.c (gpg_strerror): Use strerror for system errors.
* src/err-codes.h.in: Add 16382 (Unknown system error).
* src/gpg-error.h (gpg_err_code_t): Add system errors.
(GPG_ERR_CODE_DIM): Change to 32768.
(GPG_ERR_SYSTEM_ERROR): New macro.
(gpg_err_code_from_errno): New prototype.
(gpg_err_code_to_errno): Likewise.
-------------------+
Makefile.am | 17 +++--
code-from-errno.c | 41 ++++++++++++
code-to-errno.c | 42 ++++++++++++
err-codes.h.in | 1
errnos.in | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++
gpg-error.h | 164 +++++++++++++++++++++++++++++++++++++++++++++++++-
mkerrcodes1.awk | 87 ++++++++++++++++++++++++++
mkerrcodes2.awk | 136 +++++++++++++++++++++++++++++++++++++++++
mkerrnos.awk | 94 ++++++++++++++++++++++++++++
strerror.c | 9 ++
10 files changed, 754 insertions(+), 7 deletions(-)