checkedc/include
David Tarditi 877fc24372 Fix issues related to clang 17 upgrade.
- The name of the system include directory has changed to not
  include the minor version inforamtion.  Update the hacky computation
  of this name for copying the Checked C files to that location.
- FileCheck now complains about unused check-prefix
  arguments when checking test results. This uncovered a bunch
  of errors in our dynamic_checking tests with incorrect check prefixes
  (the test wasn't checking its results properly).
- Clang's defaults have changed, so now a bunch of warnings are now
  errors.  These include things that Checked C complained about
  anyway, such as missing prototypes, incorrect function pointer casts,
  and so on.  The warnings being converted to errors affected some of
  our tests. We included clang's messages because they occurred on the
  same line as our errors.
- A few error messages have change format.
- Disabled the typechecking\no_prototype_functions.c test on Windows.
  It seems to cause the compiler to loop due to some changes in the
  internal representation of types. It might loop on Linux, I haven't
  checked.

Testing results:

Here are the results from running check-checkedc on Windows:
  Unsupported:  6
  Passed     : 82
  Failed     : 11
2024-05-11 21:27:55 -07:00
..
arpa Updates to inet_ntop and inet_pton. 2021-07-01 17:16:46 -04:00
sys Adjust a few header files for Windows 2022-11-29 21:52:11 -08:00
CMakeLists.txt Fix issues related to clang 17 upgrade. 2024-05-11 21:27:55 -07:00
_builtin_common.h Use null-terminated array pointers in checked wrappers for C standard libraries (#229) 2017-11-04 23:05:36 -07:00
_builtin_stdio_checked.h Update code pattern for "v" and "__chk" variants of snprintf again. 2021-07-06 10:43:56 -04:00
_builtin_string_checked.h Add _FORTIFY_SOURCE support for string.h and stdio.h (#234) 2017-11-07 09:47:21 -08:00
assert.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
assert_checked.h Revert formatting changes to declarations that are already in 2021-05-25 12:36:05 -04:00
checkedc_extensions.h Fixes for errors in the "array_ptr" interfaces to some libc functions declared in checkedc_extensions.h, and removal of the conditional in the snprintf declaration in stdio_checked.h (#456) 2021-06-11 14:25:14 -07:00
crypt.h crypt.h shadow.h and mman.h 2021-07-08 13:08:39 -04:00
crypt_checked.h crypt.h shadow.h and mman.h 2021-07-08 13:08:39 -04:00
dirent.h Add checked header for dirent 2021-10-07 16:27:48 -04:00
dirent_checked.h More dirent functions 2021-10-12 12:49:15 -04:00
errno.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
errno_checked.h Fix Checked C tests on Mac OS (#502) 2023-07-18 22:57:44 -07:00
fcntl.h Checked prototype for open 2021-05-10 14:26:23 -04:00
fcntl_checked.h Minor consistency fixes to boilerplate for the new headers. 2021-05-21 14:06:40 -04:00
fenv.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
fenv_checked.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
grp.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
grp_checked.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
inttypes_checked.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
inttypes_checked_internal.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
math.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
math_checked.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
netdb.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
netdb_checked.h Add missing return itype to gethostbyaddr: oops. 2021-07-07 14:32:04 -04:00
poll.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
poll_checked.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
pwd.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
pwd_checked.h Minor changes to {netdb,pwd}_checked.h. 2021-07-06 10:45:16 -04:00
shadow.h crypt.h shadow.h and mman.h 2021-07-08 13:08:39 -04:00
shadow_checked.h crypt.h shadow.h and mman.h 2021-07-08 13:08:39 -04:00
signal.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
signal_checked.h Fix typo in signal_checked.h 2022-11-30 07:22:33 -08:00
stdchecked.h Checked C macro test cases. 2023-05-06 12:40:58 -07:00
stdio.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
stdio_checked.h add a flag to only add typematic changes, or only checked-c or both 2023-11-06 22:35:32 -05:00
stdlib.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
stdlib_checked.h Some minor potential fixes. 2022-11-29 20:52:15 -08:00
string.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
string_checked.h add a flag to only add typematic changes, or only checked-c or both 2023-11-06 22:35:32 -05:00
syslog.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
syslog_checked.h Revisions to syslog_checked.h. 2021-07-06 10:53:07 -04:00
threads.h Change the existing conditional headers to raise an #error if the 2021-05-21 14:05:08 -04:00
threads_checked.h Fix return type of cnd_init. 2021-07-06 11:44:47 -04:00
time.h Implicit include of checked header files (#440) 2021-04-01 07:08:01 -07:00
time_checked.h More checked headers 2021-10-08 17:25:52 -04:00
unistd.h Change the existing conditional headers to raise an #error if the 2021-05-21 14:05:08 -04:00
unistd_checked.h crypt.h shadow.h and mman.h 2021-07-08 13:08:39 -04:00
utime.h Add conditionals to the new headers for which originals aren't available 2021-05-21 14:06:46 -04:00
utime_checked.h Convert leading tabs to spaces to match existing formatting. 2021-05-25 12:29:16 -04:00