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 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003
|
//===--- musl.modulemap ---------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
// Note that this module map requires some changes to the Musl headers in order
// for it to work. Specifically:
//
// - The types need to be broken out of <bits/alltypes.h> into individual files
// in <bits/types>.
//
// - The definitions included in <bits/alltypes.h> need to be broken out into
// <bits/musldefs.h>.
//
// - A _modules directory needs to be created; for each of the files mentioned
// in _modules below there should be a header that looks like
//
// #if !__building_module(stdc_foo)
// #error "Do not include this header directly, include <foo.h> instead"
// #endif
// #include <foo.h>
//
// This is so that the replacement headers from Clang and Libc++ work as
// expected.
module _musl [system] {
config_macros _GNU_SOURCE, _BSD_SOURCE, _XOPEN_SOURCE, _POSIX_SOURCE, _POSIX_C_SOURCE, _LARGEFILE64_SOURCE, _ALL_SOURCE, _DEFAULT_SOURCE, __STRICT_ANSI__
header "features.h"
header "bits/musldefs.h"
exclude header "bits/alltypes.h"
// Type declarations live in bits
module types {
umbrella "bits/types"
module * {
export *
}
}
}
// Headers that can be overridden by Clang or libc++; in this case what we do is
// we create an underscored module to wrap the actual header, then have the
// module with the nicer name include a forwarding header from _modules. This
// ensures that e.g. `import float_h` will result in pulling in the Clang
// or libc++ versions as expected.
module _assert [system] {
textual header "assert.h"
}
module assert_h [system] {
header "_modules/assert_h.h"
export *
}
module _complex [system] {
header "complex.h"
export *
}
module complex_h [system] {
header "_modules/complex_h.h"
export *
}
module _ctype [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "ctype.h"
export *
}
module ctype_h [system] {
header "_modules/ctype_h.h"
export *
}
module _errno [system] {
config_macros _GNU_SOURCE
header "errno.h"
export *
}
module errno_h [system] {
header "_modules/errno_h.h"
export *
}
module _fenv [system] {
header "fenv.h"
export *
}
module fenv_h [system] {
header "_modules/fenv_h.h"
export *
}
module _float [system] {
header "float.h"
export *
}
module float_h [system] {
header "_modules/float_h.h"
export *
}
module _inttypes [system] {
header "inttypes.h"
export *
}
module inttypes_h [system] {
header "_modules/inttypes_h.h"
use stdint_h
export *
}
module _iso646 [system] {
header "iso646.h"
export *
}
module iso646_h [system] {
header "_modules/iso646_h.h"
export *
}
module _limits [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "limits.h"
export *
}
module limits_h [system] {
header "_modules/limits_h.h"
export *
}
module _locale [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "locale.h"
export *
}
module locale_h [system] {
header "_modules/locale_h.h"
export *
}
module _math [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE
header "math.h"
export *
}
module math_h [system] {
header "_modules/math_h.h"
export *
}
module _setjmp [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "setjmp.h"
export *
}
module setjmp_h [system] {
header "_modules/setjmp_h.h"
export *
}
module _stdalign [system] {
header "stdalign.h"
export *
}
module stdalign_h [system] {
header "_modules/stdalign_h.h"
export *
}
module _stdarg [system] {
header "stdarg.h"
export *
}
module stdarg_h [system] {
header "_modules/stdarg_h.h"
export *
}
module _stdatomic [system] {
header "stdatomic.h"
export *
}
module stdatomic_h [system] {
header "_modules/stdatomic_h.h"
export *
}
module _stdbool [system] {
header "stdbool.h"
export *
}
module stdbool_h [system] {
header "_modules/stdbool_h.h"
export *
}
module _stddef [system] {
header "stddef.h"
export *
}
module stddef_h [system] {
header "_modules/stddef_h.h"
export *
}
module _stdint [system] {
header "stdint.h"
export *
}
module stdint_h [system] {
header "_modules/stdint_h.h"
export *
}
module _stdio [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "stdio.h"
export *
}
module stdio_h [system] {
header "_modules/stdio_h.h"
export *
}
module _stdlib [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "stdlib.h"
export *
}
module stdlib_h [system] {
header "_modules/stdlib_h.h"
export *
}
module _string [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "string.h"
export *
}
module string_h [system] {
header "_modules/string_h.h"
export *
}
module _tgmath [system] {
header "tgmath.h"
export *
}
module tgmath_h [system] {
header "_modules/tgmath_h.h"
export *
}
module _uchar [system] {
header "uchar.h"
export *
}
module uchar_h [system] {
header "_modules/uchar_h.h"
export *
}
module _wchar [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "wchar.h"
export *
}
module wchar_h [system] {
header "_modules/wchar_h.h"
export *
}
module _wctype [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "wctype.h"
export *
}
module wctype_h [system] {
header "_modules/wctype_h.h"
export *
}
// C library headers
module time_h [system] {
config_macros _POSIX_SOURCE, _POSIX_C_SOURCE, _XOPEN_SOURCE, _GNU_SOURCE, _BSD_SOURCE
header "time.h"
export *
}
module signal_h [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "signal.h"
export *
}
module stdnoreturn_h [system] {
header "stdnoreturn.h"
export *
}
module threads_h [system] {
header "threads.h"
export *
}
// POSIX
module posix_aio [system] {
config_macros _LARGEFILE64_SOURCE
header "aio.h"
export *
}
module arpa_inet [system] {
header "arpa/inet.h"
export *
}
// Non-POSIX
module arpa_ftp [system] {
header "arpa/ftp.h"
export *
}
module arpa_nameser [system] {
header "arpa/nameser.h"
export *
}
module arpa_nameser_compat [system] {
header "arpa/nameser_compat.h"
export *
}
module arpa_telnet [system] {
header "arpa/telnet.h"
export *
}
module arpa_tftp [system] {
header "arpa/tftp.h"
export *
}
// POSIX
module posix_cpio [system] {
header "cpio.h"
export *
}
module posix_dirent [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _XOPEN_SOURCE
header "dirent.h"
export *
}
module posix_dlfcn [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "dlfcn.h"
export *
link "dl"
}
module posix_fcntl [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "fcntl.h"
export *
}
module posix_fmtmsg [system] {
header "fmtmsg.h"
export *
}
module posix_fnmatch [system] {
header "fnmatch.h"
export *
}
module posix_ftw [system] {
config_macros _LARGEFILE64_SOURCE
header "ftw.h"
export *
}
module posix_glob [system] {
config_macros _LARGEFILE64_SOURCE
header "glob.h"
export *
}
module posix_grp [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE
header "grp.h"
export *
}
module posix_iconv [system] {
header "iconv.h"
export *
}
module posix_langinfo [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "langinfo.h"
export *
}
module posix_libgen [system] {
header "libgen.h"
export *
}
module posix_monetary [system] {
header "monetary.h"
export *
}
module posix_mqueue [system] {
header "mqueue.h"
export *
}
// POSIX
module net_if [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "net/if.h"
export *
}
// Non-POSIX
module fts [system] {
header "fts.h"
export *
link "fts"
}
module net_ethernet [system] {
header "net/ethernet.h"
// Include <netinet/if_ether.h> here because these two headers circularly
// depend on one another
header "netinet/if_ether.h"
export *
}
module net_if_arp [system] {
header "net/if_arp.h"
export *
}
module net_route [system] {
header "net/route.h"
export *
}
// POSIX
module posix_netdb [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "netdb.h"
export *
}
// POSIX
module netinet_in [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "netinet/in.h"
export *
}
module netinet_tcp [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "netinet/tcp.h"
export *
}
// Non-POSIX
module netinet_ether [system] {
header "netinet/ether.h"
export *
}
module netinet_icmp6 [system] {
header "netinet/icmp6.h"
export *
}
// Can't have this one as a module because of the circular dependency
// between netinet/if_ether.h and net/ethernet.h
//
// module netinet_if_ether [system] {
// header "netinet/if_ether.h"
// export *
// }
module netinet_igmp [system] {
header "netinet/igmp.h"
export *
}
module netinet_in_systm [system] {
header "netinet/in_systm.h"
export *
}
module netinet_ip [system] {
header "netinet/ip.h"
export *
}
module netinet_ip6 [system] {
header "netinet/ip6.h"
export *
}
module netinet_ip_icmp [system] {
header "netinet/ip_icmp.h"
export *
}
module netinet_udp [system] {
config_macros _GNU_SOURCE
header "netinet/udp.h"
export *
}
// POSIX
module posix_nl_types [system] {
header "nl_types.h"
export *
}
module posix_poll [system] {
config_macros _GNU_SOURCE
header "poll.h"
export *
}
module posix_pthread [system] {
config_macros _GNU_SOURCE
header "pthread.h"
export *
link "pthread"
}
module posix_pwd [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE
header "pwd.h"
export *
}
module posix_regex [system] {
header "regex.h"
export *
}
module posix_sched [system] {
config_macros _GNU_SOURCE
header "sched.h"
export *
}
module posix_search [system] {
config_macros _GNU_SOURCE
header "search.h"
export *
}
module posix_semaphore [system] {
header "semaphore.h"
export *
}
module posix_spawn [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "spawn.h"
export *
}
module posix_strings [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "strings.h"
export *
}
module posix_stropts [system] {
header "stropts.h"
export *
}
// POSIX
module sys_ipc [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/ipc.h"
export *
}
module sys_mman [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE
header "sys/mman.h"
export *
}
module sys_msg [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/msg.h"
export *
}
module sys_resource [system] {
config_macros _GNU_SOURCE, _LARGEFILE64_SOURCE
header "sys/resource.h"
export *
}
module sys_select [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/select.h"
export *
}
module sys_sem [system] {
config_macros _GNU_SOURCE
header "sys/sem.h"
export *
}
module sys_shm [system] {
config_macros _GNU_SOURCE
header "sys/shm.h"
export *
}
module sys_socket [system] {
config_macros _GNU_SOURCE
header "sys/socket.h"
export *
}
module sys_stat [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _XOPEN_SOURCE
header "sys/stat.h"
export *
}
module sys_statvfs [system] {
config_macros _LARGEFILE64_SOURCE
header "sys/statvfs.h"
export *
}
module sys_time [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/time.h"
export *
}
module sys_times [system] {
header "sys/times.h"
export *
}
module sys_types [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE
header "sys/types.h"
export *
}
module sys_uio [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE
header "sys/uio.h"
export *
}
module sys_un [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/un.h"
export *
}
module sys_utsname [system] {
config_macros _GNU_SOURCE
header "sys/utsname.h"
export *
}
module sys_wait [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
header "sys/wait.h"
export *
}
// Non-POSIX
module sys_acct [system] {
header "sys/acct.h"
export *
}
module sys_auxv [system] {
header "sys/auxv.h"
export *
}
module sys_cachectl [system] {
header "sys/cachectl.h"
export *
}
module sys_dir [system] {
header "sys/dir.h"
export *
}
module sys_epoll [system] {
header "sys/epoll.h"
export *
}
module sys_eventfd [system] {
header "sys/eventfd.h"
export *
}
module sys_fanotify [system] {
header "sys/fanotify.h"
export *
}
module sys_file [system] {
header "sys/file.h"
export *
}
module sys_fsuid [system] {
header "sys/fsuid.h"
export *
}
module sys_inotify [system] {
header "sys/inotify.h"
export *
}
module sys_ioctl [system] {
header "sys/ioctl.h"
export *
}
module sys_io [system] {
header "sys/io.h"
export *
}
module sys_klog [system] {
header "sys/klog.h"
export *
}
module sys_membarrier [system] {
header "sys/membarrier.h"
export *
}
module sys_mount [system] {
header "sys/mount.h"
export *
}
module sys_mtio [system] {
header "sys/mtio.h"
export *
}
module sys_param [system] {
header "sys/param.h"
export *
}
module sys_personality [system] {
header "sys/personality.h"
export *
}
module sys_prctl [system] {
header "sys/prctl.h"
export *
}
module sys_procfs [system] {
header "sys/procfs.h"
export *
}
module sys_ptrace [system] {
header "sys/ptrace.h"
export *
}
module sys_quota [system] {
header "sys/quota.h"
export *
}
module sys_random [system] {
header "sys/random.h"
export *
}
module sys_reboot [system] {
header "sys/reboot.h"
export *
}
module sys_reg [system] {
header "sys/reg.h"
export *
}
module sys_sendfile [system] {
config_macros _LARGEFILE64_SOURCE
header "sys/sendfile.h"
export *
}
module sys_signalfd [system] {
header "sys/signalfd.h"
export *
}
module sys_statfs [system] {
config_macros _LARGEFILE64_SOURCE
header "sys/statfs.h"
export *
}
module sys_stropts [system] {
header "sys/stropts.h"
export *
}
module sys_swap [system] {
header "sys/swap.h"
export *
}
module sys_syscall [system] {
header "sys/syscall.h"
export *
}
module sys_sysinfo [system] {
header "sys/sysinfo.h"
export *
}
module sys_syslog [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "sys/syslog.h"
export *
}
module sys_sysmacros [system] {
header "sys/sysmacros.h"
export *
}
module sys_timeb [system] {
header "sys/timeb.h"
export *
}
module sys_timerfd [system] {
header "sys/timerfd.h"
export *
}
module sys_timex [system] {
header "sys/timex.h"
export *
}
module sys_ttydefaults [system] {
header "sys/ttydefaults.h"
export *
}
module sys_ucontext [system] {
config_macros _GNU_SOURCE, _BSD_SOURCE
header "sys/ucontext.h"
export *
}
module sys_user [system] {
header "sys/user.h"
export *
}
module sys_vfs [system] {
header "sys/vfs.h"
export *
}
module sys_xattr [system] {
header "sys/xattr.h"
export *
}
// POSIX
module posix_syslog [system] {
header "syslog.h"
export *
}
module posix_tar [system] {
header "tar.h"
export *
}
module posix_termios [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "termios.h"
export *
}
module posix_ucontext [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "ucontext.h"
export *
}
module posix_unistd [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _XOPEN_SOURCE
header "unistd.h"
export *
}
module posix_ulimit [system] {
header "ulimit.h"
export *
}
module posix_utime [system] {
header "utime.h"
export *
}
module posix_utmpx [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "utmpx.h"
export *
}
// Other, non-standard headers
module linux_alloca [system] {
header "alloca.h"
export *
}
module linux_ar [system] {
header "ar.h"
export *
}
module linux_byteswap [system] {
header "byteswap.h"
export *
}
module linux_crypt [system] {
header "crypt.h"
export *
}
module linux_elf [system] {
header "elf.h"
export *
}
module linux_endian [system] {
config_macros _BSD_SOURCE, _GNU_SOURCE
header "endian.h"
export *
}
module linux_err [system] {
header "err.h"
export *
}
module linux_getopt [system] {
header "getopt.h"
export *
}
module linux_ifaddrs [system] {
header "ifaddrs.h"
export *
}
module linux_lastlog [system] {
header "lastlog.h"
export *
}
module linux_libintl [system] {
header "libintl.h"
export *
}
module linux_link [system] {
header "link.h"
export *
}
module linux_malloc [system] {
header "malloc.h"
export *
}
module linux_memory [system] {
header "memory.h"
export *
}
module linux_mntent [system] {
header "mntent.h"
export *
}
module linux_netpacket [system] {
header "netpacket/packet.h"
export *
}
module linux_paths [system] {
header "paths.h"
export *
}
module linux_pty [system] {
header "pty.h"
export *
}
module linux_resolv [system] {
header "resolv.h"
export *
link "resolv"
}
module linux_scsi [system] {
header "scsi/scsi.h"
header "scsi/scsi_ioctl.h"
header "scsi/sg.h"
export *
}
module linux_shadow [system] {
header "shadow.h"
export *
}
module linux_stdio_ext [system] {
header "stdio_ext.h"
export *
}
module linux_syscall [system] {
header "syscall.h"
export *
}
module linux_sysexits [system] {
header "sysexits.h"
export *
}
module linux_utmp [system] {
header "utmp.h"
export *
}
module linux_values [system] {
header "values.h"
export *
}
module linux_unwind [system] {
header "unwind.h"
export *
}
module linux_wordexp [system] {
header "wordexp.h"
export *
}
module linux_excludes [system] {
// Linux redirection headers
exclude header "sys/kd.h"
exclude header "sys/soundcard.h"
exclude header "sys/vt.h"
// Redirection headers
exclude header "sys/termios.h"
exclude header "sys/fcntl.h"
exclude header "sys/errno.h"
exclude header "sys/poll.h"
exclude header "sys/signal.h"
exclude header "wait.h"
}
// START SWIFT ONLY
// This is for Swift; it includes all the (modular) Musl headers
module SwiftMusl [system] {
header "SwiftMusl.h"
export *
}
// END SWIFT ONLY
|