~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/nbody-java/org_apache_harmony_luni_platform_OSNetworkSystem.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "xmlvm.h"
 
2
#include "java_io_FileDescriptor.h"
 
3
#include "java_lang_Class.h"
 
4
#include "java_lang_Long.h"
 
5
#include "java_lang_String.h"
 
6
#include "java_net_InetAddress.h"
 
7
#include "java_net_SocketException.h"
 
8
 
 
9
#include "org_apache_harmony_luni_platform_OSNetworkSystem.h"
 
10
 
 
11
#define XMLVM_CURRENT_CLASS_NAME OSNetworkSystem
 
12
#define XMLVM_CURRENT_PKG_CLASS_NAME org_apache_harmony_luni_platform_OSNetworkSystem
 
13
 
 
14
__TIB_DEFINITION_org_apache_harmony_luni_platform_OSNetworkSystem __TIB_org_apache_harmony_luni_platform_OSNetworkSystem = {
 
15
    0, // classInitializationBegan
 
16
    0, // classInitialized
 
17
    -1, // initializerThreadId
 
18
    __INIT_org_apache_harmony_luni_platform_OSNetworkSystem, // classInitializer
 
19
    "org.apache.harmony.luni.platform.OSNetworkSystem", // className
 
20
    "org.apache.harmony.luni.platform", // package
 
21
    JAVA_NULL, // enclosingClassName
 
22
    JAVA_NULL, // enclosingMethodName
 
23
    JAVA_NULL, // signature
 
24
    (__TIB_DEFINITION_TEMPLATE*) &__TIB_java_lang_Object, // extends
 
25
    sizeof(org_apache_harmony_luni_platform_OSNetworkSystem), // sizeInstance
 
26
    XMLVM_TYPE_CLASS};
 
27
 
 
28
JAVA_OBJECT __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem;
 
29
JAVA_OBJECT __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_1ARRAY;
 
30
JAVA_OBJECT __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_2ARRAY;
 
31
JAVA_OBJECT __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_3ARRAY;
 
32
//XMLVM_BEGIN_IMPLEMENTATION
 
33
//XMLVM_END_IMPLEMENTATION
 
34
 
 
35
static JAVA_INT _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_TIMEOUT;
 
36
static JAVA_INT _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_INTERRUPTED;
 
37
static JAVA_INT _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_INETADDR_REACHABLE;
 
38
static JAVA_BOOLEAN _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_isNetworkInited;
 
39
static JAVA_OBJECT _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_singleton;
 
40
static JAVA_BOOLEAN _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem__assertionsDisabled;
 
41
 
 
42
#include "xmlvm-reflection.h"
 
43
 
 
44
static XMLVM_FIELD_REFLECTION_DATA __field_reflection_data[] = {
 
45
};
 
46
 
 
47
static XMLVM_CONSTRUCTOR_REFLECTION_DATA __constructor_reflection_data[] = {
 
48
};
 
49
 
 
50
static JAVA_OBJECT constructor_dispatcher(JAVA_OBJECT constructor, JAVA_OBJECT arguments)
 
51
{
 
52
    XMLVM_NOT_IMPLEMENTED();
 
53
}
 
54
 
 
55
static XMLVM_METHOD_REFLECTION_DATA __method_reflection_data[] = {
 
56
};
 
57
 
 
58
static JAVA_OBJECT method_dispatcher(JAVA_OBJECT method, JAVA_OBJECT receiver, JAVA_OBJECT arguments)
 
59
{
 
60
    XMLVM_NOT_IMPLEMENTED();
 
61
}
 
62
 
 
63
void __INIT_org_apache_harmony_luni_platform_OSNetworkSystem()
 
64
{
 
65
    staticInitializerLock(&__TIB_org_apache_harmony_luni_platform_OSNetworkSystem);
 
66
 
 
67
    // While the static initializer mutex is locked, locally store the value of
 
68
    // whether class initialization began or not
 
69
    int initBegan = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.classInitializationBegan;
 
70
 
 
71
    // Whether or not class initialization had already began, it has begun now
 
72
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.classInitializationBegan = 1;
 
73
 
 
74
    staticInitializerUnlock(&__TIB_org_apache_harmony_luni_platform_OSNetworkSystem);
 
75
 
 
76
    JAVA_LONG curThreadId = (JAVA_LONG)pthread_self();
 
77
    if (initBegan) {
 
78
        if (__TIB_org_apache_harmony_luni_platform_OSNetworkSystem.initializerThreadId != curThreadId) {
 
79
            // Busy wait until the other thread finishes initializing this class
 
80
            while (!__TIB_org_apache_harmony_luni_platform_OSNetworkSystem.classInitialized) {
 
81
                // do nothing
 
82
            }
 
83
        }
 
84
    } else {
 
85
        __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.initializerThreadId = curThreadId;
 
86
        XMLVM_CLASS_USED("org.apache.harmony.luni.platform.OSNetworkSystem")
 
87
        __INIT_IMPL_org_apache_harmony_luni_platform_OSNetworkSystem();
 
88
    }
 
89
}
 
90
 
 
91
void __INIT_IMPL_org_apache_harmony_luni_platform_OSNetworkSystem()
 
