public class PosixShim extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PosixShim.BSDWaitMacros |
static class |
PosixShim.LinuxWaitMacros |
static interface |
PosixShim.WaitMacros |
Modifier and Type | Field and Description |
---|---|
String |
errmsg
The recommended error message, if any.
|
jnr.constants.platform.Errno |
errno
The appropriate errno value for the last thrown error, if any.
|
Throwable |
error
The last Throwable exception raised by a call.
|
static int |
LOCK_EX |
static int |
LOCK_NB |
static int |
LOCK_SH |
static int |
LOCK_UN |
static int |
SEEK_CUR |
static int |
SEEK_END |
static int |
SEEK_SET |
static PosixShim.WaitMacros |
WAIT_MACROS |
Constructor and Description |
---|
PosixShim(jnr.posix.POSIX posix) |
Modifier and Type | Method and Description |
---|---|
int |
close(ChannelFD fd) |
int |
close(Closeable closeable) |
int |
dup2(ChannelFD filedes,
ChannelFD filedes2) |
int |
flock(ChannelFD fd,
int lockMode) |
int |
ftruncate(ChannelFD fd,
long pos) |
long |
lseek(ChannelFD fd,
long offset,
int type) |
Channel |
open(String cwd,
String path,
ModeFlags flags,
int perm) |
Channel |
open(String cwd,
String path,
ModeFlags flags,
int perm,
ClassLoader classLoader) |
Channel[] |
pipe() |
int |
read(ChannelFD fd,
byte[] target,
int offset,
int length,
boolean nonblock) |
int |
setCloexec(int fd,
boolean cloexec) |
long |
size(ChannelFD fd) |
static int |
umask(jnr.posix.POSIX posix)
Joy of POSIX, only way to get the umask is to set the umask,
then set it back.
|
static int |
umask(jnr.posix.POSIX posix,
int newMask) |
int |
write(ChannelFD fd,
byte[] bytes,
int offset,
int length,
boolean nonblock) |
public static final int LOCK_SH
public static final int LOCK_EX
public static final int LOCK_NB
public static final int LOCK_UN
public static final int SEEK_SET
public static final int SEEK_CUR
public static final int SEEK_END
public static final PosixShim.WaitMacros WAIT_MACROS
public Throwable error
public jnr.constants.platform.Errno errno
public String errmsg
public long lseek(ChannelFD fd, long offset, int type)
public int write(ChannelFD fd, byte[] bytes, int offset, int length, boolean nonblock)
public int read(ChannelFD fd, byte[] target, int offset, int length, boolean nonblock)
public int flock(ChannelFD fd, int lockMode)
public int close(ChannelFD fd)
public int close(Closeable closeable)
public Channel[] pipe()
public int setCloexec(int fd, boolean cloexec)
public Channel open(String cwd, String path, ModeFlags flags, int perm, ClassLoader classLoader)
public static int umask(jnr.posix.POSIX posix)
public static int umask(jnr.posix.POSIX posix, int newMask)
public int ftruncate(ChannelFD fd, long pos)
public long size(ChannelFD fd)
Copyright © 2001-2015 JRuby. All Rights Reserved.