Examples of eltOk()


Examples of org.jruby.RubyArray.eltOk()

                        // if there are not two elements, raise ArgumentError
                        if (e.size() != 2) {
                            throw runtime.newArgumentError("env assignments must come in pairs");
                        }
                        // if the key is nil, raise TypeError
                        if (e.eltOk(0) == null) {
                            throw runtime.newTypeError(runtime.getNil(), runtime.getStructClass());
                        }
                        // ignore if the value is nil
                        if (e.eltOk(1) == null) {
                            continue;
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

                        // if the key is nil, raise TypeError
                        if (e.eltOk(0) == null) {
                            throw runtime.newTypeError(runtime.getNil(), runtime.getStructClass());
                        }
                        // ignore if the value is nil
                        if (e.eltOk(1) == null) {
                            continue;
                        }
                        ret[i] = e.eltOk(0).toString() + "=" + e.eltOk(1).toString();
                        i++;
                    }
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

                        }
                        // ignore if the value is nil
                        if (e.eltOk(1) == null) {
                            continue;
                        }
                        ret[i] = e.eltOk(0).toString() + "=" + e.eltOk(1).toString();
                        i++;
                    }
                }
            }
           
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

                        }
                        // ignore if the value is nil
                        if (e.eltOk(1) == null) {
                            continue;
                        }
                        ret[i] = e.eltOk(0).toString() + "=" + e.eltOk(1).toString();
                        i++;
                    }
                }
            }
           
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

        long i;
        int ret;

        for (i = 0; i < ary.size(); i++) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int fd = RubyNumeric.fix2int(elt.eltOk(0));
            ret = redirectClose(runtime, eargp, fd, true); /* async-signal-safe */
            if (ret == -1) {
                if (errmsg != null) errmsg[0] = "close";
                return -1;
            }
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

        for (i = 0; i < ary.size();) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int fd;
            RubyArray param = (RubyArray)elt.eltOk(1);
            String path = param.eltOk(0).toString();
            int flags = RubyNumeric.num2int(param.eltOk(1));
            int perm = RubyNumeric.num2int(param.eltOk(2));
            boolean need_close = true;
            // This always succeeds because we defer to posix_spawn
            elt = (RubyArray)ary.eltOk(i);
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

        for (i = 0; i < ary.size();) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int fd;
            RubyArray param = (RubyArray)elt.eltOk(1);
            String path = param.eltOk(0).toString();
            int flags = RubyNumeric.num2int(param.eltOk(1));
            int perm = RubyNumeric.num2int(param.eltOk(2));
            boolean need_close = true;
            // This always succeeds because we defer to posix_spawn
            elt = (RubyArray)ary.eltOk(i);
            fd = RubyNumeric.fix2int(elt.eltOk(0));
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

            RubyArray elt = (RubyArray)ary.eltOk(i);
            int fd;
            RubyArray param = (RubyArray)elt.eltOk(1);
            String path = param.eltOk(0).toString();
            int flags = RubyNumeric.num2int(param.eltOk(1));
            int perm = RubyNumeric.num2int(param.eltOk(2));
            boolean need_close = true;
            // This always succeeds because we defer to posix_spawn
            elt = (RubyArray)ary.eltOk(i);
            fd = RubyNumeric.fix2int(elt.eltOk(0));
            redirectOpen(eargp, fd, path, flags, perm); /* async-signal-safe */
 
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

        long i;
        int ret;

        for (i = 0; i < ary.size(); i++) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int newfd = RubyNumeric.fix2int(elt.eltOk(0));
            int oldfd = RubyNumeric.fix2int(elt.eltOk(1));

            // Don't have to save in parent, since we let posix_spawn dup2
//            if (saveRedirectFd(runtime, newfd, sargp, errmsg) < 0) /* async-signal-safe */
//                return -1;
View Full Code Here

Examples of org.jruby.RubyArray.eltOk()

        int ret;

        for (i = 0; i < ary.size(); i++) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int newfd = RubyNumeric.fix2int(elt.eltOk(0));
            int oldfd = RubyNumeric.fix2int(elt.eltOk(1));

            // Don't have to save in parent, since we let posix_spawn dup2
//            if (saveRedirectFd(runtime, newfd, sargp, errmsg) < 0) /* async-signal-safe */
//                return -1;

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.