92
{
 
93
    // Initialize base class if necessary
 
94
    XMLVM_CLASS_INIT(java_lang_Object)
 
95
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.newInstanceFunc = __NEW_INSTANCE_org_apache_harmony_luni_platform_OSNetworkSystem;
 
96
    // Copy vtable from base class
 
97
    XMLVM_MEMCPY(__TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable, __TIB_java_lang_Object.vtable, sizeof(__TIB_java_lang_Object.vtable));
 
98
    // Initialize vtable for this class
 
99
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[7] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
100
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[6] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
101
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[8] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
102
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[9] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
103
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[13] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
104
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[10] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
105
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[11] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
106
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[12] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
107
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[14] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
108
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[15] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
109
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[16] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
110
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[17] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
111
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[18] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
112
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[19] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
113
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[20] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
114
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[21] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
115
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[22] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
116
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[23] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
117
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[24] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
118
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[25] = (VTABLE_PTR) &org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMP___java_net_InetAddress_java_net_InetAddress_int_int;
 
119
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[26] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
120
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[27] = (VTABLE_PTR) &org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitialization___boolean;
 
121
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[28] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
122
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[30] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
123
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[29] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
124
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[32] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
125
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[31] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
126
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[33] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
127
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[35] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
128
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[34] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
129
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[36] = (VTABLE_PTR) &org_apache_harmony_luni_platform_OSNetworkSystem_select___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_long_int_1ARRAY;
 
130
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[38] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
131
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[37] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
132
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[41] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
133
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[39] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
134
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[40] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
135
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[42] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
136
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[43] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
137
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[44] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
138
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[45] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
139
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[46] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
140
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[47] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
141
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[48] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
142
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[49] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
143
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[51] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
144
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[50] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
145
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[52] = (VTABLE_PTR) &xmlvm_unimplemented_native_method;
 
146
    xmlvm_init_native_org_apache_harmony_luni_platform_OSNetworkSystem();
 
147
    // Initialize interface information
 
148
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.numImplementedInterfaces = 1;
 
149
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.implementedInterfaces = (__TIB_DEFINITION_TEMPLATE* (*)[1]) XMLVM_MALLOC(sizeof(__TIB_DEFINITION_TEMPLATE*) * 1);
 
150
 
 
151
    // Initialize interfaces if necessary and assign tib to implementedInterfaces
 
152
 
 
153
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_INetworkSystem)
 
154
 
 
155
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.implementedInterfaces[0][0] = &__TIB_org_apache_harmony_luni_platform_INetworkSystem;
 
156
    // Initialize itable for this class
 
157
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itableBegin = &__TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[0];
 
158
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_acceptStreamSocket___java_io_FileDescriptor_java_net_SocketImpl_java_io_FileDescriptor_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[6];
 
159
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_accept___java_io_FileDescriptor_java_net_SocketImpl_java_io_FileDescriptor_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[7];
 
160
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_availableStream___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[8];
 
161
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_bind___java_io_FileDescriptor_java_net_InetAddress_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[9];
 
162
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_connectDatagram___java_io_FileDescriptor_int_int_java_net_InetAddress] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[10];
 
163
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_connectStreamWithTimeoutSocket___java_io_FileDescriptor_int_int_int_java_net_InetAddress] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[11];
 
164
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_connectWithTimeout___java_io_FileDescriptor_int_int_java_net_InetAddress_int_int_java_lang_Long] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[12];
 
165
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_connect___java_io_FileDescriptor_int_java_net_InetAddress_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[13];
 
166
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_createDatagramSocket___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[14];
 
167
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_createServerStreamSocket___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[15];
 
168
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_createStreamSocket___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[16];
 
169
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_disconnectDatagram___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[17];
 
170
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getHostByAddr___byte_1ARRAY] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[18];
 
171
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getHostByName___java_lang_String_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[19];
 
172
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getSocketFlags__] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[20];
 
173
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getSocketLocalAddress___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[21];
 
174
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getSocketLocalPort___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[22];
 
175
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_getSocketOption___java_io_FileDescriptor_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[23];
 
176
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_inheritedChannel__] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[24];
 
177
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_isReachableByICMP___java_net_InetAddress_java_net_InetAddress_int_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[25];
 
178
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_listenStreamSocket___java_io_FileDescriptor_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[26];
 
179
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_oneTimeInitialization___boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[27];
 
180
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_peekDatagram___java_io_FileDescriptor_java_net_InetAddress_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[28];
 
181
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_readDirect___java_io_FileDescriptor_long_int_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[29];
 
182
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_read___java_io_FileDescriptor_byte_1ARRAY_int_int_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[30];
 
183
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_receiveDatagramDirect___java_io_FileDescriptor_java_net_DatagramPacket_long_int_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[31];
 
184
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_receiveDatagram___java_io_FileDescriptor_java_net_DatagramPacket_byte_1ARRAY_int_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[32];
 
185
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_receiveStream___java_io_FileDescriptor_byte_1ARRAY_int_int_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[33];
 
186
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_recvConnectedDatagramDirect___java_io_FileDescriptor_java_net_DatagramPacket_long_int_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[34];
 
187
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_recvConnectedDatagram___java_io_FileDescriptor_java_net_DatagramPacket_byte_1ARRAY_int_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[35];
 
188
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_select___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_long_int_1ARRAY] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[36];
 
189
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendConnectedDatagramDirect___java_io_FileDescriptor_long_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[37];
 
