| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static int | _cachedUmask
The last umask we set |
| private static final Object | _umaskLock
An object to synchronize calls to umask |
| public String | errmsg
The recommended error message, if any. |
| private final ThreadLocal | |
| public Throwable | error
The last Throwable exception raised by a call. |
| private static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final int | |
| private final POSIX | posix
The POSIX instance to use for native calls |
| private final Ruby | runtime
The current runtime |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final PosixShim. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private int | |
| private void | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public Errno | |
| private int | |
| private static int | |
| private static boolean | |
| public long | |
| public Channel | |
| public Channel | |
| public Channel | |
| private int | |
| public Channel[] | |
| public int | |
| public int | |
| public int | |
| public void | |
| public long | |
| private int | |
| public static int | |
| public static int | |
| private int | |
| public int | |
| public int |
| _cachedUmask | back to summary |
|---|---|
| private static int _cachedUmask The last umask we set | |
| _umaskLock | back to summary |
|---|---|
| private static final Object _umaskLock An object to synchronize calls to umask | |
| errmsg | back to summary |
|---|---|
| public String errmsg The recommended error message, if any. | |
| errno | back to summary |
|---|---|
| private final ThreadLocal<Errno> errno | |
| error | back to summary |
|---|---|
| public Throwable error The last Throwable exception raised by a call. | |
| JAVA_EOF | back to summary |
|---|---|
| private static final int JAVA_EOF | |
| LOCK_EX | back to summary |
|---|---|
| public static final int LOCK_EX | |
| LOCK_NB | back to summary |
|---|---|
| public static final int LOCK_NB | |
| LOCK_SH | back to summary |
|---|---|
| public static final int LOCK_SH | |
| LOCK_UN | back to summary |
|---|---|
| public static final int LOCK_UN | |
| NATIVE_EOF | back to summary |
|---|---|
| private static final int NATIVE_EOF | |
| posix | back to summary |
|---|---|
| private final POSIX posix The POSIX instance to use for native calls | |
| runtime | back to summary |
|---|---|
| private final Ruby runtime The current runtime | |
| SEEK_CUR | back to summary |
|---|---|
| public static final int SEEK_CUR | |
| SEEK_END | back to summary |
|---|---|
| public static final int SEEK_END | |
| SEEK_SET | back to summary |
|---|---|
| public static final int SEEK_SET | |
| WAIT_MACROS | back to summary |
|---|---|
| public static final PosixShim. | |
| PosixShim | back to summary |
|---|---|
| public PosixShim(Ruby runtime) | |
| checkForBlocking | back to summary |
|---|---|
| private boolean checkForBlocking(ChannelFD fd, boolean nonblock) throws IOException | |
| checkSharedExclusive | back to summary |
|---|---|
| private int checkSharedExclusive(ChannelFD fd, int lockMode) | |
| clear | back to summary |
|---|---|
| private void clear() | |
| close | back to summary |
|---|---|
| public int close(ChannelFD fd) | |
| close | back to summary |
|---|---|
| public int close(Closeable closeable) | |
| dup2 | back to summary |
|---|---|
| public int dup2(ChannelFD filedes, ChannelFD filedes2) | |
| fcntlGetFD | back to summary |
|---|---|
| public int fcntlGetFD(int fd) | |
| fcntlSetFD | back to summary |
|---|---|
| public int fcntlSetFD(int fd, int flags) | |
| flock | back to summary |
|---|---|
| public int flock(ChannelFD fd, int lockMode) | |
| ftruncate | back to summary |
|---|---|
| public int ftruncate(ChannelFD fd, long pos) | |
| getErrno | back to summary |
|---|---|
| public Errno getErrno() The appropriate errno value for the last thrown error, if any. | |
| lock | back to summary |
|---|---|
| private int lock(ChannelFD fd, boolean exclusive) throws IOException | |
| lockFailedReturn | back to summary |
|---|---|
| private static int lockFailedReturn(int lockMode) | |
| lockStateChanges | back to summary |
|---|---|
| private static boolean lockStateChanges(FileLock lock, int lockMode) | |
| lseek | back to summary |
|---|---|
| public long lseek(ChannelFD fd, long offset, int type) | |
| open | back to summary |
|---|---|
| public Channel open(String cwd, String path, int flags, int perm) | |
| open | back to summary |
|---|---|
| public Channel open(String cwd, String path, ModeFlags flags, int perm) | |
| open | back to summary |
|---|---|
| public Channel open(String cwd, String path, ModeFlags flags, int perm, ClassLoader classLoader)
Deprecated
| |
| performRead | back to summary |
|---|---|
| private int performRead(ChannelFD fd, ByteBuffer buffer, boolean nonblock) throws IOException | |
| pipe | back to summary |
|---|---|
| public Channel[] pipe() | |
| read | back to summary |
|---|---|
| public int read(ChannelFD fd, byte[] target, int offset, int length, boolean nonblock) | |
| read | back to summary |
|---|---|
| public int read(ChannelFD fd, ByteBuffer buffer, int offset, int length, boolean nonblock) | |
| setCloexec | back to summary |
|---|---|
| public int setCloexec(int fd, boolean cloexec) | |
| setErrno | back to summary |
|---|---|
| public void setErrno(Errno errno) | |
| size | back to summary |
|---|---|
| public long size(ChannelFD fd) | |
| tryLock | back to summary |
|---|---|
| private int tryLock(ChannelFD fd, boolean exclusive) throws IOException | |
| umask | back to summary |
|---|---|
| public static int umask(POSIX posix) Joy of POSIX, only way to get the umask is to set the umask, then set it back. That's unsafe in a threaded program. We minimize but may not totally remove this race by caching the obtained or previously set (see umask() above) umask and using that as the initial set value which, cross fingers, is a no-op. The cache access is then synchronized. Todo Better? | |
| umask | back to summary |
|---|---|
| public static int umask(POSIX posix, int newMask) | |
| unlock | back to summary |
|---|---|
| private int unlock(ChannelFD fd) throws IOException | |
| write | back to summary |
|---|---|
| public int write(ChannelFD fd, byte[] bytes, int offset, int length, boolean nonblock) | |
| write | back to summary |
|---|---|
| public int write(ChannelFD fd, ByteBuffer buffer, int offset, int length, boolean nonblock) | |
| Modifier and Type | Field and Description |
|---|---|
| public final long | |
| public final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| public int |
| _WSTOPPED | back to summary |
|---|---|
| public final long _WSTOPPED | |
| WCOREFLAG | back to summary |
|---|---|
| public final long WCOREFLAG | |
| BSDWaitMacros | back to summary |
|---|---|
| public BSDWaitMacros() | |
| _WSTATUS | back to summary |
|---|---|
| public long _WSTATUS(long status) | |
| WCOREDUMP | back to summary |
|---|---|
| public boolean WCOREDUMP(long status) Implements org. | |
| WEXITSTATUS | back to summary |
|---|---|
| public int WEXITSTATUS(long status) Implements org. | |
| WIFEXITED | back to summary |
|---|---|
| public boolean WIFEXITED(long status) Implements org. | |
| WIFSIGNALED | back to summary |
|---|---|
| public boolean WIFSIGNALED(long status) Implements org. | |
| WIFSTOPPED | back to summary |
|---|---|
| public boolean WIFSTOPPED(long status) Implements org. | |
| WSTOPSIG | back to summary |
|---|---|
| public int WSTOPSIG(long status) Implements org. | |
| WTERMSIG | back to summary |
|---|---|
| public int WTERMSIG(long status) Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private boolean | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| public int |
| __W_CONTINUED | back to summary |
|---|---|
| private static int __W_CONTINUED | |
| __WCOREFLAG | back to summary |
|---|---|
| private static final int __WCOREFLAG | |
| LinuxWaitMacros | back to summary |
|---|---|
| public LinuxWaitMacros() | |
| __W_EXITCODE | back to summary |
|---|---|
| private int __W_EXITCODE(int ret, int sig) | |
| __W_STOPCODE | back to summary |
|---|---|
| private int __W_STOPCODE(int sig) | |
| __WAIT_INT | back to summary |
|---|---|
| private int __WAIT_INT(long status) | |
| __WCOREDUMP | back to summary |
|---|---|
| private boolean __WCOREDUMP(long status) | |
| __WEXITSTATUS | back to summary |
|---|---|
| private int __WEXITSTATUS(long status) | |
| __WIFEXITED | back to summary |
|---|---|
| private boolean __WIFEXITED(long status) | |
| __WIFSIGNALED | back to summary |
|---|---|
| private boolean __WIFSIGNALED(long status) | |
| __WIFSTOPPED | back to summary |
|---|---|
| private boolean __WIFSTOPPED(long status) | |
| __WSTOPSIG | back to summary |
|---|---|
| private int __WSTOPSIG(long status) | |
| __WTERMSIG | back to summary |
|---|---|
| private int __WTERMSIG(long status) | |
| WCOREDUMP | back to summary |
|---|---|
| public boolean WCOREDUMP(long status) Implements org. | |
| WEXITSTATUS | back to summary |
|---|---|
| public int WEXITSTATUS(long status) Implements org. | |
| WIFEXITED | back to summary |
|---|---|
| public boolean WIFEXITED(long status) Implements org. | |
| WIFSIGNALED | back to summary |
|---|---|
| public boolean WIFSIGNALED(long status) Implements org. | |
| WIFSTOPPED | back to summary |
|---|---|
| public boolean WIFSTOPPED(long status) Implements org. | |
| WSTOPSIG | back to summary |
|---|---|
| public int WSTOPSIG(long status) Implements org. | |
| WTERMSIG | back to summary |
|---|---|
| public int WTERMSIG(long status) Implements org. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| public int |
| WCOREDUMP | back to summary |
|---|---|
| public boolean WCOREDUMP(long status) | |
| WEXITSTATUS | back to summary |
|---|---|
| public int WEXITSTATUS(long status) | |
| WIFEXITED | back to summary |
|---|---|
| public boolean WIFEXITED(long status) | |
| WIFSIGNALED | back to summary |
|---|---|
| public boolean WIFSIGNALED(long status) | |
| WIFSTOPPED | back to summary |
|---|---|
| public boolean WIFSTOPPED(long status) | |
| WSTOPSIG | back to summary |
|---|---|
| public int WSTOPSIG(long status) | |
| WTERMSIG | back to summary |
|---|---|
| public int WTERMSIG(long status) | |