POSIX Standard C Library wrapper interface @author Jakub Vaněk @since 2.4.7
| 13 | * @since 2.4.7 |
| 14 | */ |
| 15 | public 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 | } |
no outgoing calls
no test coverage detected