190
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendConnectedDatagram___java_io_FileDescriptor_byte_1ARRAY_int_int_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[38];
 
191
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendDatagram2___java_io_FileDescriptor_byte_1ARRAY_int_int_int_java_net_InetAddress] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[39];
 
192
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendDatagramDirect___java_io_FileDescriptor_long_int_int_int_boolean_int_java_net_InetAddress] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[40];
 
193
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendDatagram___java_io_FileDescriptor_byte_1ARRAY_int_int_int_boolean_int_java_net_InetAddress] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[41];
 
194
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_sendUrgentData___java_io_FileDescriptor_byte] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[42];
 
195
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_setInetAddress___java_net_InetAddress_byte_1ARRAY] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[43];
 
196
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_setNonBlocking___java_io_FileDescriptor_boolean] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[44];
 
197
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_setSocketOption___java_io_FileDescriptor_int_java_lang_Object] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[45];
 
198
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_shutdownInput___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[46];
 
199
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_shutdownOutput___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[47];
 
200
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_socketClose___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[48];
 
201
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_supportsUrgentData___java_io_FileDescriptor] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[49];
 
202
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_writeDirect___java_io_FileDescriptor_long_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[50];
 
203
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_write___java_io_FileDescriptor_byte_1ARRAY_int_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[51];
 
204
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.itable[XMLVM_ITABLE_IDX_org_apache_harmony_luni_platform_INetworkSystem_writev___java_io_FileDescriptor_java_lang_Object_1ARRAY_int_1ARRAY_int_1ARRAY_int] = __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.vtable[52];
 
205
 
 
206
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_TIMEOUT = -209;
 
207
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_INTERRUPTED = -208;
 
208
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_INETADDR_REACHABLE = 0;
 
209
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_isNetworkInited = 0;
 
210
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_singleton = (org_apache_harmony_luni_platform_OSNetworkSystem*) JAVA_NULL;
 
211
    _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem__assertionsDisabled = 0;
 
212
 
 
213
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.declaredFields = &__field_reflection_data[0];
 
214
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.numDeclaredFields = sizeof(__field_reflection_data) / sizeof(XMLVM_FIELD_REFLECTION_DATA);
 
215
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.constructorDispatcherFunc = constructor_dispatcher;
 
216
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.declaredConstructors = &__constructor_reflection_data[0];
 
217
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.numDeclaredConstructors = sizeof(__constructor_reflection_data) / sizeof(XMLVM_CONSTRUCTOR_REFLECTION_DATA);
 
218
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.methodDispatcherFunc = method_dispatcher;
 
219
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.declaredMethods = &__method_reflection_data[0];
 
220
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.numDeclaredMethods = sizeof(__method_reflection_data) / sizeof(XMLVM_METHOD_REFLECTION_DATA);
 
221
    __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem = XMLVM_CREATE_CLASS_OBJECT(&__TIB_org_apache_harmony_luni_platform_OSNetworkSystem);
 
222
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.clazz = __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem;
 
223
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.baseType = JAVA_NULL;
 
224
    __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_1ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_org_apache_harmony_luni_platform_OSNetworkSystem);
 
225
    __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_2ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_1ARRAY);
 
226
    __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_3ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_org_apache_harmony_luni_platform_OSNetworkSystem_2ARRAY);
 
227
    org_apache_harmony_luni_platform_OSNetworkSystem___CLINIT_();
 
228
    //XMLVM_BEGIN_WRAPPER[__INIT_org_apache_harmony_luni_platform_OSNetworkSystem]
 
229
    //XMLVM_END_WRAPPER
 
230
 
 
231
    __TIB_org_apache_harmony_luni_platform_OSNetworkSystem.classInitialized = 1;
 
232
}
 
233
 
 
234
void __DELETE_org_apache_harmony_luni_platform_OSNetworkSystem(void* me, void* client_data)
 
235
{
 
236
    //XMLVM_BEGIN_WRAPPER[__DELETE_org_apache_harmony_luni_platform_OSNetworkSystem]
 
237
    //XMLVM_END_WRAPPER
 
238
}
 
239
 
 
240
void __INIT_INSTANCE_MEMBERS_org_apache_harmony_luni_platform_OSNetworkSystem(JAVA_OBJECT me, int derivedClassWillRegisterFinalizer)
 
241
{
 
242
    __INIT_INSTANCE_MEMBERS_java_lang_Object(me, 0 || derivedClassWillRegisterFinalizer);
 
243
    //XMLVM_BEGIN_WRAPPER[__INIT_INSTANCE_MEMBERS_org_apache_harmony_luni_platform_OSNetworkSystem]
 
244
    //XMLVM_END_WRAPPER
 
245
}
 
246
 
 
247
JAVA_OBJECT __NEW_org_apache_harmony_luni_platform_OSNetworkSystem()
 
248
{    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
249
org_apache_harmony_luni_platform_OSNetworkSystem* me = (org_apache_harmony_luni_platform_OSNetworkSystem*) XMLVM_MALLOC(sizeof(org_apache_harmony_luni_platform_OSNetworkSystem));
 
250
    me->tib = &__TIB_org_apache_harmony_luni_platform_OSNetworkSystem;
 
251
    __INIT_INSTANCE_MEMBERS_org_apache_harmony_luni_platform_OSNetworkSystem(me, 0);
 
252
    //XMLVM_BEGIN_WRAPPER[__NEW_org_apache_harmony_luni_platform_OSNetworkSystem]
 
253
    //XMLVM_END_WRAPPER
 
254
    return me;
 
255
}
 
