src/java.base/unix/native/libnio/ch/PollSelectorImpl.c
branchrsocket-branch
changeset 57115 512e7cc6ccce
parent 49679 7084eec5c723
child 57156 81e4a12fd1a4
equal deleted inserted replaced
53485:b743968ad646 57115:512e7cc6ccce
    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);