aboutsummaryrefslogtreecommitdiffstats
path: root/build/sysincl/libc-to-musl.yml
blob: 810dd8d69791b0156299a8cdf90a2b129399f91f (plain) (blame)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# libc & stl common headers should be resolved to either
# * system libc   (e.g. nothing in our repo)
# * system libc++ (e.g. nothing in our repo)
# * libcxx
# * musl
# or some combination of them depending on the build flags.

# Musl has some internal header replacements. We will just resolve to both.
- source_filter: "^(contrib/libs/musl|contrib/libs/cxxsupp/libcxx/include/__config)"
  includes:
  - arpa/inet.h:
    - contrib/libs/musl/include/arpa/inet.h
    - contrib/libs/musl/src/include/arpa/inet.h
  - crypt.h:
    - contrib/libs/musl/include/crypt.h
    - contrib/libs/musl/src/include/crypt.h
  - errno.h:
    - contrib/libs/musl/include/errno.h
    - contrib/libs/musl/src/include/errno.h
  - features.h:
    - contrib/libs/musl/include/features.h
    - contrib/libs/musl/src/include/features.h
  - langinfo.h:
    - contrib/libs/musl/include/langinfo.h
    - contrib/libs/musl/src/include/langinfo.h
  - pthread.h:
    - contrib/libs/musl/include/pthread.h
    - contrib/libs/musl/src/include/pthread.h
  - resolv.h:
    - contrib/libs/musl/include/resolv.h
    - contrib/libs/musl/src/include/resolv.h
  - signal.h:
    - contrib/libs/musl/include/signal.h
    - contrib/libs/musl/src/include/signal.h
  - stdio.h:
    - contrib/libs/musl/include/stdio.h
    - contrib/libs/musl/src/include/stdio.h
  - stdlib.h:
    - contrib/libs/musl/include/stdlib.h
    - contrib/libs/musl/src/include/stdlib.h
  - string.h:
    - contrib/libs/musl/include/string.h
    - contrib/libs/musl/src/include/string.h
  - sys/auxv.h:
    - contrib/libs/musl/include/sys/auxv.h
    - contrib/libs/musl/src/include/sys/auxv.h
  - sys/membarrier.h:
    - contrib/libs/musl/include/sys/membarrier.h
    - contrib/libs/musl/src/include/sys/membarrier.h
  - sys/mman.h:
    - contrib/libs/musl/include/sys/mman.h
    - contrib/libs/musl/src/include/sys/mman.h
  - sys/sysinfo.h:
    - contrib/libs/musl/include/sys/sysinfo.h
    - contrib/libs/musl/src/include/sys/sysinfo.h
  - sys/time.h:
    - contrib/libs/musl/include/sys/time.h
    - contrib/libs/musl/src/include/sys/time.h
  - time.h:
    - contrib/libs/musl/include/time.h
    - contrib/libs/musl/src/include/time.h
  - unistd.h:
    - contrib/libs/musl/include/unistd.h
    - contrib/libs/musl/src/include/unistd.h
  - wchar.h:
    - contrib/libs/musl/include/wchar.h
    - contrib/libs/musl/src/include/wchar.h

  - inttypes.h:             contrib/libs/musl/include/inttypes.h
  - stddef.h:               contrib/libs/musl/include/stddef.h
  - stdint.h:               contrib/libs/musl/include/stdint.h


