public static void rb_maygvl_fd_fix_cloexec(Ruby runtime, int fd) { PosixShim shim = new PosixShim(runtime); OpenFile.fdFixCloexec(shim, fd); } }
public static void rb_maygvl_fd_fix_cloexec(Ruby runtime, int fd) { PosixShim shim = new PosixShim(runtime); OpenFile.fdFixCloexec(shim, fd); } }
public OpenFile(IRubyObject nil) { runtime = nil.getRuntime(); writeconvAsciicompat = nil; writeconvPreEcopts = nil; encs.ecopts = nil; posix = new PosixShim(runtime); }
public OpenFile(IRubyObject nil) { runtime = nil.getRuntime(); writeconvAsciicompat = nil; writeconvPreEcopts = nil; encs.ecopts = nil; posix = new PosixShim(runtime); }
private void checkReopenCloexecDup2(Ruby runtime, OpenFile orig, ChannelFD oldfd, ChannelFD newfd) { OpenFile.cloexecDup2(new PosixShim(runtime), oldfd, newfd); }
private void checkReopenCloexecDup2(Ruby runtime, OpenFile orig, ChannelFD oldfd, ChannelFD newfd) { OpenFile.cloexecDup2(new PosixShim(runtime), oldfd, newfd); }
public static ChannelFD cloexecOpen(Ruby runtime, Sysopen data) { Channel ret = null; if (OpenFlags.O_CLOEXEC.defined()) { data.oflags |= OpenFlags.O_CLOEXEC.intValue(); } else { // #elif defined O_NOINHERIT // flags |= O_NOINHERIT; } PosixShim shim = new PosixShim(runtime); ret = shim.open(runtime.getCurrentDirectory(), data.fname, data.oflags, data.perm); if (ret == null) { data.errno = shim.errno; return null; } ChannelFD fd = new ChannelFD(ret, runtime.getPosix(), runtime.getFilenoUtil()); if (fd.realFileno > 0 && runtime.getPosix().isNative()) { OpenFile.fdFixCloexec(shim, fd.realFileno); } return fd; }
public static ChannelFD cloexecOpen(Ruby runtime, Sysopen data) { Channel ret = null; if (OpenFlags.O_CLOEXEC.defined()) { data.oflags |= OpenFlags.O_CLOEXEC.intValue(); } else { // #elif defined O_NOINHERIT // flags |= O_NOINHERIT; } PosixShim shim = new PosixShim(runtime); ret = shim.open(runtime.getCurrentDirectory(), data.fname, data.oflags, data.perm); if (ret == null) { data.errno = shim.errno; return null; } ChannelFD fd = new ChannelFD(ret, runtime.getPosix(), runtime.getFilenoUtil()); if (fd.realFileno > 0 && runtime.getPosix().isNative()) { OpenFile.fdFixCloexec(shim, fd.realFileno); } return fd; }
OpenFile write_fptr; IRubyObject write_port; PosixShim posix = new PosixShim(runtime);
OpenFile write_fptr; IRubyObject write_port; PosixShim posix = new PosixShim(runtime);
PosixShim posix = new PosixShim(runtime); Channel[] fds = posix.pipe(); if (fds == null)
PosixShim posix = new PosixShim(runtime); Channel[] fds = posix.pipe(); if (fds == null)