public final class WinLibCAdapter extends Object implements Native.LibC, jnr.ffi.provider.LoadedLibrary
Modifier and Type | Class and Description |
---|---|
static interface |
WinLibCAdapter.LibMSVCRT |
F_GETFL, F_SETFL, O_NONBLOCK
Constructor and Description |
---|
WinLibCAdapter(WinLibCAdapter.LibMSVCRT winlibc) |
Modifier and Type | Method and Description |
---|---|
int |
close(int fd) |
int |
fcntl(int fd,
int cmd,
int data) |
jnr.ffi.Runtime |
getRuntime() |
int |
kevent(int kq,
ByteBuffer changebuf,
int nchanges,
ByteBuffer eventbuf,
int nevents,
Native.Timespec timeout) |
int |
kevent(int kq,
jnr.ffi.Pointer changebuf,
int nchanges,
jnr.ffi.Pointer eventbuf,
int nevents,
Native.Timespec timeout) |
int |
kqueue() |
int |
pipe(int[] fds) |
int |
poll(ByteBuffer pfds,
int nfds,
int timeout) |
int |
poll(jnr.ffi.Pointer pfds,
int nfds,
int timeout) |
int |
read(int fd,
byte[] data,
long size) |
int |
read(int fd,
ByteBuffer data,
long size) |
int |
shutdown(int s,
int how) |
String |
strerror(int error) |
int |
write(int fd,
byte[] data,
long size) |
int |
write(int fd,
ByteBuffer data,
long size) |
public WinLibCAdapter(WinLibCAdapter.LibMSVCRT winlibc)
public int close(int fd)
close
in interface Native.LibC
public int read(int fd, ByteBuffer data, long size)
read
in interface Native.LibC
public int read(int fd, byte[] data, long size)
read
in interface Native.LibC
public int write(int fd, ByteBuffer data, long size)
write
in interface Native.LibC
public int write(int fd, byte[] data, long size)
write
in interface Native.LibC
public int pipe(int[] fds)
pipe
in interface Native.LibC
public String strerror(int error)
strerror
in interface Native.LibC
public jnr.ffi.Runtime getRuntime()
getRuntime
in interface jnr.ffi.provider.LoadedLibrary
public int fcntl(int fd, int cmd, int data)
fcntl
in interface Native.LibC
public int poll(ByteBuffer pfds, int nfds, int timeout)
poll
in interface Native.LibC
public int poll(jnr.ffi.Pointer pfds, int nfds, int timeout)
poll
in interface Native.LibC
public int kqueue()
kqueue
in interface Native.LibC
public int kevent(int kq, ByteBuffer changebuf, int nchanges, ByteBuffer eventbuf, int nevents, Native.Timespec timeout)
kevent
in interface Native.LibC
public int kevent(int kq, jnr.ffi.Pointer changebuf, int nchanges, jnr.ffi.Pointer eventbuf, int nevents, Native.Timespec timeout)
kevent
in interface Native.LibC
public int shutdown(int s, int how)
shutdown
in interface Native.LibC
Copyright © 2024. All rights reserved.