Michał Kępień
c3cfdb9670
Refactor lib/isc/fsaccess.c
...
Turn the static check_bad_bits() function used by both Unix and Windows
systems into a "private" function and extract the "private" parts of
lib/isc/fsaccess.c to lib/isc/fsaccess_common_p.h. Instead of including
lib/isc/fsaccess.c from lib/isc/{unix,win32}/fsaccess.c, make the former
an independent C source file.
Rename lib/isc/fsaccess.c to lib/isc/fsaccess_common.c to prevent build
issues on Windows caused by multiple source files (lib/isc/fsaccess.c,
lib/isc/win32/fsaccess.c) being compiled into the same object file.
These changes improve consistency with the way "private" functions and
macros are treated elsewhere in the source tree.
2020-06-05 13:19:49 +02:00
Evan Hunt
68a1c9d679
change 'expr == true' to 'expr' in conditionals
2020-05-25 16:09:57 -07:00
Ondřej Surý
3178974f0c
Use the new sorting rules to regroup #include headers
2020-03-09 16:19:22 +01: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ý
b2b43fd235
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
2018-11-08 12:21:53 +07: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ý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Ondřej Surý
5311a3b7b5
We use too old Visual Compiler to use scoped variables
2018-04-12 10:37:33 +02:00
Ondřej Surý
11f26b42e3
Replace all usage of non-reentrant strtok() with strtok_r()
2018-04-12 10:37:33 +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
Mark Andrews
cb629cdeda
more str{n}{cat,cpy} corrections rt45981_stage2
2017-09-14 18:11:56 +10:00
Tinderbox User
33987cb5fd
update copyright notice / whitespace
2017-09-13 23:48:32 +00:00
Mark Andrews
4c9ba9ded8
add #include <isc/string.h>
2017-09-13 23:43:43 +10: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
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Tinderbox User
313b0ea9f2
update copyright notice
2013-03-23 23:46:06 +00:00
Mark Andrews
bbb3705e4c
3535. [bug] Minor win32 cleanups. [RT #32962 ]
2013-03-22 22:23:48 +11: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
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
a7038d1a05
copyrights
2002-02-20 03:35:59 +00:00
Danny Mayer
c6d29fbd5f
Added isc_fsaccess_changeowner function similar to the code to set file access attributes
2002-02-02 01:01:15 +00:00
Danny Mayer
5c4e92b973
Added support for NTFS disks
2001-11-13 05:07:57 +00:00
Andreas Gustafsson
e76d4c91bf
coding style
2001-07-09 21:06:30 +00:00
Danny Mayer
e35c1bb3ec
Initial win32 Release
2001-07-06 05:08:39 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
David Lawrence
49dbdb0186
update_copyrights
2000-06-21 22:05:07 +00:00
David Lawrence
a904de0bc8
OS-independent filesystem permissions
2000-06-20 04:06:01 +00:00