# We want musl to resolve itself without these sysincls, but its test must have them
- source_filter: "^(?!contrib/libs/musl)|^contrib/libs/musl/tests"
  includes:
  # libc & stl common headers
  - complex.h:              contrib/libs/musl/include/complex.h
  - ctype.h:                contrib/libs/musl/include/ctype.h
  - errno.h:                contrib/libs/musl/include/errno.h
  - float.h:                contrib/libs/musl/include/float.h
  - inttypes.h:             contrib/libs/musl/include/inttypes.h
  - limits.h:               contrib/libs/musl/include/limits.h
  - locale.h:               contrib/libs/musl/include/locale.h
  - math.h:                 contrib/libs/musl/include/math.h
  - setjmp.h:               contrib/libs/musl/include/setjmp.h
  - stdbool.h:              contrib/libs/musl/include/stdbool.h
  - stddef.h:               contrib/libs/musl/include/stddef.h
  - stdint.h:               contrib/libs/musl/include/stdint.h
  - stdio.h:                contrib/libs/musl/include/stdio.h
  - stdlib.h:               contrib/libs/musl/include/stdlib.h
  - string.h:               contrib/libs/musl/include/string.h
  - tgmath.h:               contrib/libs/musl/include/tgmath.h
  - threads.h:              contrib/libs/musl/include/threads.h
  - wchar.h:                contrib/libs/musl/include/wchar.h
  - wctype.h:               contrib/libs/musl/include/wctype.h

  # Rest of libc headers
  - aio.h:                  contrib/libs/musl/include/aio.h
  - alloca.h:               contrib/libs/musl/include/alloca.h
  - ar.h:                   contrib/libs/musl/include/ar.h
  - arpa/inet.h:            contrib/libs/musl/include/arpa/inet.h
  - arpa/nameser_compat.h:  contrib/libs/musl/include/arpa/nameser_compat.h
  - arpa/nameser.h:         contrib/libs/musl/include/arpa/nameser.h
  - arpa/telnet.h:          contrib/libs/musl/include/arpa/telnet.h
  - arpa/tftp.h:            contrib/libs/musl/include/arpa/tftp.h
  - assert.h:               contrib/libs/musl/include/assert.h
  - byteswap.h:             contrib/libs/musl/include/byteswap.h
  - cpio.h:                 contrib/libs/musl/include/cpio.h
  - crypt.h:                contrib/libs/musl/include/crypt.h
  - dirent.h:               contrib/libs/musl/include/dirent.h
  - dlfcn.h:                contrib/libs/musl/include/dlfcn.h
  - elf.h:                  contrib/libs/musl/include/elf.h
  - endian.h:               contrib/libs/musl/include/endian.h
  - err.h:                  contrib/libs/musl/include/err.h
  - fcntl.h:                contrib/libs/musl/include/fcntl.h
  - features.h:             contrib/libs/musl/include/features.h
  - fenv.h:                 contrib/libs/musl/include/fenv.h
  - fmtmsg.h:               contrib/libs/musl/include/fmtmsg.h
  - fnmatch.h:              contrib/libs/musl/include/fnmatch.h
  - ftw.h:                  contrib/libs/musl/include/ftw.h
  - getopt.h:               contrib/libs/musl/include/getopt.h
  - glob.h:                 contrib/libs/musl/include/glob.h
  - grp.h:                  contrib/libs/musl/include/grp.h
  - iconv.h:                contrib/libs/musl/include/iconv.h
  - ifaddrs.h:              contrib/libs/musl/include/ifaddrs.h
  - iso646.h:               contrib/libs/musl/include/iso646.h
  - langinfo.h:             contrib/libs/musl/include/langinfo.h
  - lastlog.h:              contrib/libs/musl/include/lastlog.h
  - libgen.h:               contrib/libs/musl/include/libgen.h
  - libintl.h:              contrib/libs/musl/include/libintl.h
  - link.h:                 contrib/libs/musl/include/link.h
  - malloc.h:               contrib/libs/musl/include/malloc.h
  - memory.h:               contrib/libs/musl/include/memory.h
  - mntent.h:               contrib/libs/musl/include/mntent.h
  - monetary.h:             contrib/libs/musl/include/monetary.h
  - mqueue.h:               contrib/libs/musl/include/mqueue.h
  - netdb.h:                contrib/libs/musl/include/netdb.h
  - net/ethernet.h:         contrib/libs/musl/include/net/ethernet.h
  - net/if_arp.h:           contrib/libs/musl/include/net/if_arp.h
  - net/if.h:               contrib/libs/musl/include/net/if.h
  - netinet/ether.h:        contrib/libs/musl/include/netinet/ether.h
  - netinet/icmp6.h:        contrib/libs/musl/include/netinet/icmp6.h
  - netinet/if_ether.h:     contrib/libs/musl/include/netinet/if_ether.h
  - netinet/igmp.h:         contrib/libs/musl/include/netinet/igmp.h
  - netinet/in.h:           contrib/libs/musl/include/netinet/in.h
  - netinet/in_systm.h:     contrib/libs/musl/include/netinet/in_systm.h
  - netinet/ip6.h:          contrib/libs/musl/include/netinet/ip6.h
  - netinet/ip.h:           contrib/libs/musl/include/netinet/ip.h
  - netinet/ip_icmp.h:      contrib/libs/musl/include/netinet/ip_icmp.h
  - netinet/tcp.h:          contrib/libs/musl/include/netinet/tcp.h
  - netinet/udp.h:          contrib/libs/musl/include/netinet/udp.h
  - netpacket/packet.h:     contrib/libs/musl/include/netpacket/packet.h
  - net/route.h:            contrib/libs/musl/include/net/route.h
  - nl_types.h:             contrib/libs/musl/include/nl_types.h
  - paths.h:                contrib/libs/musl/include/paths.h
  - poll.h:                 contrib/libs/musl/include/poll.h
  - pthread.h:              contrib/libs/musl/include/pthread.h
  - pty.h:                  contrib/libs/musl/include/pty.h
  - pwd.h:                  contrib/libs/musl/include/pwd.h
  - regex.h:                contrib/libs/musl/include/regex.h
  - resolv.h:               contrib/libs/musl/include/resolv.h
  - sched.h:                contrib/libs/musl/include/sched.h
  - scsi/scsi.h:            contrib/libs/musl/include/scsi/scsi.h
  - search.h:               contrib/libs/musl/include/search.h
  - semaphore.h:            contrib/libs/musl/include/semaphore.h
  - shadow.h:               contrib/libs/musl/include/shadow.h
  - signal.h:               contrib/libs/musl/include/signal.h
  - spawn.h:                contrib/libs/musl/include/spawn.h
  - stdalign.h:             contrib/libs/musl/include/stdalign.h
  - stdarg.h:               contrib/libs/musl/include/stdarg.h
  - stdio_ext.h:            contrib/libs/musl/include/stdio_ext.h
  - stdnoreturn.h:          contrib/libs/musl/include/stdnoreturn.h
  - strings.h:              contrib/libs/musl/include/strings.h
  - stropts.h:              contrib/libs/musl/include/stropts.h
  - sys/acct.h:             contrib/libs/musl/include/sys/acct.h
  - sys/auxv.h:             contrib/libs/musl/include/sys/auxv.h
  - sys/cachectl.h:         contrib/libs/musl/include/sys/cachectl.h
  - syscall.h:              contrib/libs/musl/include/syscall.h
  - sys/dir.h:              contrib/libs/musl/include/sys/dir.h
  - sys/epoll.h:            contrib/libs/musl/include/sys/epoll.h
  - sys/errno.h:            contrib/libs/musl/include/sys/errno.h
  - sys/eventfd.h:          contrib/libs/musl/include/sys/eventfd.h
  - sysexits.h:             contrib/libs/musl/include/sysexits.h
  - sys/fcntl.h:            contrib/libs/musl/include/sys/fcntl.h
  - sys/file.h:             contrib/libs/musl/include/sys/file.h
  - sys/fsuid.h:            contrib/libs/musl/include/sys/fsuid.h
  - sys/inotify.h:          contrib/libs/musl/include/sys/inotify.h
  - sys/ioctl.h:            contrib/libs/musl/include/sys/ioctl.h
  - sys/io.h:               contrib/libs/musl/include/sys/io.h
  - sys/ipc.h:              contrib/libs/musl/include/sys/ipc.h
  - sys/kd.h:               contrib/libs/musl/include/sys/kd.h
  - syslog.h:               contrib/libs/musl/include/syslog.h
  - sys/mman.h:             contrib/libs/musl/include/sys/mman.h
  - sys/mount.h:            contrib/libs/musl/include/sys/mount.h
  - sys/msg.h:              contrib/libs/musl/include/sys/msg.h
  - sys/mtio.h:             contrib/libs/musl/include/sys/mtio.h
  - sys/param.h:            contrib/libs/musl/include/sys/param.h
  - sys/personality.h:      contrib/libs/musl/include/sys/personality.h
  - sys/poll.h:             contrib/libs/musl/include/sys/poll.h
  - sys/prctl.h:            contrib/libs/musl/include/sys/prctl.h
  - sys/procfs.h:           contrib/libs/musl/include/sys/procfs.h
  - sys/ptrace.h:           contrib/libs/musl/include/sys/ptrace.h
  - sys/quota.h:            contrib/libs/musl/include/sys/quota.h
  - sys/random.h:           contrib/libs/musl/include/sys/random.h
  - sys/reboot.h:           contrib/libs/musl/include/sys/reboot.h
  - sys/resource.h:         contrib/libs/musl/include/sys/resource.h
  - sys/select.h:           contrib/libs/musl/include/sys/select.h
  - sys/sem.h:              contrib/libs/musl/include/sys/sem.h
  - sys/sendfile.h:         contrib/libs/musl/include/sys/sendfile.h
  - sys/shm.h:              contrib/libs/musl/include/sys/shm.h
  - sys/signalfd.h:         contrib/libs/musl/include/sys/signalfd.h
  - sys/signal.h:           contrib/libs/musl/include/sys/signal.h
  - sys/socket.h:           contrib/libs/musl/include/sys/socket.h
  - sys/soundcard.h:        contrib/libs/musl/include/sys/soundcard.h
  - sys/statfs.h:           contrib/libs/musl/include/sys/statfs.h
  - sys/stat.h:             contrib/libs/musl/include/sys/stat.h
  - sys/statvfs.h:          contrib/libs/musl/include/sys/statvfs.h
  - sys/stropts.h:          contrib/libs/musl/include/sys/stropts.h
  - sys/syscall.h:          contrib/libs/musl/include/sys/syscall.h
  - sys/sysinfo.h:          contrib/libs/musl/include/sys/sysinfo.h
  - sys/syslog.h:           contrib/libs/musl/include/sys/syslog.h
  - sys/sysmacros.h:        contrib/libs/musl/include/sys/sysmacros.h
  - sys/termios.h:          contrib/libs/musl/include/sys/termios.h
  - sys/timeb.h:            contrib/libs/musl/include/sys/timeb.h
  - sys/time.h:             contrib/libs/musl/include/sys/time.h
  - sys/timerfd.h:          contrib/libs/musl/include/sys/timerfd.h
  - sys/times.h:            contrib/libs/musl/include/sys/times.h
  - sys/timex.h:            contrib/libs/musl/include/sys/timex.h
  - sys/ttydefaults.h:      contrib/libs/musl/include/sys/ttydefaults.h
  - sys/types.h:            contrib/libs/musl/include/sys/types.h
  - sys/ucontext.h:         contrib/libs/musl/include/sys/ucontext.h
  - sys/uio.h:              contrib/libs/musl/include/sys/uio.h
  - sys/un.h:               contrib/libs/musl/include/sys/un.h
  - sys/user.h:             contrib/libs/musl/include/sys/user.h
  - sys/utsname.h:          contrib/libs/musl/include/sys/utsname.h
  - sys/vfs.h:              contrib/libs/musl/include/sys/vfs.h
  - sys/vt.h:               contrib/libs/musl/include/sys/vt.h
  - sys/wait.h:             contrib/libs/musl/include/sys/wait.h
  - sys/xattr.h:            contrib/libs/musl/include/sys/xattr.h
  - tar.h:                  contrib/libs/musl/include/tar.h
  - termios.h:              contrib/libs/musl/include/termios.h
  - threads.h:              contrib/libs/musl/include/threads.h
  - time.h:                 contrib/libs/musl/include/time.h
  - uchar.h:                contrib/libs/musl/include/uchar.h
  - ucontext.h:             contrib/libs/musl/include/ucontext.h
  - ulimit.h:               contrib/libs/musl/include/ulimit.h
  - unistd.h:               contrib/libs/musl/include/unistd.h
  - utime.h:                contrib/libs/musl/include/utime.h
  - utmp.h:                 contrib/libs/musl/include/utmp.h
  - utmpx.h:                contrib/libs/musl/include/utmpx.h
  - values.h:               contrib/libs/musl/include/values.h
  - wait.h:                 contrib/libs/musl/include/wait.h
  - wordexp.h:              contrib/libs/musl/include/wordexp.h