filetraverser/Unix.java
author Markus Bröker <mbroeker@largo.dyndns.tv>
Fri, 19 Nov 2010 00:34:26 +0100
changeset 155 a54dcc86addb
parent 151 a8c2649cf277
permissions -rw-r--r--
cunit needs libcunit and libncurses committer: Markus Bröker <mbroeker@largo.homelinux.org>

public class Unix {
    public static native int isUnixLink(String name);

    public static boolean isLink(String name) {
        if (isUnixLink(name) == 1)
            return true;
        return false;
    }

    static {
        try {
            System.loadLibrary("Unix");
        } catch (UnsatisfiedLinkError ule) {
            ule.printStackTrace();
        }
    }
}