256
 
 
257
JAVA_OBJECT __NEW_INSTANCE_org_apache_harmony_luni_platform_OSNetworkSystem()
 
258
{
 
259
    JAVA_OBJECT me = JAVA_NULL;
 
260
    return me;
 
261
}
 
262
 
 
263
JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_GET_ERRORCODE_SOCKET_TIMEOUT()
 
264
{
 
265
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
266
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_TIMEOUT;
 
267
}
 
268
 
 
269
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT_ERRORCODE_SOCKET_TIMEOUT(JAVA_INT v)
 
270
{
 
271
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
272
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_TIMEOUT = v;
 
273
}
 
274
 
 
275
JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_GET_ERRORCODE_SOCKET_INTERRUPTED()
 
276
{
 
277
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
278
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_INTERRUPTED;
 
279
}
 
280
 
 
281
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT_ERRORCODE_SOCKET_INTERRUPTED(JAVA_INT v)
 
282
{
 
283
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
284
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_ERRORCODE_SOCKET_INTERRUPTED = v;
 
285
}
 
286
 
 
287
JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_GET_INETADDR_REACHABLE()
 
288
{
 
289
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
290
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_INETADDR_REACHABLE;
 
291
}
 
292
 
 
293
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT_INETADDR_REACHABLE(JAVA_INT v)
 
294
{
 
295
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
296
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_INETADDR_REACHABLE = v;
 
297
}
 
298
 
 
299
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_GET_isNetworkInited()
 
300
{
 
301
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
302
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_isNetworkInited;
 
303
}
 
304
 
 
305
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT_isNetworkInited(JAVA_BOOLEAN v)
 
306
{
 
307
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
308
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_isNetworkInited = v;
 
309
}
 
310
 
 
311
JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_GET_singleton()
 
312
{
 
313
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
314
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_singleton;
 
315
}
 
316
 
 
317
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT_singleton(JAVA_OBJECT v)
 
318
{
 
319
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
320
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem_singleton = v;
 
321
}
 
322
 
 
323
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_GET__assertionsDisabled()
 
324
{
 
325
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
326
    return _STATIC_org_apache_harmony_luni_platform_OSNetworkSystem__assertionsDisabled;
 
327
}
 
328
 
 
329
void org_apache_harmony_luni_platform_OSNetworkSystem_PUT__assertionsDisabled(JAVA_BOOLEAN v)
 
330
{
 
331
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
332
_STATIC_org_apache_harmony_luni_platform_OSNetworkSystem__assertionsDisabled = v;
 
333
}
 
334
 
 
335
void org_apache_harmony_luni_platform_OSNetworkSystem___CLINIT_()
 
336
{
 
337
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem___CLINIT___]
 
338
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "<clinit>", "?")
 
339
    XMLVMElem _r0;
 
340
    XMLVMElem _r1;
 
341
    _r1.i = 0;
 
342
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 32)
 
343
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
344
    _r0.o = __CLASS_org_apache_harmony_luni_platform_OSNetworkSystem;
 
345
    XMLVM_CHECK_NPE(0)
 
346
    _r0.i = java_lang_Class_desiredAssertionStatus__(_r0.o);
 
347
    if (_r0.i != 0) goto label22;
 
348
    _r0.i = 1;
 
349
    label10:;
 
350
    org_apache_harmony_luni_platform_OSNetworkSystem_PUT__assertionsDisabled( _r0.i);
 
351
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 39)
 
352
    org_apache_harmony_luni_platform_OSNetworkSystem_PUT_isNetworkInited( _r1.i);
 
353
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 41)
 
354
    _r0.o = __NEW_org_apache_harmony_luni_platform_OSNetworkSystem();
 
355
    XMLVM_CHECK_NPE(0)
 
356
    org_apache_harmony_luni_platform_OSNetworkSystem___INIT___(_r0.o);
 
357
    org_apache_harmony_luni_platform_OSNetworkSystem_PUT_singleton( _r0.o);
 
358
    XMLVM_EXIT_METHOD()
 
359
    return;
 
360
    label22:;
 
361
    _r0 = _r1;
 
362
    goto label10;
 
363
    //XMLVM_END_WRAPPER
 
364
}
 
365
 
 
366
JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_getOSNetworkSystem__()
 
367
{
 
368
    XMLVM_CLASS_INIT(org_apache_harmony_luni_platform_OSNetworkSystem)
 
369
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_getOSNetworkSystem__]
 
370
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "getOSNetworkSystem", "?")
 
371
    XMLVMElem _r0;
 
372
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 49)
 
373
    _r0.o = org_apache_harmony_luni_platform_OSNetworkSystem_GET_singleton();
 
374
    XMLVM_EXIT_METHOD()
 
375
    return _r0.o;
 
376
    //XMLVM_END_WRAPPER
 
377
}
 
378
 
 
379
void org_apache_harmony_luni_platform_OSNetworkSystem___INIT___(JAVA_OBJECT me)
 
380
{
 
381
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem___INIT___]
 
382
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "<init>", "?")
 
383
    XMLVMElem _r0;
 
384
    _r0.o = me;
 
385
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 54)
 
386
    XMLVM_CHECK_NPE(0)
 
