Top Description Inners Fields Constructors Methods
jnr.enxio.channels

public final Class WinLibCAdapter

extends Object
implements LibC, LoadedLibrary
Class Inheritance
All Implemented Interfaces
jnr.ffi.provider.LoadedLibrary, jnr.enxio.channels.Native.LibC
Imports
java.nio.ByteBuffer, jnr.enxio.channels.Native.LibC, .Native.Timespec, jnr.ffi.Pointer, .Runtime, jnr.ffi.annotations.IgnoreError, .In, .Out, jnr.ffi.provider.LoadedLibrary, jnr.ffi.types.size_t, .ssize_t

MSVCRT.DLL only supports some LibC functions, but the symbols are different. This adapter maps the MSVCRT.DLL names to standard LibC names

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private WinLibCAdapter.LibMSVCRT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
fcntl(int fd, int cmd, int data)

Implements jnr.enxio.channels.Native.LibC.fcntl.

public Runtime
public int
kevent(int kq, ByteBuffer changebuf, int nchanges, ByteBuffer eventbuf, int nevents, Native.Timespec timeout)

Implements jnr.enxio.channels.Native.LibC.kevent.

public int
kevent(int kq, Pointer changebuf, int nchanges, Pointer eventbuf, int nevents, Native.Timespec timeout)

Implements jnr.enxio.channels.Native.LibC.kevent.

public int
public int
public int
poll(ByteBuffer pfds, int nfds, int timeout)

Implements jnr.enxio.channels.Native.LibC.poll.

public int
poll(Pointer pfds, int nfds, int timeout)

Implements jnr.enxio.channels.Native.LibC.poll.

public int
read(int fd, ByteBuffer data, long size)

Implements jnr.enxio.channels.Native.LibC.read.

public int
read(int fd, byte[] data, long size)

Implements jnr.enxio.channels.Native.LibC.read.

public int
public String
public int
write(int fd, ByteBuffer data, long size)

Implements jnr.enxio.channels.Native.LibC.write.

public int
write(int fd, byte[] data, long size)

Implements jnr.enxio.channels.Native.LibC.write.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

winback to summary
private WinLibCAdapter.LibMSVCRT win

Constructor Detail

WinLibCAdapterback to summary
public WinLibCAdapter(WinLibCAdapter.LibMSVCRT winlibc)

Method Detail

closeback to summary
public int close(int fd)

Implements jnr.enxio.channels.Native.LibC.close.

Annotations
@Override
fcntlback to summary
public int fcntl(int fd, int cmd, int data)

Implements jnr.enxio.channels.Native.LibC.fcntl.

Annotations
@Override
getRuntimeback to summary
public Runtime getRuntime()

Implements jnr.ffi.provider.LoadedLibrary.getRuntime.

Annotations
@Override
keventback to summary
public int kevent(int kq, ByteBuffer changebuf, int nchanges, ByteBuffer eventbuf, int nevents, Native.Timespec timeout)

Implements jnr.enxio.channels.Native.LibC.kevent.

Annotations
@Override
keventback to summary
public int kevent(int kq, Pointer changebuf, int nchanges, Pointer eventbuf, int nevents, Native.Timespec timeout)

Implements jnr.enxio.channels.Native.LibC.kevent.

Annotations
@Override
kqueueback to summary
public int kqueue()

Implements jnr.enxio.channels.Native.LibC.kqueue.

Annotations
@Override
pipeback to summary
public int pipe(int[] fds)

Implements jnr.enxio.channels.Native.LibC.pipe.

Annotations
@Override
pollback to summary
public int poll(ByteBuffer pfds, int nfds, int timeout)

Implements jnr.enxio.channels.Native.LibC.poll.

Annotations
@Override
pollback to summary
public int poll(Pointer pfds, int nfds, int timeout)

Implements jnr.enxio.channels.Native.LibC.poll.

Annotations
@Override
readback to summary
public int read(int fd, ByteBuffer data, long size)

Implements jnr.enxio.channels.Native.LibC.read.

Annotations
@Override
readback to summary
public int read(int fd, byte[] data, long size)

Implements jnr.enxio.channels.Native.LibC.read.

Annotations
@Override
shutdownback to summary
public int shutdown(int s, int how)

Implements jnr.enxio.channels.Native.LibC.shutdown.

Annotations
@Override
strerrorback to summary
public String strerror(int error)

Implements jnr.enxio.channels.Native.LibC.strerror.

Annotations
@Override
writeback to summary
public int write(int fd, ByteBuffer data, long size)

Implements jnr.enxio.channels.Native.LibC.write.

Annotations
@Override
writeback to summary
public int write(int fd, byte[] data, long size)

Implements jnr.enxio.channels.Native.LibC.write.

Annotations
@Override
jnr.enxio.channels back to summary

public Interface WinLibCAdapter.LibMSVCRT


Method Summary

Modifier and TypeMethod and Description
public int
_close(int fd)

public int
_pipe(int[] fds)

public int
_read(int fd, ByteBuffer data, long size)

public int
_read(int fd, byte[] data, long size)

public String
_strerror(int error)

public int
_write(int fd, ByteBuffer data, long size)

public int
_write(int fd, byte[] data, long size)

Method Detail

_closeback to summary
public int _close(int fd)
_pipeback to summary
public int _pipe(int[] fds)
_readback to summary
public int _read(int fd, ByteBuffer data, long size)
Annotations
@ssize_t
_readback to summary
public int _read(int fd, byte[] data, long size)
Annotations
@ssize_t
_strerrorback to summary
public String _strerror(int error)
Annotations
@IgnoreError
_writeback to summary
public int _write(int fd, ByteBuffer data, long size)
Annotations
@ssize_t
_writeback to summary
public int _write(int fd, byte[] data, long size)
Annotations
@ssize_t