]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
include: move libc header wrappers to src/include/override/, and kernel headers to...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 6 Jul 2025 03:19:26 +0000 (12:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 03:44:26 +0000 (12:44 +0900)
Preparation for later changes.

108 files changed:
man/meson.build
meson.build
src/basic/meson.build
src/include/override/fcntl.h [moved from src/basic/include/fcntl.h with 100% similarity]
src/include/override/malloc.h [moved from src/basic/include/malloc.h with 100% similarity]
src/include/override/net/if.h [moved from src/basic/include/net/if.h with 100% similarity]
src/include/override/net/if_arp.h [moved from src/basic/include/net/if_arp.h with 100% similarity]
src/include/override/netinet/in.h [moved from src/basic/include/netinet/in.h with 100% similarity]
src/include/override/sched.h [moved from src/basic/include/sched.h with 100% similarity]
src/include/override/sys/mman.h [moved from src/basic/include/sys/mman.h with 100% similarity]
src/include/override/sys/mount.h [moved from src/basic/include/sys/mount.h with 100% similarity]
src/include/override/sys/param.h [moved from src/basic/include/sys/param.h with 100% similarity]
src/include/override/sys/pidfd.h [moved from src/basic/include/sys/pidfd.h with 100% similarity]
src/include/override/sys/random.h [moved from src/basic/include/sys/random.h with 100% similarity]
src/include/override/sys/socket.h [moved from src/basic/include/sys/socket.h with 100% similarity]
src/include/override/sys/wait.h [moved from src/basic/include/sys/wait.h with 100% similarity]
src/include/override/sys/xattr.h [moved from src/basic/include/sys/xattr.h with 100% similarity]
src/include/uapi/linux/.clang-format [moved from src/basic/include/linux/.clang-format with 100% similarity]
src/include/uapi/linux/auto_dev-ioctl.h [moved from src/basic/include/linux/auto_dev-ioctl.h with 100% similarity]
src/include/uapi/linux/auto_fs.h [moved from src/basic/include/linux/auto_fs.h with 100% similarity]
src/include/uapi/linux/batman_adv.h [moved from src/basic/include/linux/batman_adv.h with 100% similarity]
src/include/uapi/linux/bpf.h [moved from src/basic/include/linux/bpf.h with 100% similarity]
src/include/uapi/linux/bpf_common.h [moved from src/basic/include/linux/bpf_common.h with 100% similarity]
src/include/uapi/linux/bpf_insn.h [moved from src/basic/include/linux/bpf_insn.h with 100% similarity]
src/include/uapi/linux/btrfs.h [moved from src/basic/include/linux/btrfs.h with 100% similarity]
src/include/uapi/linux/btrfs_tree.h [moved from src/basic/include/linux/btrfs_tree.h with 100% similarity]
src/include/uapi/linux/can/netlink.h [moved from src/basic/include/linux/can/netlink.h with 100% similarity]
src/include/uapi/linux/can/vxcan.h [moved from src/basic/include/linux/can/vxcan.h with 100% similarity]
src/include/uapi/linux/capability.h [moved from src/basic/include/linux/capability.h with 100% similarity]
src/include/uapi/linux/cfm_bridge.h [moved from src/basic/include/linux/cfm_bridge.h with 100% similarity]
src/include/uapi/linux/const.h [moved from src/basic/include/linux/const.h with 100% similarity]
src/include/uapi/linux/dm-ioctl.h [moved from src/basic/include/linux/dm-ioctl.h with 100% similarity]
src/include/uapi/linux/ethtool.h [moved from src/basic/include/linux/ethtool.h with 100% similarity]
src/include/uapi/linux/fib_rules.h [moved from src/basic/include/linux/fib_rules.h with 100% similarity]
src/include/uapi/linux/filter.h [moved from src/basic/include/linux/filter.h with 100% similarity]
src/include/uapi/linux/fou.h [moved from src/basic/include/linux/fou.h with 100% similarity]
src/include/uapi/linux/fs.h [moved from src/basic/include/linux/fs.h with 100% similarity]
src/include/uapi/linux/fscrypt.h [moved from src/basic/include/linux/fscrypt.h with 100% similarity]
src/include/uapi/linux/fsverity.h [moved from src/basic/include/linux/fsverity.h with 100% similarity]
src/include/uapi/linux/genetlink.h [moved from src/basic/include/linux/genetlink.h with 100% similarity]
src/include/uapi/linux/hdlc/ioctl.h [moved from src/basic/include/linux/hdlc/ioctl.h with 100% similarity]
src/include/uapi/linux/hid.h [moved from src/basic/include/linux/hid.h with 100% similarity]
src/include/uapi/linux/hidraw.h [moved from src/basic/include/linux/hidraw.h with 100% similarity]
src/include/uapi/linux/if.h [moved from src/basic/include/linux/if.h with 100% similarity]
src/include/uapi/linux/if_addr.h [moved from src/basic/include/linux/if_addr.h with 100% similarity]
src/include/uapi/linux/if_addrlabel.h [moved from src/basic/include/linux/if_addrlabel.h with 100% similarity]
src/include/uapi/linux/if_arp.h [moved from src/basic/include/linux/if_arp.h with 100% similarity]
src/include/uapi/linux/if_bonding.h [moved from src/basic/include/linux/if_bonding.h with 100% similarity]
src/include/uapi/linux/if_bridge.h [moved from src/basic/include/linux/if_bridge.h with 100% similarity]
src/include/uapi/linux/if_ether.h [moved from src/basic/include/linux/if_ether.h with 100% similarity]
src/include/uapi/linux/if_infiniband.h [moved from src/basic/include/linux/if_infiniband.h with 100% similarity]
src/include/uapi/linux/if_link.h [moved from src/basic/include/linux/if_link.h with 100% similarity]
src/include/uapi/linux/if_macsec.h [moved from src/basic/include/linux/if_macsec.h with 100% similarity]
src/include/uapi/linux/if_packet.h [moved from src/basic/include/linux/if_packet.h with 100% similarity]
src/include/uapi/linux/if_tun.h [moved from src/basic/include/linux/if_tun.h with 100% similarity]
src/include/uapi/linux/if_tunnel.h [moved from src/basic/include/linux/if_tunnel.h with 100% similarity]
src/include/uapi/linux/if_vlan.h [moved from src/basic/include/linux/if_vlan.h with 100% similarity]
src/include/uapi/linux/in.h [moved from src/basic/include/linux/in.h with 100% similarity]
src/include/uapi/linux/in6.h [moved from src/basic/include/linux/in6.h with 100% similarity]
src/include/uapi/linux/input-event-codes.h [moved from src/basic/include/linux/input-event-codes.h with 100% similarity]
src/include/uapi/linux/input.h [moved from src/basic/include/linux/input.h with 100% similarity]
src/include/uapi/linux/ioprio.h [moved from src/basic/include/linux/ioprio.h with 100% similarity]
src/include/uapi/linux/ip.h [moved from src/basic/include/linux/ip.h with 100% similarity]
src/include/uapi/linux/ip6_tunnel.h [moved from src/basic/include/linux/ip6_tunnel.h with 100% similarity]
src/include/uapi/linux/ipv6.h [moved from src/basic/include/linux/ipv6.h with 100% similarity]
src/include/uapi/linux/ipv6_route.h [moved from src/basic/include/linux/ipv6_route.h with 100% similarity]
src/include/uapi/linux/keyctl.h [moved from src/basic/include/linux/keyctl.h with 100% similarity]
src/include/uapi/linux/l2tp.h [moved from src/basic/include/linux/l2tp.h with 100% similarity]
src/include/uapi/linux/libc-compat.h [moved from src/basic/include/linux/libc-compat.h with 100% similarity]
src/include/uapi/linux/limits.h [moved from src/basic/include/linux/limits.h with 100% similarity]
src/include/uapi/linux/loop.h [moved from src/basic/include/linux/loop.h with 100% similarity]
src/include/uapi/linux/magic.h [moved from src/basic/include/linux/magic.h with 100% similarity]
src/include/uapi/linux/mempolicy.h [moved from src/basic/include/linux/mempolicy.h with 100% similarity]
src/include/uapi/linux/mount.h [moved from src/basic/include/linux/mount.h with 100% similarity]
src/include/uapi/linux/mrp_bridge.h [moved from src/basic/include/linux/mrp_bridge.h with 100% similarity]
src/include/uapi/linux/neighbour.h [moved from src/basic/include/linux/neighbour.h with 100% similarity]
src/include/uapi/linux/net_namespace.h [moved from src/basic/include/linux/net_namespace.h with 100% similarity]
src/include/uapi/linux/netdevice.h [moved from src/basic/include/linux/netdevice.h with 100% similarity]
src/include/uapi/linux/netfilter.h [moved from src/basic/include/linux/netfilter.h with 100% similarity]
src/include/uapi/linux/netfilter/nf_conntrack_common.h [moved from src/basic/include/linux/netfilter/nf_conntrack_common.h with 100% similarity]
src/include/uapi/linux/netfilter/nf_conntrack_tuple_common.h [moved from src/basic/include/linux/netfilter/nf_conntrack_tuple_common.h with 100% similarity]
src/include/uapi/linux/netfilter/nf_nat.h [moved from src/basic/include/linux/netfilter/nf_nat.h with 100% similarity]
src/include/uapi/linux/netfilter/nf_tables.h [moved from src/basic/include/linux/netfilter/nf_tables.h with 100% similarity]
src/include/uapi/linux/netfilter/nfnetlink.h [moved from src/basic/include/linux/netfilter/nfnetlink.h with 100% similarity]
src/include/uapi/linux/netfilter/nfnetlink_compat.h [moved from src/basic/include/linux/netfilter/nfnetlink_compat.h with 100% similarity]
src/include/uapi/linux/netfilter/x_tables.h [moved from src/basic/include/linux/netfilter/x_tables.h with 100% similarity]
src/include/uapi/linux/netfilter/xt_addrtype.h [moved from src/basic/include/linux/netfilter/xt_addrtype.h with 100% similarity]
src/include/uapi/linux/netfilter/xt_tcpudp.h [moved from src/basic/include/linux/netfilter/xt_tcpudp.h with 100% similarity]
src/include/uapi/linux/netfilter_ipv4.h [moved from src/basic/include/linux/netfilter_ipv4.h with 100% similarity]
src/include/uapi/linux/netfilter_ipv4/ip_tables.h [moved from src/basic/include/linux/netfilter_ipv4/ip_tables.h with 100% similarity]
src/include/uapi/linux/netlink.h [moved from src/basic/include/linux/netlink.h with 100% similarity]
src/include/uapi/linux/nexthop.h [moved from src/basic/include/linux/nexthop.h with 100% similarity]
src/include/uapi/linux/nl80211.h [moved from src/basic/include/linux/nl80211.h with 100% similarity]
src/include/uapi/linux/pkt_sched.h [moved from src/basic/include/linux/pkt_sched.h with 100% similarity]
src/include/uapi/linux/prctl.h [moved from src/basic/include/linux/prctl.h with 100% similarity]
src/include/uapi/linux/rtnetlink.h [moved from src/basic/include/linux/rtnetlink.h with 100% similarity]
src/include/uapi/linux/sched/types.h [moved from src/basic/include/linux/sched/types.h with 100% similarity]
src/include/uapi/linux/socket.h [moved from src/basic/include/linux/socket.h with 100% similarity]
src/include/uapi/linux/sockios.h [moved from src/basic/include/linux/sockios.h with 100% similarity]
src/include/uapi/linux/stat.h [moved from src/basic/include/linux/stat.h with 100% similarity]
src/include/uapi/linux/stddef.h [moved from src/basic/include/linux/stddef.h with 100% similarity]
src/include/uapi/linux/update.sh [moved from src/basic/include/linux/update.sh with 100% similarity]
src/include/uapi/linux/veth.h [moved from src/basic/include/linux/veth.h with 100% similarity]
src/include/uapi/linux/vm_sockets.h [moved from src/basic/include/linux/vm_sockets.h with 100% similarity]
src/include/uapi/linux/wireguard.h [moved from src/basic/include/linux/wireguard.h with 100% similarity]
src/include/uapi/linux/xattr.h [moved from src/basic/include/linux/xattr.h with 100% similarity]
src/shared/meson.build
src/udev/meson.build

index 15f3fdb34b4764987d196634ae99ab21ecd2993a..4aa9ed237c3a6d38f2ff1c81ab690094ff8fa361 100644 (file)
@@ -38,7 +38,7 @@ man_page_depends += custom_entities_ent
 generate_bpf_delegate_configs = find_program('../src/basic/generate-bpf-delegate-configs.py')
 
 bpf_delegate_xml = custom_target(
-        input : files('../src/basic/include/linux/bpf.h'),
+        input : files('../src/include/uapi/linux/bpf.h'),
         output : 'bpf-delegate.xml',
         command : [generate_bpf_delegate_configs,
                    'doc',
index 6f8397c966b27fd7f3362c875fe50d68eed488e3..8b7809043dbe6936782c86037e531274f6dd0b80 100644 (file)
@@ -2008,16 +2008,25 @@ dbus_programs = []
 # A list of boot stubs. Required for testing of ukify.
 boot_stubs = []
 
+system_includes = [
+        include_directories(
+                # gcc(1) says
+                # "Directories specified with -isystem options are scanned in left-to-right order",
+                # and meson puts the directories in the reversed order. Hence, a directory with a lower
+                # priority must be listed earlier.
+                'src/include/uapi',
+                'src/include/override',
+                is_system : true,
+        ),
+]
+
 basic_includes = [
         include_directories(
                 'src/basic',
                 'src/fundamental',
                 'src/systemd',
         ),
-        include_directories(
-                'src/basic/include',
-                is_system : true,
-        ),
+        system_includes,
         version_include,
 ]
 
index 2627cdb1640716cf2510fb7f8f99d656b737f715..19ed187646ff2b65065426c6b3ffcd092c799974 100644 (file)
@@ -127,19 +127,19 @@ basic_sources += missing_syscall_def_h
 generate_af_list = find_program('generate-af-list.sh')
 af_list_txt = custom_target(
         output : 'af-list.txt',
-        command : [generate_af_list, cpp, files('include/sys/socket.h')],
+        command : [generate_af_list, cpp, files('../include/override/sys/socket.h')],
         capture : true)
 
 generate_arphrd_list = find_program('generate-arphrd-list.sh')
 arphrd_list_txt = custom_target(
         output : 'arphrd-list.txt',
-        command : [generate_arphrd_list, cpp, files('include/linux/if_arp.h')],
+        command : [generate_arphrd_list, cpp, files('../include/uapi/linux/if_arp.h')],
         capture : true)
 
 generate_cap_list = find_program('generate-cap-list.sh')
 cap_list_txt = custom_target(
         output : 'cap-list.txt',
-        command : [generate_cap_list, cpp, files('include/linux/capability.h')],
+        command : [generate_cap_list, cpp, files('../include/uapi/linux/capability.h')],
         capture : true)
 
 generate_errno_list = find_program('generate-errno-list.sh')
@@ -234,7 +234,7 @@ run_target(
 ############################################################
 
 filesystem_includes = files(
-        'include/linux/magic.h',
+        '../include/uapi/linux/magic.h',
         'missing_magic.h',
 )
 
@@ -275,7 +275,7 @@ filesystem_switch_case_inc = custom_target(
 
 generate_bpf_delegate_configs = find_program('generate-bpf-delegate-configs.py')
 bpf_delegate_configs_inc = custom_target(
-        input : files('include/linux/bpf.h'),
+        input : files('../include/uapi/linux/bpf.h'),
         output : 'bpf-delegate-configs.inc',
         command : [generate_bpf_delegate_configs,
                    'code',
index 78e435de350c338677d87b5a3c2b14de48f86f15..94a7eaa469d5d5b4f22103595e3bc6f26c3cdf17 100644 (file)
@@ -296,7 +296,7 @@ shared_sources += [target1, target2]
 
 fname = 'ethtool-link-mode.inc'
 ethtool_link_mode_inc = custom_target(
-        input : ['ethtool-link-mode.py', '../basic/include/linux/ethtool.h'],
+        input : ['ethtool-link-mode.py', '../include/uapi/linux/ethtool.h'],
         output : fname,
         command : [python, '@INPUT0@', '--header', cpp, '@INPUT1@'],
         capture : true)
@@ -307,7 +307,7 @@ sources += shared_sources
 
 fname = 'ethtool-link-mode.xml'
 ethtool_link_mode_xml = custom_target(
-        input : ['ethtool-link-mode.py', '../basic/include/linux/ethtool.h'],
+        input : ['ethtool-link-mode.py', '../include/uapi/linux/ethtool.h'],
         output : fname,
         command : [python, '@INPUT0@', '--xml', cpp, '@INPUT1@'],
         capture : true)
index 34fc42747830c9ee1bbc8eb8f0047f4f2c985937..6b37b669d0ad5741b78fb62121e998777159184f 100644 (file)
@@ -63,7 +63,7 @@ endif
 
 generate_keyboard_keys_list = find_program('generate-keyboard-keys-list.sh')
 keyboard_keys_list_txt = custom_target(
-        input : files('../basic/include/linux/input.h'),
+        input : files('../include/uapi/linux/input.h'),
         output : 'keyboard-keys-list.txt',
         command : [generate_keyboard_keys_list, cpp, '@INPUT@'],
         capture : true)