387
    java_lang_Object___INIT___(_r0.o);
 
388
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 55)
 
389
    XMLVM_EXIT_METHOD()
 
390
    return;
 
391
    //XMLVM_END_WRAPPER
 
392
}
 
393
 
 
394
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_accept___java_io_FileDescriptor_java_net_SocketImpl_java_io_FileDescriptor_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_OBJECT n3, JAVA_INT n4)]
 
395
 
 
396
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_acceptStreamSocket___java_io_FileDescriptor_java_net_SocketImpl_java_io_FileDescriptor_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_OBJECT n3, JAVA_INT n4)]
 
397
 
 
398
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_availableStream___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
399
 
 
400
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_bind___java_io_FileDescriptor_java_net_InetAddress_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3)]
 
401
 
 
402
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_connect___java_io_FileDescriptor_int_java_net_InetAddress_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2, JAVA_OBJECT n3, JAVA_INT n4)]
 
403
 
 
404
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_connectDatagram___java_io_FileDescriptor_int_int_java_net_InetAddress(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2, JAVA_INT n3, JAVA_OBJECT n4)]
 
405
 
 
406
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_connectStreamWithTimeoutSocket___java_io_FileDescriptor_int_int_int_java_net_InetAddress(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2, JAVA_INT n3, JAVA_INT n4, JAVA_OBJECT n5)]
 
407
 
 
408
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_connectWithTimeout___java_io_FileDescriptor_int_int_java_net_InetAddress_int_int_java_lang_Long(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2, JAVA_INT n3, JAVA_OBJECT n4, JAVA_INT n5, JAVA_INT n6, JAVA_OBJECT n7)]
 
409
 
 
410
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_createDatagramSocket___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
411
 
 
412
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_createServerStreamSocket___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
413
 
 
414
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_createStreamSocket___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
415
 
 
416
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_disconnectDatagram___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
417
 
 
418
//XMLVM_NATIVE[JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_getHostByAddr___byte_1ARRAY(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
419
 
 
420
//XMLVM_NATIVE[JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_getHostByName___java_lang_String_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
421
 
 
422
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_getSocketFlags__(JAVA_OBJECT me)]
 
423
 
 
424
//XMLVM_NATIVE[JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_getSocketLocalAddress___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
425
 
 
426
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_getSocketLocalPort___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
427
 
 
428
//XMLVM_NATIVE[JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_getSocketOption___java_io_FileDescriptor_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2)]
 
429
 
 
430
//XMLVM_NATIVE[JAVA_OBJECT org_apache_harmony_luni_platform_OSNetworkSystem_inheritedChannel__(JAVA_OBJECT me)]
 
431
 
 
432
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMP___java_net_InetAddress_java_net_InetAddress_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4)
 
433
{
 
434
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMP___java_net_InetAddress_java_net_InetAddress_int_int]
 
435
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "isReachableByICMP", "?")
 
436
    XMLVMElem _r0;
 
437
    XMLVMElem _r1;
 
438
    XMLVMElem _r2;
 
439
    XMLVMElem _r3;
 
440
    XMLVMElem _r4;
 
441
    XMLVMElem _r5;
 
442
    _r1.o = me;
 
443
    _r2.o = n1;
 
444
    _r3.o = n2;
 
445
    _r4.i = n3;
 
446
    _r5.i = n4;
 
447
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 156)
 
448
    XMLVM_CHECK_NPE(1)
 
449
    _r0.i = org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMPImpl___java_net_InetAddress_java_net_InetAddress_int_int(_r1.o, _r2.o, _r3.o, _r4.i, _r5.i);
 
450
    if (_r0.i != 0) goto label8;
 
451
    _r0.i = 1;
 
452
    label7:;
 
453
    XMLVM_EXIT_METHOD()
 
454
    return _r0.i;
 
455
    label8:;
 
456
    _r0.i = 0;
 
457
    goto label7;
 
458
    //XMLVM_END_WRAPPER
 
459
}
 
460
 
 
461
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMPImpl___java_net_InetAddress_java_net_InetAddress_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4)]
 
462
 
 
463
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_listenStreamSocket___java_io_FileDescriptor_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2)]
 
464
 
 
465
void org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitialization___boolean(JAVA_OBJECT me, JAVA_BOOLEAN n1)
 
466
{
 
467
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitialization___boolean]
 
468
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "oneTimeInitialization", "?")
 
469
    XMLVMElem _r0;
 
470
    XMLVMElem _r1;
 
471
    XMLVMElem _r2;
 
472
    _r1.o = me;
 
473
    _r2.i = n1;
 
474
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 167)
 
475
    _r0.i = org_apache_harmony_luni_platform_OSNetworkSystem_GET_isNetworkInited();
 
476
    if (_r0.i != 0) goto label10;
 
477
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 168)
 
478
    XMLVM_CHECK_NPE(1)
 
479
    org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitializationImpl___boolean(_r1.o, _r2.i);
 
480
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 169)
 
481
    _r0.i = 1;
 
482
    org_apache_harmony_luni_platform_OSNetworkSystem_PUT_isNetworkInited( _r0.i);
 
483
    label10:;
 
484
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 171)
 
485
    XMLVM_EXIT_METHOD()
 
486
    return;
 
487
    //XMLVM_END_WRAPPER
 
488
}
 
