equal
deleted
inserted
replaced
31 #include "jlong.h" |
31 #include "jlong.h" |
32 #include "nio.h" |
32 #include "nio.h" |
33 #include "sun_nio_ch_PollSelectorImpl.h" |
33 #include "sun_nio_ch_PollSelectorImpl.h" |
34 |
34 |
35 JNIEXPORT jint JNICALL |
35 JNIEXPORT jint JNICALL |
36 Java_sun_nio_ch_PollSelectorImpl_poll(JNIEnv *env, jclass clazz, |
36 Java_sun_nio_ch_PollSelectorImpl_poll0(JNIEnv *env, jclass clazz, |
37 jlong address, jint numfds, |
37 jlong address, jint numfds, |
38 jint timeout) |
38 jint timeout) |
39 { |
39 { |
40 struct pollfd *a; |
40 struct pollfd *a; |
41 int res; |
41 int res; |
42 |
42 |
43 a = (struct pollfd *) jlong_to_ptr(address); |
43 a = (struct pollfd *) jlong_to_ptr(address); |