• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-Nov-2021-

syscfg/H03-Nov-2021-984866

Makefile.amH A D24-Aug-202012.9 KiB368246

Makefile.inH A D03-Nov-202194.4 KiB1,7901,547

READMEH A D14-Nov-20162 KiB4836

argparse.cH A D03-Nov-2021103.1 KiB3,4472,717

b64dec.cH A D15-Nov-20187.3 KiB280215

b64enc.cH A D22-Mar-201812.1 KiB387253

code-from-errno.cH A D16-Nov-20161.8 KiB7029

code-to-errno.cH A D16-Nov-20161.3 KiB4316

err-codes.hH A D24-Aug-202026.2 KiB937908

err-codes.h.inH A D12-Dec-201923.5 KiB528498

err-sources.hH A D22-Mar-20212.2 KiB8960

err-sources.h.inH A D22-Mar-20212.4 KiB6251

errnos.inH A D14-Jan-20142.9 KiB173165

estream-printf.cH A D08-Sep-201952.8 KiB1,9051,487

estream-printf.hH A D26-Nov-20186.3 KiB15466

estream.cH A D05-Mar-2021125.5 KiB5,4153,912

gen-lock-obj.shH A D22-Oct-20213.1 KiB13775

gen-posix-lock-obj.cH A D16-Nov-20164.3 KiB176130

gen-w32-lock-obj.cH A D16-Nov-20161.5 KiB5628

gettext.hH A D15-Mar-20133.2 KiB7726

gpg-error-config-test.shH A D03-Nov-20213.1 KiB9975

gpg-error-config-test.sh.inH A D26-Jun-20203.1 KiB9975

gpg-error-config.inH A D22-Aug-20192.2 KiB10484

gpg-error.cH A D05-Aug-202019.4 KiB768593

gpg-error.def.inH A D04-Mar-20217.4 KiB246217

gpg-error.h.inH A D31-Oct-202150.2 KiB1,3791,151

gpg-error.m4H A D20-May-20218 KiB208199

gpg-error.pc.inH A D18-Feb-2020422 1614

gpg-error.versH A D19-Oct-20204.6 KiB214193

gpg-error.w32-manifest.inH A D06-Mar-2015741 1817

gpgrt-configH A D03-Nov-202113.1 KiB648493

gpgrt-config.inH A D22-Oct-202113.1 KiB648493

gpgrt-int.hH A D22-Oct-202131.5 KiB846481

gpgrt.m4H A D15-Nov-20184 KiB113109

init.cH A D20-May-202118.2 KiB754505

init.hH A D12-Nov-20162.1 KiB7127

lock.hH A D29-Nov-2017834 253

logging.cH A D10-Feb-202035.1 KiB1,3421,020

mkerrcodes.awkH A D22-Aug-20193.3 KiB10031

mkerrcodes.cH A D16-Nov-20162.6 KiB7948

mkerrcodes1.awkH A D22-Aug-20193.4 KiB9734

mkerrcodes2.awkH A D22-Aug-20194.6 KiB13550

mkerrnos.awkH A D22-Aug-20193.6 KiB10541

mkheader.cH A D20-May-202118.6 KiB781641

mkstrtable.awkH A D22-Aug-20196.1 KiB19091

mkw32errmap.cH A D16-Nov-20166.3 KiB179137

posix-lock-obj.hH A D12-Nov-20161.1 KiB4319

posix-lock.cH A D22-Oct-20216.7 KiB267197

posix-thread.cH A D29-Nov-20171.6 KiB6940

protos.hH A D05-Mar-20211.1 KiB327

spawn-posix.cH A D20-May-202121.3 KiB892653

spawn-w32.cH A D19-Oct-202026.5 KiB921699

strerror-sym.cH A D16-Nov-20161.6 KiB5725

strerror.cH A D22-Oct-20215.4 KiB203131

stringutils.cH A D22-Oct-20215.5 KiB222159

strsource-sym.cH A D16-Nov-20161.4 KiB4414

strsource.cH A D16-Nov-20161.2 KiB3812

syscall-clamp.cH A D01-May-20182.2 KiB8128

sysutils.cH A D21-Dec-202011.8 KiB525390

thread.hH A D29-Nov-2017844 253

version.cH A D03-Nov-20216.3 KiB247169

versioninfo.rc.inH A D03-Nov-20211.8 KiB5548

visibility.cH A D04-Mar-202123.2 KiB1,2511,007

visibility.hH A D04-Mar-202118.2 KiB420351

w32-add.hH A D04-Mar-20213.1 KiB6850

w32-estream.cH A D11-Aug-202028.3 KiB1,079806

w32-gettext.cH A D05-Mar-202152.3 KiB2,0171,650

w32-iconv.cH A D21-Aug-202053 KiB1,7961,459

w32-lock-obj.hH A D12-Nov-20161.2 KiB3913

w32-lock.cH A D04-Jan-20193.8 KiB162104

w32-reg.cH A D22-Oct-20215.8 KiB204142

w32-thread.cH A D29-Nov-20171.2 KiB4722

w32ce-add.hH A D15-Mar-2013294 96

README

1Notes on the source code
2========================
3
4The mechanism to generate the system error codes is delicate and
5fragile, but it's the best I could come up with that supports
6cross-compilation and dynamic self-configuration.  Here is how it
7works:
8
91. Generate list of supported system error codes.
10
11mkerrcodes1.awk generates a list of supported system error codes from
12errnos.in.  Each entry in the list is protected with #ifdef/#endif,
13and contains a GPG_ERR_* marker.  The list is stored in "_mkerrcodes.h".
14
152. The HOST cpp is run on _mkerrcodes.h.  This evaluates the known
16system error macros to something (may be a number, maybe a constant
17expression as on the GNU/Hurd), suppressing the unknown ones.  The
18output is piped into step 3.
19
203. The cpp output is filtered with grep for only those lines which
21contain a GPG_ERR_* marker.  The output is piped into step 4.
22
234. The filtered output is processed by mkerrcodes.awk, which produces
24a table of constant expressions plus GPG_ERR_* code string symbols in
25a format suitable for the C program mkerrcodes.c.  At this point we
26are crossing our fingers that the constant expressions produced by the
27system do not contain GPG_ERR_* markers.  The output is stored in
28mkerrcodes.h.
29
305. The file mkerrcodes.h is included by mkerrcodes.c, which is
31compiled to a binary executable on the BUILD system.  At this point we
32are crossing our fingers that the constant expressions produced by the
33system do not depend on the build platform anymore.  The output is
34post-processed by mkerrcodes2.awk and stored in "code-from-errno.h",
35which is subsequently used in the library.
36
37-- Marcus
38
39 Copyright 2006 g10 Code GmbH
40
41 This file is free software; as a special exception the author gives
42 unlimited permission to copy and/or distribute it, with or without
43 modifications, as long as this notice is preserved.
44
45 This file is distributed in the hope that it will be useful, but
46 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
47 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
48