489
 
 
490
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_oneTimeInitializationImpl___boolean(JAVA_OBJECT me, JAVA_BOOLEAN n1)]
 
491
 
 
492
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_peekDatagram___java_io_FileDescriptor_java_net_InetAddress_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3)]
 
493
 
 
494
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_read___java_io_FileDescriptor_byte_1ARRAY_int_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_INT n5)]
 
495
 
 
496
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_readDirect___java_io_FileDescriptor_long_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_LONG n2, JAVA_INT n3, JAVA_INT n4)]
 
497
 
 
498
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_receiveDatagram___java_io_FileDescriptor_java_net_DatagramPacket_byte_1ARRAY_int_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_OBJECT n3, JAVA_INT n4, JAVA_INT n5, JAVA_INT n6, JAVA_BOOLEAN n7)]
 
499
 
 
500
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_receiveDatagramDirect___java_io_FileDescriptor_java_net_DatagramPacket_long_int_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_LONG n3, JAVA_INT n4, JAVA_INT n5, JAVA_INT n6, JAVA_BOOLEAN n7)]
 
501
 
 
502
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_receiveStream___java_io_FileDescriptor_byte_1ARRAY_int_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_INT n5)]
 
503
 
 
504
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_recvConnectedDatagram___java_io_FileDescriptor_java_net_DatagramPacket_byte_1ARRAY_int_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_OBJECT n3, JAVA_INT n4, JAVA_INT n5, JAVA_INT n6, JAVA_BOOLEAN n7)]
 
505
 
 
506
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_recvConnectedDatagramDirect___java_io_FileDescriptor_java_net_DatagramPacket_long_int_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_LONG n3, JAVA_INT n4, JAVA_INT n5, JAVA_INT n6, JAVA_BOOLEAN n7)]
 
507
 
 
508
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_select___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_long_int_1ARRAY(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_LONG n5, JAVA_OBJECT n6)
 
509
{
 
510
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_select___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_long_int_1ARRAY]
 
511
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "select", "?")
 
512
    XMLVMElem _r0;
 
513
    XMLVMElem _r1;
 
514
    XMLVMElem _r2;
 
515
    XMLVMElem _r3;
 
516
    XMLVMElem _r4;
 
517
    XMLVMElem _r5;
 
518
    XMLVMElem _r6;
 
519
    XMLVMElem _r7;
 
520
    XMLVMElem _r8;
 
521
    XMLVMElem _r9;
 
522
    XMLVMElem _r10;
 
523
    XMLVMElem _r11;
 
524
    XMLVMElem _r12;
 
525
    XMLVMElem _r13;
 
526
    XMLVMElem _r14;
 
527
    XMLVMElem _r15;
 
528
    _r8.o = me;
 
529
    _r9.o = n1;
 
530
    _r10.o = n2;
 
531
    _r11.i = n3;
 
532
    _r12.i = n4;
 
533
    _r13.l = n5;
 
534
    _r15.o = n6;
 
535
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 334)
 
536
    if (_r11.i < 0) goto label4;
 
537
    if (_r12.i >= 0) goto label10;
 
538
    label4:;
 
539
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 335)
 
540
 
 
541
    
 
542
    // Red class access removed: java.lang.IllegalArgumentException::new-instance
 
543
    XMLVM_RED_CLASS_DEPENDENCY();
 
544
 
 
545
    
 
546
    // Red class access removed: java.lang.IllegalArgumentException::<init>
 
547
    XMLVM_RED_CLASS_DEPENDENCY();
 
548
    XMLVM_THROW_CUSTOM(_r0.o)
 
549
    label10:;
 
550
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 338)
 
551
    _r0.i = _r11.i + _r12.i;
 
552
    if (_r0.i != 0) goto label16;
 
553
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 339)
 
554
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 340)
 
555
    _r0.i = 1;
 
556
    label15:;
 
557
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 352)
 
558
    XMLVM_EXIT_METHOD()
 
559
    return _r0.i;
 
560
    label16:;
 
561
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 343)
 
562
    _r0.i = org_apache_harmony_luni_platform_OSNetworkSystem_GET__assertionsDisabled();
 
563
    if (_r0.i != 0) goto label34;
 
564
    XMLVM_CHECK_NPE(8)
 
565
    _r0.i = org_apache_harmony_luni_platform_OSNetworkSystem_validateFDs___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int(_r8.o, _r9.o, _r10.o, _r11.i, _r12.i);
 
566
    if (_r0.i != 0) goto label34;
 
567
 
 
568
    
 
569
    // Red class access removed: java.lang.AssertionError::new-instance
 
570
    XMLVM_RED_CLASS_DEPENDENCY();
 
571
    // "Invalid file descriptor arrays"
 
572
    _r1.o = xmlvm_create_java_string_from_pool(84);
 
573
 
 
574
    
 
575
    // Red class access removed: java.lang.AssertionError::<init>
 
576
    XMLVM_RED_CLASS_DEPENDENCY();
 
577
    XMLVM_THROW_CUSTOM(_r0.o)
 
578
    label34:;
 
579
    _r0 = _r8;
 
580
    _r1 = _r9;
 
581
    _r2 = _r10;
 
582
    _r3 = _r11;
 
583
    _r4 = _r12;
 
584
    _r5 = _r15;
 
585
    _r6 = _r13;
 
586
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 346)
 
587
    XMLVM_CHECK_NPE(0)
 
