opnsense-src/libexec/tftpd
Minsoo Choo ca4eddea97 src: Use gnu17 as the default C standard for userland instead of gnu99
Tracking newer versions of C (and C++) permits assuming newer language
features in the base system.  Some C11 extensions are already used in
the base system but implemented on top of GNU C extensions such as
_Alignas and _Static_assert.  In some cases the fallback versions in
cdefs.h are more limited than the native C11 extensions.

Even though C11 is the next major version of C, C17 is chosen instead
since C17 does not add new features to C but merely fixes defects in
C11.  It is also well supported by a wide range of clang (7.0.0+) and
GCC (8.1+) versions.

Along with changing the default, this change also removes explicit
requests for c11 via the CSTD variable in various Makefiles.

Libraries and binaries for ZFS continue to use c99.

PR:		284039 (exp-run)
Reviewed by:	imp, arichardson, emaste
Differential Revision:	https://reviews.freebsd.org/D43237
2025-02-11 09:16:25 -05:00
..
tests src: Use gnu17 as the default C standard for userland instead of gnu99 2025-02-11 09:16:25 -05:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tftp-file.c libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tftp-file.h tftpd: Drop unneeded includes. 2024-05-10 23:16:26 +02:00
tftp-io.c tftpd: Satisfy clang-analyzer. 2024-05-10 23:16:26 +02:00
tftp-io.h tftpd: Drop unneeded includes. 2024-05-10 23:16:26 +02:00
tftp-options.c libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tftp-options.h tftpd: Drop unneeded includes. 2024-05-10 23:16:26 +02:00
tftp-transfer.c libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tftp-transfer.h tftpd: Drop unneeded includes. 2024-05-10 23:16:26 +02:00
tftp-utils.c tftpd: Satisfy clang-analyzer. 2024-05-10 23:16:26 +02:00
tftp-utils.h tftpd: Satisfy clang-analyzer. 2024-05-10 23:16:26 +02:00
tftpd.8 tftpd: Address flaky tests 2024-11-03 16:47:38 +00:00
tftpd.c tftpd: Address flaky tests 2024-11-03 16:47:38 +00:00