logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

test_functions.sh (380B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. has_glibc() {
  5. test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h
  6. }
  7. has_musl() {
  8. command -v ldd && ldd 2>&1 | grep -q musl
  9. }
  10. gentoo_sandbox() {
  11. test -z "${LDSTATIC}" -a "${LD_PRELOAD}" = "libsandbox.so"
  12. }