Package com.sun.jna.platform.linux
Interface LibC
LibC structures and functions unique to Linux
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.sun.jna.platform.unix.LibCAPI
LibCAPI.size_t, LibCAPI.ssize_tNested classes/interfaces inherited from interface com.sun.jna.Library
Library.HandlerNested classes/interfaces inherited from interface com.sun.jna.platform.unix.Resource
Resource.Rlimit -
Field Summary
FieldsFields inherited from interface com.sun.jna.platform.unix.LibCAPI
HOST_NAME_MAXFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPERFields inherited from interface com.sun.jna.platform.unix.Reboot
RB_AUTOBOOT, RB_DISABLE_CAD, RB_ENABLE_CAD, RB_HALT_SYSTEM, RB_KEXEC, RB_POWER_OFF, RB_SW_SUSPENDFields inherited from interface com.sun.jna.platform.unix.Resource
RLIMIT_AS, RLIMIT_CORE, RLIMIT_CPU, RLIMIT_DATA, RLIMIT_FSIZE, RLIMIT_LOCKS, RLIMIT_MEMLOCK, RLIMIT_MSGQUEUE, RLIMIT_NICE, RLIMIT_NLIMITS, RLIMIT_NOFILE, RLIMIT_NPROC, RLIMIT_RSS, RLIMIT_RTPRIO, RLIMIT_RTTIME, RLIMIT_SIGPENDING, RLIMIT_STACK -
Method Summary
Modifier and TypeMethodDescriptionintstatvfs(String path, LibC.Statvfs buf) The function statvfs() returns information about a mounted filesystem.intsysinfo(LibC.Sysinfo info) sysinfo() provides a simple way of getting overall system statistics.Methods inherited from interface com.sun.jna.platform.unix.LibCAPI
close, getdomainname, getegid, getenv, geteuid, getgid, gethostname, getloadavg, getuid, msync, munmap, setdomainname, setegid, setenv, seteuid, setgid, sethostname, setuid, unsetenv
-
Field Details
-
NAME
- See Also:
-
INSTANCE
-
-
Method Details
-
sysinfo
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
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.
-