/**
 * Copyright 2005-2007 Yu Zhang
 * Distributed under the GNU General Public License 2.0
 */

package com.xruby.runtime.builtin;

import com.xruby.runtime.lang.RubyClass;
import com.xruby.runtime.lang.RubyModule;
import com.xruby.runtime.lang.RubyRuntime;
import com.xruby.runtime.value.ObjectFactory;


public class ErrnoModuleBuilder {
    
    public static void initialize() {
        RubyModule m = RubyRuntime.ErrnoModule;
        RubyClass c = m.defineNewClass("ENOENT", RubyRuntime.SystemCallErrorClass);
        c.setConstant("Errno", ObjectFactory.createFixnum(IErrno.ENOENT));
    }

}

@@ -599,24 +599,175 @@
 .ENOENT));%0D%0A
+        c = m.defineNewClass(%22EACCES%22, RubyRuntime.SystemCallErrorClass);%0D%0A        c.setConstant(%22Errno%22, ObjectFactory.createFixnum(IErrno.EACCES));%0D%0A
     %7D%0D%0A%0D%0A%7D%0D%0A

define Errno::EACCES