Class LDD


  • public class LDD
    extends Object
    Helper class for determining ldd/glibc version.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • LDD_VERSION

        public static String[] LDD_VERSION
        the determined version.
      • LDD_DUMMY_VERSION

        public static final String[] LDD_DUMMY_VERSION
    • Constructor Detail

      • LDD

        public LDD()
    • Method Detail

      • flatten

        protected static String flatten​(String[] version)
        Flattens the version into a string.
        Parameters:
        version - the version array to flatten
        Returns:
        the generated string
      • version

        public static String[] version()
        Returns (under Linux) the version of ldd (= glibc version). For non-linux or in case of error, returns LDD_DUMMY_VERSION.
        Returns:
        the version (major, minor[, patch])
      • compareTo

        public static int compareTo​(String[] otherVersion)
        Returns this detected version of ldd with the provided one and returns if detected version is less than (< 0), equal to (= 0) or larger (> 0) than the supplied one.
        Parameters:
        otherVersion - the version to compare against
        Returns:
        the comparison result
      • main

        public static void main​(String[] args)