opnsense-src/usr.bin/sort
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 Update Makefile.depend files 2024-10-14 10:26:17 -07:00
bwstring.c sort: Only build FreeBSD-specific ALTMON_x stuff when ATLMON_1 is defined 2023-12-07 13:42:52 -07:00
bwstring.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
coll.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
coll.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
file.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
file.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile src: Use gnu17 as the default C standard for userland instead of gnu99 2025-02-11 09:16:25 -05: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
mem.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
mem.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
radixsort.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
radixsort.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
sort.1.in sort: test against all month formats in month-sort 2023-12-01 02:30:10 +02:00
sort.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
sort.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
vsort.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
vsort.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00