Ondřej Surý
fe7ce629f4
Add FALLTHROUGH macro for __attribute__((fallthrough))
...
Gcc 7+ and Clang 10+ have implemented __attribute__((fallthrough)) which
is explicit version of the /* FALLTHROUGH */ comment we are currently
using.
Add and apply FALLTHROUGH macro that uses the attribute if available,
but does nothing on older compilers.
In one case (lib/dns/zone.c), using the macro revealed that we were
using the /* FALLTHROUGH */ comment in wrong place, remove that comment.
2022-03-25 08:33:43 +01:00
Ondřej Surý
58bd26b6cf
Update the copyright information in all files in the repository
...
This commit converts the license handling to adhere to the REUSE
specification. It specifically:
1. Adds used licnses to LICENSES/ directory
2. Add "isc" template for adding the copyright boilerplate
3. Changes all source files to include copyright and SPDX license
header, this includes all the C sources, documentation, zone files,
configuration files. There are notes in the doc/dev/copyrights file
on how to add correct headers to the new files.
4. Handle the rest that can't be modified via .reuse/dep5 file. The
binary (or otherwise unmodifiable) files could have license places
next to them in <foo>.license file, but this would lead to cluttered
repository and most of the files handled in the .reuse/dep5 file are
system test files.
2022-01-11 09:05:02 +01:00
Evan Hunt
dcee985b7f
update all copyright headers to eliminate the typo
2020-09-14 16:20:40 -07:00
Evan Hunt
e851ed0bb5
apply the modified style
2020-02-13 15:05:06 -08:00
Ondřej Surý
056e133c4c
Use clang-tidy to add curly braces around one-line statements
...
The command used to reformat the files in this commit was:
./util/run-clang-tidy \
-clang-tidy-binary clang-tidy-11
-clang-apply-replacements-binary clang-apply-replacements-11 \
-checks=-*,readability-braces-around-statements \
-j 9 \
-fix \
-format \
-style=file \
-quiet
clang-format -i --style=format $(git ls-files '*.c' '*.h')
uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h')
clang-format -i --style=format $(git ls-files '*.c' '*.h')
2020-02-13 22:07:21 +01:00
Ondřej Surý
f50b1e0685
Use clang-format to reformat the source files
2020-02-12 15:04:17 +01:00
Ondřej Surý
78d0cb0a7d
Use coccinelle to remove explicit '#include <config.h>' from the source files
2019-03-08 15:15:05 +01:00
Ondřej Surý
62fb0759e9
Assume always working getaddrinfo/getnameinfo implemenation
2018-08-28 10:31:48 +02:00
Ondřej Surý
8c526df306
Remove support for legacy systems without sin6_scope_id
2018-08-28 10:31:48 +02:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
cb6a185c69
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
2018-08-08 09:37:28 +02:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Evan Hunt
114f95089c
[master] cleanup strcat/strcpy
...
4722. [cleanup] Clean up uses of strcpy() and strcat() in favor of
strlcpy() and strlcat() for safety. [RT #45981 ]
2017-09-13 00:14:37 -07:00
Tinderbox User
f4eb664ce3
update copyright notice / whitespace
2017-08-09 23:47:50 +00:00
Evan Hunt
cdacec1dcb
[master] silence gcc 7 warnings
...
4673. [port] Silence GCC 7 warnings. [RT #45592 ]
2017-08-09 00:17:44 -07:00
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Tinderbox User
c110d61b17
update copyright notice / whitespace
2015-01-20 23:45:26 +00:00
Evan Hunt
11463c0ac2
[master] clean up gcc -Wshadow warnings
...
4039. [cleanup] Cleaned up warnings from gcc -Wshadow. [RT #37381 ]
2015-01-20 13:29:18 -08:00
Tinderbox User
1124950b35
update copyright notice
2014-02-12 23:46:27 +00:00
Evan Hunt
842a3e6d0e
[master] try multiple addresses per server name in nsupdate
...
3736. [bug] nsupdate: When specifying a server by name,
fall back to alternate addresses if the first
address for that name is not reachable. [RT #25784 ]
2014-02-11 21:29:10 -08:00
Automatic Updater
70e5a7403f
update copyright notice
2007-06-19 23:47:24 +00:00
Automatic Updater
ec5347e2c7
update copyright notice
2007-06-18 23:47:57 +00:00
Mark Andrews
216030f284
1930. [port] HPUX: ia64 support. [RT #15473 ]
...
1929. [port] FreeBSD: extend use of PTHREAD_SCOPE_SYSTEM.
2005-10-14 01:18:47 +00:00
Mark Andrews
69fe9aaafd
update copyright notice
2005-04-29 00:24:12 +00:00
Rob Austein
ab023a6556
1851. [doc] Doxygen comment markup. [RT #11398 ]
2005-04-27 04:57:32 +00:00
Mark Andrews
ffcbf9ea91
silence compiler warnings
2004-09-16 01:01:27 +00:00
Tatuya JINMEI 神明達哉
ec3f1d3517
1629. [func] dig now supports IPv6 scoped addresses with the
...
extended format in the local-server part. [RT #8753 ]
2004-05-15 03:37:34 +00:00
Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
ad430189fb
1560. [port] FreeBSD: work around FreeBSD 5.2 mapping EAI_NODATA
...
and EAI_NONAME to the same value.
2004-01-14 20:23:53 +00:00
Mark Andrews
d457997b3b
AI_ADDRCONFIG is not allowed by the old getaddinfo() spec. Try with
...
then without AI_ADDRCONFIG if the former faile with BADFLAGS.
2002-12-20 04:10:03 +00:00
Mark Andrews
2ee2c1be18
EAI_NODATA is platform dependent.
2002-07-29 00:35:17 +00:00
Mark Andrews
38ded52dbb
Handle OS's with incomplete API's
2002-06-06 00:55:48 +00:00
Mark Andrews
c3184b4e2a
1219. [bug] Set AI_ADDRCONFIG when looking up addresses
...
via getaddrinfo() (affects dig, host, nslookup, rndc
and nsupdate).
2002-06-06 00:27:37 +00:00
Brian Wellington
db0e722d83
oops, remove the other call to freehostent()
2001-11-16 06:48:22 +00:00
Brian Wellington
d972554740
mismatched parens, missing failure return, remove incorrect use of
...
freehostent() [RT #2075 ]
2001-11-16 04:41:58 +00:00
Brian Wellington
00c8cf21f0
simplify #ifdef mess
2001-11-15 01:29:42 +00:00
Andreas Gustafsson
20c21edada
deal with the NO_DATA/NO_ADDRESS mess using a bunch
...
of #ifs and #ifdefs, as recommended by Mark
2001-11-15 01:20:16 +00:00
Andreas Gustafsson
06364bcf06
did not compile on systems lacking getaddrinfo() due to typos
2001-11-15 00:58:00 +00:00
Andreas Gustafsson
a79f12ba46
remove NO_ADDRESS, not NO_DATA
2001-11-15 00:53:05 +00:00
Andreas Gustafsson
78f0b08d54
duplicate switch case on systems defining NO_ADDRESS and NO_DATA with the same value
2001-11-15 00:51:10 +00:00
Brian Wellington
0f1938c982
set ai_socktype in the hints to getaddrinfo, so that the result doesn't
...
contain duplicate addresses.
2001-11-14 23:03:42 +00:00
Brian Wellington
b493dfe8bc
Add bind9_getaddresses(), a consistent version of the get_address function
...
from dig/host/nslookup, nsupdate, and rndc. This should make it
easier to have the various programs support multiple addresses for a hostname.
2001-11-14 22:08:38 +00:00