588
    _r0.i = org_apache_harmony_luni_platform_OSNetworkSystem_selectImpl___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_int_1ARRAY_long(_r0.o, _r1.o, _r2.o, _r3.i, _r4.i, _r5.o, _r6.l);
 
589
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 347)
 
590
    if (_r0.i < 0) goto label49;
 
591
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 348)
 
592
    _r0.i = 1;
 
593
    goto label15;
 
594
    label49:;
 
595
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 350)
 
596
    _r1.i = -209;
 
597
    if (_r0.i == _r1.i) goto label57;
 
598
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 351)
 
599
    _r1.i = -208;
 
600
    if (_r0.i != _r1.i) goto label59;
 
601
    label57:;
 
602
    _r0.i = 0;
 
603
    goto label15;
 
604
    label59:;
 
605
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 354)
 
606
    _r0.o = __NEW_java_net_SocketException();
 
607
    XMLVM_CHECK_NPE(0)
 
608
    java_net_SocketException___INIT___(_r0.o);
 
609
    XMLVM_THROW_CUSTOM(_r0.o)
 
610
    //XMLVM_END_WRAPPER
 
611
}
 
612
 
 
613
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_selectImpl___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int_int_1ARRAY_long(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_OBJECT n5, JAVA_LONG n6)]
 
614
 
 
615
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_sendConnectedDatagram___java_io_FileDescriptor_byte_1ARRAY_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_BOOLEAN n5)]
 
616
 
 
617
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_sendConnectedDatagramDirect___java_io_FileDescriptor_long_int_int_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_LONG n2, JAVA_INT n3, JAVA_INT n4, JAVA_BOOLEAN n5)]
 
618
 
 
619
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_sendDatagram___java_io_FileDescriptor_byte_1ARRAY_int_int_int_boolean_int_java_net_InetAddress(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_INT n5, JAVA_BOOLEAN n6, JAVA_INT n7, JAVA_OBJECT n8)]
 
620
 
 
621
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_sendDatagram2___java_io_FileDescriptor_byte_1ARRAY_int_int_int_java_net_InetAddress(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4, JAVA_INT n5, JAVA_OBJECT n6)]
 
622
 
 
623
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_sendDatagramDirect___java_io_FileDescriptor_long_int_int_int_boolean_int_java_net_InetAddress(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_LONG n2, JAVA_INT n3, JAVA_INT n4, JAVA_INT n5, JAVA_BOOLEAN n6, JAVA_INT n7, JAVA_OBJECT n8)]
 
624
 
 
625
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_sendUrgentData___java_io_FileDescriptor_byte(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BYTE n2)]
 
626
 
 
627
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_setInetAddress___java_net_InetAddress_byte_1ARRAY(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2)]
 
628
 
 
629
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_setNonBlocking___java_io_FileDescriptor_boolean(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_BOOLEAN n2)]
 
630
 
 
631
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_setSocketOption___java_io_FileDescriptor_int_java_lang_Object(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_INT n2, JAVA_OBJECT n3)]
 
632
 
 
633
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_shutdownInput___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
634
 
 
635
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_shutdownOutput___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
636
 
 
637
//XMLVM_NATIVE[void org_apache_harmony_luni_platform_OSNetworkSystem_socketClose___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
638
 
 
639
//XMLVM_NATIVE[JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_supportsUrgentData___java_io_FileDescriptor(JAVA_OBJECT me, JAVA_OBJECT n1)]
 
640
 
 
641
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_validateFDs___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2)
 
642
{
 
643
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_validateFDs___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY]
 
644
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "validateFDs", "?")
 
645
    XMLVMElem _r0;
 
646
    XMLVMElem _r1;
 
647
    XMLVMElem _r2;
 
648
    XMLVMElem _r3;
 
649
    XMLVMElem _r4;
 
650
    XMLVMElem _r5;
 
651
    XMLVMElem _r6;
 
652
    _r4.o = me;
 
653
    _r5.o = n1;
 
654
    _r6.o = n2;
 
655
    _r3.i = 0;
 
656
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 464)
 
657
    _r0.i = XMLVMArray_count(((org_xmlvm_runtime_XMLVMArray*) _r5.o));
 
658
    _r1 = _r3;
 
659
    label3:;
 
660
    if (_r1.i < _r0.i) goto label11;
 
661
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 470)
 
662
    _r0.i = XMLVMArray_count(((org_xmlvm_runtime_XMLVMArray*) _r6.o));
 
663
    _r1 = _r3;
 
664
    label7:;
 
665
    if (_r1.i < _r0.i) goto label24;
 
666
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 475)
 
667
    _r0.i = 1;
 
668
    label10:;
 
669
    XMLVM_EXIT_METHOD()
 
670
    return _r0.i;
 
671
    label11:;
 
672
    XMLVM_CHECK_NPE(5)
 
673
    XMLVM_CHECK_ARRAY_BOUNDS(_r5.o, _r1.i);
 
674
    _r2.o = ((JAVA_ARRAY_OBJECT*) (((org_xmlvm_runtime_XMLVMArray*) _r5.o)->fields.org_xmlvm_runtime_XMLVMArray.array_))[_r1.i];
 
675
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 466)
 
676
    XMLVM_CHECK_NPE(2)
 
677
    _r2.i = java_io_FileDescriptor_valid__(_r2.o);
 
