]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/missing_*.h: add asserts that the values are as expected
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Mar 2024 14:22:31 +0000 (15:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2024 11:26:16 +0000 (12:26 +0100)
commit4d6437d33c45c3d31497f2e3bd8d415f775546b8
treeec9911eaad2bc35b412df3bd9fc163742f7607b5
parent7258971b13a44d64431afbd55f0b835a43f817d8
basic/missing_*.h: add asserts that the values are as expected

It's great that we provide fallback values, but if we got one of those wrong,
it could be a long time before anyone noticed. So let's add asserts that the
our internal defines actually match the official ones, when the latter are
available.

I did not add '#include "macro.h"' to missing_{audit,capability}, because
those are processed by an awk script that would need additional include
directories and could be confused by the additional lines. We don't include
those headers standalone anyway, so this is not necessary anyway.
17 files changed:
src/basic/missing_audit.h
src/basic/missing_capability.h
src/basic/missing_drm.h
src/basic/missing_fs.h
src/basic/missing_input.h
src/basic/missing_ioprio.h
src/basic/missing_keyctl.h
src/basic/missing_loop.h
src/basic/missing_magic.h
src/basic/missing_mman.h
src/basic/missing_mount.h
src/basic/missing_prctl.h
src/basic/missing_random.h
src/basic/missing_resource.h
src/basic/missing_sched.h
src/basic/missing_timerfd.h
src/basic/missing_wait.h