Lines Matching +full:musl +full:- +full:tools
64 t if t.contains("nto-qnx") => return test_neutrino(t), in do_ctest()
69 fn ctest_cfg() -> ctest::TestGenerator { in ctest_cfg()
97 // `libc-test/semver` dir. in do_semver()
111 let os_arch = format!("{}-{}", os, arch); in do_semver()
114 let os_env = format!("{}-{}", os, target_env); in do_semver()
117 let os_env_arch = format!("{}-{}-{}", os, target_env, arch); in do_semver()
127 println!("cargo:rerun-if-changed={}", path.display()); in process_semver_file()
188 cfg.flag("-Wno-deprecated-declarations"); in test_apple()
213 "mach-o/dyld.h", in test_apple()
338 // FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000). in test_apple()
350 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_apple()
356 // FIXME: std removed libresolv support: https://github.com/rust-lang/rust/pull/102766 in test_apple()
374 // FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]). in test_apple()
377 // MAXPATHLEN is too big for auto-derive traits on arrays. in test_apple()
444 cfg.flag("-Wno-deprecated-declarations"); in test_openbsd()
559 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_openbsd()
563 // https://marc.info/?l=openbsd-cvs&m=154723400730318 in test_openbsd()
573 // https://marc.info/?l=openbsd-cvs&m=170239504300386 in test_openbsd()
715 // FIXME: newer windows-gnu environment on CI? in test_windows()
730 // windows-isms in test_windows()
741 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_windows()
755 cfg.flag("-Wno-deprecated-declarations"); in test_redox()
806 // While debugging, "CFLAGS=-ferror-limit=<large num>" is useful to get more error output. in test_solarish()
808 cfg.flag("-Wno-deprecated-declarations"); in test_solarish()
943 // explicitly support it. (A no-op is an acceptable implementation of EPOLLEXCLUSIVE.) in test_solarish()
960 // a bunch of solaris-only fields in test_solarish()
989 // `uc_filler` fields to use for brand-specific state. in test_solarish()
1001 // const-ness only added recently in test_solarish()
1018 // const-ness issues in test_solarish()
1021 // Solaris-different in test_solarish()
1027 // non-prefixed implementations in libc. in test_solarish()
1055 cfg.flag("-Wno-deprecated-declarations"); in test_netbsd()
1217 "MS_RMT_MASK" => true, // updated in glibc 2.22 and musl 1.1.13 in test_netbsd()
1227 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_netbsd()
1232 "getrlimit" | "getrlimit64" | // non-int in 1st arg in test_netbsd()
1233 "setrlimit" | "setrlimit64" | // non-int in 1st arg in test_netbsd()
1234 "prlimit" | "prlimit64" | // non-int in 2nd arg in test_netbsd()
1268 cfg.flag("-Wno-deprecated-declarations"); in test_dragonflybsd()
1443 "MS_RMT_MASK" => true, // updated in glibc 2.22 and musl 1.1.13 in test_dragonflybsd()
1456 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_dragonflybsd()
1459 "getrlimit" | "getrlimit64" | // non-int in 1st arg in test_dragonflybsd()
1460 "setrlimit" | "setrlimit64" | // non-int in 1st arg in test_dragonflybsd()
1461 "prlimit" | "prlimit64" // non-int in 2nd arg in test_dragonflybsd()
1525 "wasi/libc-find-relpath.h", in test_wasi()
1526 "wasi/libc-nocwd.h", in test_wasi()
1559 // tests. For more info see WebAssembly/tool-conventions#88 in test_wasi()
1663 // time64_t is not defined for 64-bit targets If included it will in test_android()
1664 // generate the error 'Your time_t is already 64-bit' in test_android()
1714 // Include Android-specific headers: in test_android()
1763 // https://github.com/rust-lang/libc/issues/1359 in test_android()
1821 // See: https://github.com/rust-lang/libc/issues/1356 in test_android()
1826 // FIXME: deprecated - removed in glibc 2.26 in test_android()
1846 // GRND_INSECURE was added in platform-tools-30.0.0 in test_android()
1950 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_android()
1957 // An XSI-compliant version provided if: in test_android()
1963 // libc provides bindings for the XSI-compliant version, which is in test_android()
2006 // incorrect, see: https://github.com/rust-lang/libc/issues/1359 in test_android()
2200 // FIXME: https://github.com/rust-lang/libc/issues/1273 in test_freebsd()
2262 // FIXME: These are deprecated - remove in a couple of releases. in test_freebsd()
2267 // FIXME: These are deprecated - remove in a couple of releases. in test_freebsd()
2273 // FIXME: This is deprecated - remove in a couple of releases. in test_freebsd()
2284 // FIXME: These are deprecated - remove in a couple of releases. in test_freebsd()
2285 // These symbols are not stable across OS-versions. They were in test_freebsd()
2526 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_freebsd()
2595 // incorrect, see: https://github.com/rust-lang/libc/issues/1359 in test_freebsd()
2763 // https://github.com/emscripten-core/emscripten/pull/19812 in test_emscripten()
2798 // FIXME: The size has been changed due to musl's time64 in test_emscripten()
2802 // https://github.com/emscripten-core/emscripten/pull/19812 in test_emscripten()
2814 // emscripten-core/emscripten@953e414 in test_emscripten()
2821 // FIXME: The size has been changed when upgraded to musl 1.2.2 in test_emscripten()
2825 // llvm/llvm-project@d1a96e9 in test_emscripten()
2833 // https://github.com/emscripten-core/emscripten/pull/19812 in test_emscripten()
2840 // Emscripten does not support fork/exec/wait or any kind of multi-process support in test_emscripten()
2841 // https://github.com/emscripten-core/emscripten/blob/3.1.30/tools/system_libs.py#L973 in test_emscripten()
2844 // FIXME: Remove after emscripten-core/emscripten#18492 is released (> 3.1.30). in test_emscripten()
2853 // FIXME: deprecated - SIGNUNUSED was removed in glibc 2.26 in test_emscripten()
2861 // emscripten-core/emscripten@6d6474e in test_emscripten()
2873 | "SIG_IGN" // -1 in test_emscripten()
2877 // https://github.com/emscripten-core/emscripten/pull/19812 in test_emscripten()
2904 // musl names this __dummy1 but it's still there in test_emscripten()
2907 // musl seems to define this as an *anonymous* bitfield in test_emscripten()
2918 // FIXME: After musl 1.1.24, it have only one field `sched_priority`, in test_emscripten()
2933 assert!(target.contains("nto-qnx")); in test_neutrino()
3086 // https://github.com/rust-lang/libc/issues/1359 in test_neutrino()
3128 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_neutrino()
3297 let musl = target.contains("musl") || target.contains("ohos"); in test_linux() localVariable
3300 match (gnu, musl, uclibc) { in test_linux()
3305 "linux target lib is gnu: {}, musl: {}, uclibc: {}", in test_linux()
3306 gnu, musl, uclibc in test_linux()
3320 let aarch64_musl = aarch64 && musl; in test_linux()
3328 // This macro re-defines fscanf,scanf,sscanf to link to the symbols that are in test_linux()
3341 [gnu]: "gnu/libc-version.h", in test_linux()
3427 // `sys/io.h` is only available on x86*, Alpha, IA64, and 32-bit in test_linux()
3434 // sysctl system call is deprecated and not available on musl in test_linux()
3436 [!(x32 || musl || gnu)]: "sys/sysctl.h", in test_linux()
3437 // <execinfo.h> is not supported by musl: in test_linux()
3438 // https://www.openwall.com/lists/musl/2015/04/09/3 in test_linux()
3440 [!(musl || uclibc)]: "execinfo.h", in test_linux()
3451 [!musl]: "linux/can/j1939.h", in test_linux()
3476 [!musl]: "linux/mount.h", in test_linux()
3487 [!musl]: "linux/openat2.h", in test_linux()
3488 [!musl]: "linux/ptrace.h", in test_linux()
3528 // LFS64 types have been removed in musl 1.2.4+ in test_linux()
3529 "off64_t" if musl => "off_t".to_string(), in test_linux()
3551 // http://man7.org/linux/man-pages/man2/epoll_wait.2.html in test_linux()
3571 // https://github.com/rust-lang/libc/issues/1359 in test_linux()
3590 "pgn_t" if musl => true, in test_linux()
3591 "priority_t" if musl => true, in test_linux()
3592 "name_t" if musl => true, in test_linux()
3595 if musl { in test_linux()
3596 // LFS64 types have been removed in musl 1.2.4+ in test_linux()
3609 // FIXME: musl CI has old headers in test_linux()
3610 if musl && ty.starts_with("uinput_") { in test_linux()
3613 if musl && ty == "seccomp_notif" { in test_linux()
3616 if musl && ty == "seccomp_notif_addfd" { in test_linux()
3619 if musl && ty == "seccomp_notif_resp" { in test_linux()
3622 if musl && ty == "seccomp_notif_sizes" { in test_linux()
3626 // LFS64 types have been removed in musl 1.2.4+ in test_linux()
3627 if musl && (ty.ends_with("64") || ty.ends_with("64_t")) { in test_linux()
3634 // FIXME(https://github.com/rust-lang/libc/issues/1558): passing by in test_linux()
3660 // glibcs (see https://github.com/rust-lang/libc/issues/1410) in test_linux()
3664 // So let's ignore for now and re-visit later. in test_linux()
3671 // which is absent in musl, has to be defined. in test_linux()
3672 "__exit_status" if musl => true, in test_linux()
3681 "j1939_filter" if musl => true, in test_linux()
3684 "sockaddr_can" if musl => true, in test_linux()
3697 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
3699 if (aarch64 || arm || i686 || s390x || x86_64) && musl => in test_linux()
3705 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
3707 if (aarch64 || arm || i686 || s390x || x86_64) && musl => in test_linux()
3713 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
3714 "xdp_options" if musl => true, in test_linux()
3717 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
3718 "xdp_umem_reg" | "xdp_ring_offset" | "xdp_mmap_offsets" if musl => true, in test_linux()
3721 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
3722 "xdp_statistics" if musl => true, in test_linux()
3748 // Skip definitions from the kernel on non-glibc Linux targets. in test_linux()
3749 // They're libc-independent, so we only need to check them on one in test_linux()
3750 // libc. We don't want to break CI if musl or another libc doesn't in test_linux()
3783 if musl { in test_linux()
3809 // LFS64 types have been removed in musl 1.2.4+ in test_linux()
3813 // CI fails because musl targets use Linux v4 kernel in test_linux()
3845 // See: https://github.com/rust-lang/libc/issues/1356 in test_linux()
3861 // FIXME: on musl the pthread types are defined a little differently in test_linux()
3862 // - these constants are used by the glibc implementation. in test_linux()
3863 n if musl && n.contains("__SIZEOF_PTHREAD") => true, in test_linux()
3880 // FIXME: Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64. in test_linux()
3881 "SYS_memfd_secret" if arm | gnueabihf | musl | ppc | riscv64 | s390x | sparc64 => true, in test_linux()
3901 // FIXME: Not currently available in headers on ARM and musl. in test_linux()
3902 "NETLINK_GET_STRICT_CHK" if arm || musl => true, in test_linux()
3981 | "RESOLVE_NO_XDEV" if musl => true, in test_linux()
3985 | "CAN_NPROTO" if musl => true, in test_linux()
3988 "GRND_INSECURE" if musl => true, in test_linux()
3991 "MREMAP_DONTUNMAP" if musl => true, in test_linux()
3994 "IF_LINK_MODE_TESTING" if musl || sparc64 => true, in test_linux()
3998 | "CLOSE_RANGE_CLOEXEC" if musl => true, in test_linux()
4001 "MPOL_F_NUMA_BALANCING" if musl => true, in test_linux()
4013 if musl => true, in test_linux()
4019 if musl => true, in test_linux()
4040 "HWTSTAMP_TX_ONESTEP_P2P" if musl => true, // linux v5.6+ in test_linux()
4064 "FAN_REPORT_PIDFD" if musl => true, in test_linux()
4075 if musl => true, in test_linux()
4081 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
4091 if (aarch64 || arm || i686 || s390x || x86_64) && musl => in test_linux()
4097 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
4104 if (aarch64 || arm || i686 || s390x || x86_64) && musl => in test_linux()
4110 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
4112 if musl => in test_linux()
4118 // Everything that uses install-musl.sh has 4.19 kernel headers. in test_linux()
4124 if musl => in test_linux()
4170 | "SCHED_FLAG_ALL" if musl => true, // Needs more recent linux headers. in test_linux()
4179 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_linux()
4186 // An XSI-compliant version provided if: in test_linux()
4193 // libc provides bindings for the XSI-compliant version, which is in test_linux()
4204 "lio_listio" if musl => true, in test_linux()
4242 // FIXME: This needs musl 1.2.2 or later. in test_linux()
4243 "gettid" if musl => true, in test_linux()
4248 "reallocarray" if musl => true, in test_linux()
4253 // Needs musl 1.2.3 or later. in test_linux()
4254 "pthread_getname_np" if musl => true, in test_linux()
4258 // to the issues described here: https://github.com/rust-lang/libc/issues/2816 in test_linux()
4264 // https://man7.org/linux/man-pages/man3/basename.3.html in test_linux()
4296 // `__exit_status` type is a patch which is absent in musl in test_linux()
4297 (struct_ == "utmpx" && field == "ut_exit" && musl) || in test_linux()
4316 // musl names this __dummy1 but it's still there in test_linux()
4317 (musl && struct_ == "glob_t" && field == "gl_flags") || in test_linux()
4318 // musl seems to define this as an *anonymous* bitfield in test_linux()
4319 (musl && struct_ == "statvfs" && field == "__f_unused") || in test_linux()
4329 // FIXME: After musl 1.1.24, it have only one field `sched_priority`, in test_linux()
4336 ].contains(&field) && musl) || in test_linux()
4337 // FIXME: After musl 1.1.24, the type becomes `int` instead of `unsigned short`. in test_linux()
4412 let musl = target.contains("musl") || target.contains("ohos"); in test_linux_like_apis() localVariable
4434 // test fcntl - see: in test_linux_like_apis()
4435 // http://man7.org/linux/man-pages/man2/fcntl.2.html in test_linux_like_apis()
4438 if musl { in test_linux_like_apis()
4553 fn which_freebsd() -> Option<i32> { in which_freebsd()
4554 let output = std::process::Command::new("freebsd-version") in which_freebsd()
4578 cfg.flag("-Wno-deprecated-declarations"); in test_haiku()
4766 // FIXME: https://github.com/rust-lang/libc/issues/1272 in test_haiku()
4840 // skip these enum-type fields in test_haiku()