@Test public void testStatfs() throws IOException{ if(!isLinux()) return; Linux.statfs stfs = new Linux.statfs(); int result; result = Linux.statfs("/XXXXXXX", stfs); assertEquals(result, -1); assertEquals(Unix.errno(), Unix.ENOENT); result = Linux.statfs("/tmp", stfs); assertTrue(stfs.f_namelen != 0); }
native static int statfs(String path, statfs stfs);
Linux extends Unix { native static int statfs(String path, statfs stfs); }
Linux extends Unix { native static int statfs(String path, statfs stfs);  }
Linux extends Unix { native static int statfs(String path, statfs stfs);   }
Linux extends Unix { native static int statfs(String path, statfs stfs);    }