1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
if disable_linux_option
subdir_done()
endif
libc_sources += files(
'generic/mntent-stubs.cpp',
'generic/pty-stubs.cpp',
'generic/sys-epoll.cpp',
'generic/sys-inotify-stubs.cpp',
'generic/sys-mount.cpp',
'generic/sys-prctl-stubs.cpp',
'generic/sys-ptrace-stubs.cpp',
'generic/sys-random-stubs.cpp',
'generic/sys-sendfile-stubs.cpp',
'generic/sys-signalfd.cpp',
'generic/sys-timerfd.cpp',
'generic/sys-eventfd.cpp',
'generic/sys-reboot.cpp',
'generic/sys-xattr.cpp',
'generic/utmp-stubs.cpp',
'generic/utmpx.cpp',
'generic/linux-unistd.cpp',
'generic/malloc.cpp',
'generic/sys-fsuid.cpp',
'generic/ifaddrs.cpp',
'generic/sys-sysinfo.cpp',
'generic/module.cpp',
'generic/sys-klog.cpp',
'generic/sched.cpp',
'generic/sys-quota.cpp',
'generic/capabilities.cpp',
'generic/cpuset.cpp',
'generic/sys-swap.cpp',
'generic/sys-statfs-stubs.cpp',
)
if not no_headers
install_headers(
'include/ifaddrs.h',
'include/malloc.h',
'include/memory.h',
'include/mntent.h',
'include/pty.h',
'include/utmp.h',
'include/utmpx.h',
'include/values.h',
'include/lastlog.h',
'include/module.h',
)
install_headers(
'include/bits/linux/linux_unistd.h',
'include/bits/linux/linux_sched.h',
'include/bits/linux/cpu_set.h',
subdir: 'bits/linux'
)
install_headers(
'include/netpacket/packet.h',
subdir: 'netpacket'
)
# libc provides these, not the kernel, so the Linux option shall provide them too.
install_headers(
'include/scsi/scsi.h',
'include/scsi/scsi_ioctl.h',
'include/scsi/sg.h',
subdir: 'scsi'
)
install_headers(
'include/sys/epoll.h',
'include/sys/inotify.h',
'include/sys/mount.h',
'include/sys/prctl.h',
'include/sys/ptrace.h',
'include/sys/random.h',
'include/sys/sendfile.h',
'include/sys/signalfd.h',
'include/sys/sysmacros.h',
'include/sys/timerfd.h',
'include/sys/eventfd.h',
'include/sys/reboot.h',
'include/sys/fsuid.h',
'include/sys/vt.h',
'include/sys/sysinfo.h',
'include/sys/klog.h',
'include/sys/xattr.h',
'include/sys/quota.h',
'include/sys/swap.h',
'include/sys/statfs.h',
'include/sys/vfs.h',
subdir: 'sys'
)
install_headers(
'include/linux/libc-compat.h',
subdir: 'linux'
)
endif
|