libc-to-musl.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. # libc & stl common headers should be resolved to either
  2. # * system libc (e.g. nothing in our repo)
  3. # * system libc++ (e.g. nothing in our repo)
  4. # * libcxx
  5. # * musl
  6. # or some combination of them depending on the build flags.
  7. # Musl has some internal header replacements. We will just resolve to both.
  8. - source_filter: "^(contrib/libs/musl|contrib/libs/cxxsupp/libcxx/include/__config)"
  9. includes:
  10. - arpa/inet.h:
  11. - contrib/libs/musl/include/arpa/inet.h
  12. - contrib/libs/musl/src/include/arpa/inet.h
  13. - crypt.h:
  14. - contrib/libs/musl/include/crypt.h
  15. - contrib/libs/musl/src/include/crypt.h
  16. - errno.h:
  17. - contrib/libs/musl/include/errno.h
  18. - contrib/libs/musl/src/include/errno.h
  19. - features.h:
  20. - contrib/libs/musl/include/features.h
  21. - contrib/libs/musl/src/include/features.h
  22. - langinfo.h:
  23. - contrib/libs/musl/include/langinfo.h
  24. - contrib/libs/musl/src/include/langinfo.h
  25. - pthread.h:
  26. - contrib/libs/musl/include/pthread.h
  27. - contrib/libs/musl/src/include/pthread.h
  28. - resolv.h:
  29. - contrib/libs/musl/include/resolv.h
  30. - contrib/libs/musl/src/include/resolv.h
  31. - signal.h:
  32. - contrib/libs/musl/include/signal.h
  33. - contrib/libs/musl/src/include/signal.h
  34. - stdio.h:
  35. - contrib/libs/musl/include/stdio.h
  36. - contrib/libs/musl/src/include/stdio.h
  37. - stdlib.h:
  38. - contrib/libs/musl/include/stdlib.h
  39. - contrib/libs/musl/src/include/stdlib.h
  40. - string.h:
  41. - contrib/libs/musl/include/string.h
  42. - contrib/libs/musl/src/include/string.h
  43. - sys/auxv.h:
  44. - contrib/libs/musl/include/sys/auxv.h
  45. - contrib/libs/musl/src/include/sys/auxv.h
  46. - sys/membarrier.h:
  47. - contrib/libs/musl/include/sys/membarrier.h
  48. - contrib/libs/musl/src/include/sys/membarrier.h
  49. - sys/mman.h:
  50. - contrib/libs/musl/include/sys/mman.h
  51. - contrib/libs/musl/src/include/sys/mman.h
  52. - sys/sysinfo.h:
  53. - contrib/libs/musl/include/sys/sysinfo.h
  54. - contrib/libs/musl/src/include/sys/sysinfo.h
  55. - sys/time.h:
  56. - contrib/libs/musl/include/sys/time.h
  57. - contrib/libs/musl/src/include/sys/time.h
  58. - time.h:
  59. - contrib/libs/musl/include/time.h
  60. - contrib/libs/musl/src/include/time.h
  61. - unistd.h:
  62. - contrib/libs/musl/include/unistd.h
  63. - contrib/libs/musl/src/include/unistd.h
  64. - wchar.h:
  65. - contrib/libs/musl/include/wchar.h
  66. - contrib/libs/musl/src/include/wchar.h
  67. - inttypes.h: contrib/libs/musl/include/inttypes.h
  68. - stddef.h: contrib/libs/musl/include/stddef.h
  69. - stdint.h: contrib/libs/musl/include/stdint.h
  70. # We want musl to resolve itself without these sysincls, but its test must have them
  71. - source_filter: "^(?!contrib/libs/musl)|^contrib/libs/musl/tests"
  72. includes:
  73. # libc & stl common headers
  74. - complex.h: contrib/libs/musl/include/complex.h
  75. - ctype.h: contrib/libs/musl/include/ctype.h
  76. - errno.h: contrib/libs/musl/include/errno.h
  77. - float.h: contrib/libs/musl/include/float.h
  78. - inttypes.h: contrib/libs/musl/include/inttypes.h
  79. - limits.h: contrib/libs/musl/include/limits.h
  80. - locale.h: contrib/libs/musl/include/locale.h
  81. - math.h: contrib/libs/musl/include/math.h
  82. - setjmp.h: contrib/libs/musl/include/setjmp.h
  83. - stdbool.h: contrib/libs/musl/include/stdbool.h
  84. - stddef.h: contrib/libs/musl/include/stddef.h
  85. - stdint.h: contrib/libs/musl/include/stdint.h
  86. - stdio.h: contrib/libs/musl/include/stdio.h
  87. - stdlib.h: contrib/libs/musl/include/stdlib.h
  88. - string.h: contrib/libs/musl/include/string.h
  89. - tgmath.h: contrib/libs/musl/include/tgmath.h
  90. - threads.h: contrib/libs/musl/include/threads.h
  91. - wchar.h: contrib/libs/musl/include/wchar.h
  92. - wctype.h: contrib/libs/musl/include/wctype.h
  93. # Rest of libc headers
  94. - aio.h: contrib/libs/musl/include/aio.h
  95. - alloca.h: contrib/libs/musl/include/alloca.h
  96. - ar.h: contrib/libs/musl/include/ar.h
  97. - arpa/inet.h: contrib/libs/musl/include/arpa/inet.h
  98. - arpa/nameser_compat.h: contrib/libs/musl/include/arpa/nameser_compat.h
  99. - arpa/nameser.h: contrib/libs/musl/include/arpa/nameser.h
  100. - arpa/telnet.h: contrib/libs/musl/include/arpa/telnet.h
  101. - arpa/tftp.h: contrib/libs/musl/include/arpa/tftp.h
  102. - assert.h: contrib/libs/musl/include/assert.h
  103. - byteswap.h: contrib/libs/musl/include/byteswap.h
  104. - cpio.h: contrib/libs/musl/include/cpio.h
  105. - crypt.h: contrib/libs/musl/include/crypt.h
  106. - dirent.h: contrib/libs/musl/include/dirent.h
  107. - dlfcn.h: contrib/libs/musl/include/dlfcn.h
  108. - elf.h: contrib/libs/musl/include/elf.h
  109. - endian.h: contrib/libs/musl/include/endian.h
  110. - err.h: contrib/libs/musl/include/err.h
  111. - fcntl.h: contrib/libs/musl/include/fcntl.h
  112. - features.h:
  113. - contrib/libs/musl/include/features.h
  114. - contrib/libs/musl/src/include/features.h
  115. - fenv.h: contrib/libs/musl/include/fenv.h
  116. - fmtmsg.h: contrib/libs/musl/include/fmtmsg.h
  117. - fnmatch.h: contrib/libs/musl/include/fnmatch.h
  118. - ftw.h: contrib/libs/musl/include/ftw.h
  119. - getopt.h: contrib/libs/musl/include/getopt.h
  120. - glob.h: contrib/libs/musl/include/glob.h
  121. - grp.h: contrib/libs/musl/include/grp.h
  122. - ifaddrs.h: contrib/libs/musl/include/ifaddrs.h
  123. - iso646.h: contrib/libs/musl/include/iso646.h
  124. - langinfo.h: contrib/libs/musl/include/langinfo.h
  125. - lastlog.h: contrib/libs/musl/include/lastlog.h
  126. - libgen.h: contrib/libs/musl/include/libgen.h
  127. - libintl.h: contrib/libs/musl/include/libintl.h
  128. - link.h: contrib/libs/musl/include/link.h
  129. - malloc.h: contrib/libs/musl/include/malloc.h
  130. - memory.h: contrib/libs/musl/include/memory.h
  131. - mntent.h: contrib/libs/musl/include/mntent.h
  132. - monetary.h: contrib/libs/musl/include/monetary.h
  133. - mqueue.h: contrib/libs/musl/include/mqueue.h
  134. - netdb.h: contrib/libs/musl/include/netdb.h
  135. - net/ethernet.h: contrib/libs/musl/include/net/ethernet.h
  136. - net/if_arp.h: contrib/libs/musl/include/net/if_arp.h
  137. - net/if.h: contrib/libs/musl/include/net/if.h
  138. - netinet/ether.h: contrib/libs/musl/include/netinet/ether.h
  139. - netinet/icmp6.h: contrib/libs/musl/include/netinet/icmp6.h
  140. - netinet/if_ether.h: contrib/libs/musl/include/netinet/if_ether.h
  141. - netinet/igmp.h: contrib/libs/musl/include/netinet/igmp.h
  142. - netinet/in.h: contrib/libs/musl/include/netinet/in.h
  143. - netinet/in_systm.h: contrib/libs/musl/include/netinet/in_systm.h
  144. - netinet/ip6.h: contrib/libs/musl/include/netinet/ip6.h
  145. - netinet/ip.h: contrib/libs/musl/include/netinet/ip.h
  146. - netinet/ip_icmp.h: contrib/libs/musl/include/netinet/ip_icmp.h
  147. - netinet/tcp.h: contrib/libs/musl/include/netinet/tcp.h
  148. - netinet/udp.h: contrib/libs/musl/include/netinet/udp.h
  149. - netpacket/packet.h: contrib/libs/musl/include/netpacket/packet.h
  150. - net/route.h: contrib/libs/musl/include/net/route.h
  151. - nl_types.h: contrib/libs/musl/include/nl_types.h
  152. - paths.h: contrib/libs/musl/include/paths.h
  153. - poll.h: contrib/libs/musl/include/poll.h
  154. - pthread.h: contrib/libs/musl/include/pthread.h
  155. - pty.h: contrib/libs/musl/include/pty.h
  156. - pwd.h: contrib/libs/musl/include/pwd.h
  157. - regex.h: contrib/libs/musl/include/regex.h
  158. - resolv.h: contrib/libs/musl/include/resolv.h
  159. - sched.h: contrib/libs/musl/include/sched.h
  160. - scsi/scsi.h: contrib/libs/musl/include/scsi/scsi.h
  161. - search.h: contrib/libs/musl/include/search.h
  162. - semaphore.h: contrib/libs/musl/include/semaphore.h
  163. - shadow.h: contrib/libs/musl/include/shadow.h
  164. - signal.h: contrib/libs/musl/include/signal.h
  165. - spawn.h: contrib/libs/musl/include/spawn.h
  166. - stdalign.h: contrib/libs/musl/include/stdalign.h
  167. - stdarg.h: contrib/libs/musl/include/stdarg.h
  168. - stdio_ext.h: contrib/libs/musl/include/stdio_ext.h
  169. - stdnoreturn.h: contrib/libs/musl/include/stdnoreturn.h
  170. - strings.h: contrib/libs/musl/include/strings.h
  171. - stropts.h: contrib/libs/musl/include/stropts.h
  172. - sys/acct.h: contrib/libs/musl/include/sys/acct.h
  173. - sys/auxv.h: contrib/libs/musl/include/sys/auxv.h
  174. - sys/cachectl.h: contrib/libs/musl/include/sys/cachectl.h
  175. - syscall.h: contrib/libs/musl/include/syscall.h
  176. - sys/dir.h: contrib/libs/musl/include/sys/dir.h
  177. - sys/epoll.h: contrib/libs/musl/include/sys/epoll.h
  178. - sys/errno.h: contrib/libs/musl/include/sys/errno.h
  179. - sys/eventfd.h: contrib/libs/musl/include/sys/eventfd.h
  180. - sysexits.h: contrib/libs/musl/include/sysexits.h
  181. - sys/fcntl.h: contrib/libs/musl/include/sys/fcntl.h
  182. - sys/file.h: contrib/libs/musl/include/sys/file.h
  183. - sys/fsuid.h: contrib/libs/musl/include/sys/fsuid.h
  184. - sys/inotify.h: contrib/libs/musl/include/sys/inotify.h
  185. - sys/ioctl.h: contrib/libs/musl/include/sys/ioctl.h
  186. - sys/io.h: contrib/libs/musl/include/sys/io.h
  187. - sys/ipc.h: contrib/libs/musl/include/sys/ipc.h
  188. - sys/kd.h: contrib/libs/musl/include/sys/kd.h
  189. - syslog.h: contrib/libs/musl/include/syslog.h
  190. - sys/mman.h: contrib/libs/musl/include/sys/mman.h
  191. - sys/mount.h: contrib/libs/musl/include/sys/mount.h
  192. - sys/msg.h: contrib/libs/musl/include/sys/msg.h
  193. - sys/mtio.h: contrib/libs/musl/include/sys/mtio.h
  194. - sys/param.h: contrib/libs/musl/include/sys/param.h
  195. - sys/personality.h: contrib/libs/musl/include/sys/personality.h
  196. - sys/poll.h: contrib/libs/musl/include/sys/poll.h
  197. - sys/prctl.h: contrib/libs/musl/include/sys/prctl.h
  198. - sys/procfs.h: contrib/libs/musl/include/sys/procfs.h
  199. - sys/ptrace.h: contrib/libs/musl/include/sys/ptrace.h
  200. - sys/quota.h: contrib/libs/musl/include/sys/quota.h
  201. - sys/random.h: contrib/libs/musl/include/sys/random.h
  202. - sys/reboot.h: contrib/libs/musl/include/sys/reboot.h
  203. - sys/resource.h: contrib/libs/musl/include/sys/resource.h
  204. - sys/select.h: contrib/libs/musl/include/sys/select.h
  205. - sys/sem.h: contrib/libs/musl/include/sys/sem.h
  206. - sys/sendfile.h: contrib/libs/musl/include/sys/sendfile.h
  207. - sys/shm.h: contrib/libs/musl/include/sys/shm.h
  208. - sys/signalfd.h: contrib/libs/musl/include/sys/signalfd.h
  209. - sys/signal.h: contrib/libs/musl/include/sys/signal.h
  210. - sys/socket.h: contrib/libs/musl/include/sys/socket.h
  211. - sys/soundcard.h: contrib/libs/musl/include/sys/soundcard.h
  212. - sys/statfs.h: contrib/libs/musl/include/sys/statfs.h
  213. - sys/stat.h: contrib/libs/musl/include/sys/stat.h
  214. - sys/statvfs.h: contrib/libs/musl/include/sys/statvfs.h
  215. - sys/stropts.h: contrib/libs/musl/include/sys/stropts.h
  216. - sys/syscall.h: contrib/libs/musl/include/sys/syscall.h
  217. - sys/sysinfo.h: contrib/libs/musl/include/sys/sysinfo.h
  218. - sys/syslog.h: contrib/libs/musl/include/sys/syslog.h
  219. - sys/sysmacros.h: contrib/libs/musl/include/sys/sysmacros.h
  220. - sys/termios.h: contrib/libs/musl/include/sys/termios.h
  221. - sys/timeb.h: contrib/libs/musl/include/sys/timeb.h
  222. - sys/time.h: contrib/libs/musl/include/sys/time.h
  223. - sys/timerfd.h: contrib/libs/musl/include/sys/timerfd.h
  224. - sys/times.h: contrib/libs/musl/include/sys/times.h
  225. - sys/timex.h: contrib/libs/musl/include/sys/timex.h
  226. - sys/ttydefaults.h: contrib/libs/musl/include/sys/ttydefaults.h
  227. - sys/types.h: contrib/libs/musl/include/sys/types.h
  228. - sys/ucontext.h: contrib/libs/musl/include/sys/ucontext.h
  229. - sys/uio.h: contrib/libs/musl/include/sys/uio.h
  230. - sys/un.h: contrib/libs/musl/include/sys/un.h
  231. - sys/user.h: contrib/libs/musl/include/sys/user.h
  232. - sys/utsname.h: contrib/libs/musl/include/sys/utsname.h
  233. - sys/vfs.h: contrib/libs/musl/include/sys/vfs.h
  234. - sys/vt.h: contrib/libs/musl/include/sys/vt.h
  235. - sys/wait.h: contrib/libs/musl/include/sys/wait.h
  236. - sys/xattr.h: contrib/libs/musl/include/sys/xattr.h
  237. - tar.h: contrib/libs/musl/include/tar.h
  238. - termios.h: contrib/libs/musl/include/termios.h
  239. - threads.h: contrib/libs/musl/include/threads.h
  240. - time.h: contrib/libs/musl/include/time.h
  241. - uchar.h: contrib/libs/musl/include/uchar.h
  242. - ucontext.h: contrib/libs/musl/include/ucontext.h
  243. - ulimit.h: contrib/libs/musl/include/ulimit.h
  244. - unistd.h: contrib/libs/musl/include/unistd.h
  245. - utime.h: contrib/libs/musl/include/utime.h
  246. - utmp.h: contrib/libs/musl/include/utmp.h
  247. - utmpx.h: contrib/libs/musl/include/utmpx.h
  248. - values.h: contrib/libs/musl/include/values.h
  249. - wait.h: contrib/libs/musl/include/wait.h
  250. - wordexp.h: contrib/libs/musl/include/wordexp.h
  251. # musl defines its own stub for stdc-predef
  252. - source_filter: ^(contrib/libs/glibcasm/glibc/include/features\.h)
  253. includes:
  254. - stdc-predef.h: contrib/libs/musl/include/stdc-predef.h
  255. - source_filter: "^contrib/libs/musl"
  256. includes:
  257. - atomic.h: contrib/libs/musl/src/internal/atomic.h