678
    if (_r2.i != 0) goto label21;
 
679
    _r0 = _r3;
 
680
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 467)
 
681
    goto label10;
 
682
    label21:;
 
683
    _r1.i = _r1.i + 1;
 
684
    goto label3;
 
685
    label24:;
 
686
    XMLVM_CHECK_NPE(6)
 
687
    XMLVM_CHECK_ARRAY_BOUNDS(_r6.o, _r1.i);
 
688
    _r2.o = ((JAVA_ARRAY_OBJECT*) (((org_xmlvm_runtime_XMLVMArray*) _r6.o)->fields.org_xmlvm_runtime_XMLVMArray.array_))[_r1.i];
 
689
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 471)
 
690
    XMLVM_CHECK_NPE(2)
 
691
    _r2.i = java_io_FileDescriptor_valid__(_r2.o);
 
692
    if (_r2.i != 0) goto label34;
 
693
    _r0 = _r3;
 
694
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 472)
 
695
    goto label10;
 
696
    label34:;
 
697
    _r1.i = _r1.i + 1;
 
698
    goto label7;
 
699
    //XMLVM_END_WRAPPER
 
700
}
 
701
 
 
702
JAVA_BOOLEAN org_apache_harmony_luni_platform_OSNetworkSystem_validateFDs___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4)
 
703
{
 
704
    //XMLVM_BEGIN_WRAPPER[org_apache_harmony_luni_platform_OSNetworkSystem_validateFDs___java_io_FileDescriptor_1ARRAY_java_io_FileDescriptor_1ARRAY_int_int]
 
705
    XMLVM_ENTER_METHOD("org.apache.harmony.luni.platform.OSNetworkSystem", "validateFDs", "?")
 
706
    XMLVMElem _r0;
 
707
    XMLVMElem _r1;
 
708
    XMLVMElem _r2;
 
709
    XMLVMElem _r3;
 
710
    XMLVMElem _r4;
 
711
    XMLVMElem _r5;
 
712
    XMLVMElem _r6;
 
713
    XMLVMElem _r7;
 
714
    _r3.o = me;
 
715
    _r4.o = n1;
 
716
    _r5.o = n2;
 
717
    _r6.i = n3;
 
718
    _r7.i = n4;
 
719
    _r2.i = 0;
 
720
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 480)
 
721
    _r0 = _r2;
 
722
    label2:;
 
723
    if (_r0.i < _r6.i) goto label9;
 
724
    _r0 = _r2;
 
725
    label5:;
 
726
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 486)
 
727
    if (_r0.i < _r7.i) goto label22;
 
728
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 491)
 
729
    _r0.i = 1;
 
730
    label8:;
 
731
    XMLVM_EXIT_METHOD()
 
732
    return _r0.i;
 
733
    label9:;
 
734
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 482)
 
735
    XMLVM_CHECK_NPE(4)
 
736
    XMLVM_CHECK_ARRAY_BOUNDS(_r4.o, _r0.i);
 
737
    _r1.o = ((JAVA_ARRAY_OBJECT*) (((org_xmlvm_runtime_XMLVMArray*) _r4.o)->fields.org_xmlvm_runtime_XMLVMArray.array_))[_r0.i];
 
738
    XMLVM_CHECK_NPE(1)
 
739
    _r1.i = java_io_FileDescriptor_valid__(_r1.o);
 
740
    if (_r1.i != 0) goto label19;
 
741
    _r0 = _r2;
 
742
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 483)
 
743
    goto label8;
 
744
    label19:;
 
745
    _r0.i = _r0.i + 1;
 
746
    goto label2;
 
747
    label22:;
 
748
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 487)
 
749
    XMLVM_CHECK_NPE(5)
 
750
    XMLVM_CHECK_ARRAY_BOUNDS(_r5.o, _r0.i);
 
751
    _r1.o = ((JAVA_ARRAY_OBJECT*) (((org_xmlvm_runtime_XMLVMArray*) _r5.o)->fields.org_xmlvm_runtime_XMLVMArray.array_))[_r0.i];
 
752
    XMLVM_CHECK_NPE(1)
 
753
    _r1.i = java_io_FileDescriptor_valid__(_r1.o);
 
754
    if (_r1.i != 0) goto label32;
 
755
    _r0 = _r2;
 
756
    XMLVM_SOURCE_POSITION("OSNetworkSystem.java", 488)
 
757
    goto label8;
 
758
    label32:;
 
759
    _r0.i = _r0.i + 1;
 
760
    goto label5;
 
761
    //XMLVM_END_WRAPPER
 
762
}
 
763
 
 
764
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_write___java_io_FileDescriptor_byte_1ARRAY_int_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_INT n3, JAVA_INT n4)]
 
765
 
 
766
//XMLVM_NATIVE[JAVA_INT org_apache_harmony_luni_platform_OSNetworkSystem_writeDirect___java_io_FileDescriptor_long_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_LONG n2, JAVA_INT n3)]
 
767
 
 
768
//XMLVM_NATIVE[JAVA_LONG org_apache_harmony_luni_platform_OSNetworkSystem_writev___java_io_FileDescriptor_java_lang_Object_1ARRAY_int_1ARRAY_int_1ARRAY_int(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2, JAVA_OBJECT n3, JAVA_OBJECT n4, JAVA_INT n5)]
 
769