Interface LibC

    • Method Detail

      • sysinfo

        int sysinfo​(LibC.Sysinfo info)
        sysinfo() provides a simple way of getting overall system statistics. This is more portable than reading /dev/kmem.
        Parameters:
        info - A Sysinfo structure which will be populated
        Returns:
        On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
      • statvfs

        int statvfs​(String path,
                    LibC.Statvfs buf)
        The function statvfs() returns information about a mounted filesystem.
        Parameters:
        path - the pathname of any file within the mounted filesystem.
        buf - a pointer to a statvfs structure
        Returns:
        On success, zero is returned. On error, -1 is returned, and errno is set appropriately.