MCPcopy Index your code
hub / github.com/ev3dev-lang-java/ev3dev-lang-java / ILibc

Interface ILibc

src/main/java/ev3dev/utils/io/ILibc.java:15–41  ·  view source on GitHub ↗

POSIX Standard C Library wrapper interface @author Jakub Vaněk @since 2.4.7

Source from the content-addressed store, hash-verified

13 * @since 2.4.7
14 */
15public interface ILibc {
16 // file descriptor operations
17 int fcntl(int fd, int cmd, int arg) throws LastErrorException;
18
19 // ioctls
20 int ioctl(int fd, int cmd, int arg) throws LastErrorException;
21
22 int ioctl(int fd, int cmd, Pointer arg) throws LastErrorException;
23
24 // open/close
25
26 int open(String path, int flags, int mode) throws LastErrorException;
27
28 int close(int fd) throws LastErrorException;
29
30 // read/write
31 int write(int fd, Buffer buffer, int count) throws LastErrorException;
32
33 int read(int fd, Buffer buffer, int count) throws LastErrorException;
34
35 // map/unmap
36 Pointer mmap(Pointer addr, NativeLong len, int prot, int flags, int fd, NativeLong off) throws LastErrorException;
37
38 int munmap(Pointer addr, NativeLong len) throws LastErrorException;
39
40 int msync(Pointer addr, NativeLong len, int flags) throws LastErrorException;
41}

Callers 50

fcntlMethod · 0.65
fcntlMethod · 0.65
ioctlMethod · 0.65
ioctlMethod · 0.65
getVTmodeMethod · 0.65
setVTmodeMethod · 0.65
getVTstateMethod · 0.65
getKeyboardModeMethod · 0.65
setKeyboardModeMethod · 0.65
setConsoleModeMethod · 0.65
openMethod · 0.65
playSampleMethod · 0.65

Implementers 4

EmulatedLibcsrc/test/java/fake_ev3dev/ev3dev/utils
NativeLibcsrc/main/java/ev3dev/utils/io/NativeLi
EmulatedFramebuffersrc/test/java/fake_ev3dev/ev3dev/utils
CountingFilesrc/test/java/fake_ev3dev/ev3dev/utils

Calls

no outgoing calls

Tested by

no test coverage detected