src/java.base/windows/native/libnio/ch/nio_util.h
branchunixdomainchannels
changeset 58848 c3df0f8b6d93
parent 58801 119ac9128c1b
equal deleted inserted replaced
58847:692de65ab293 58848:c3df0f8b6d93
    33  * maximum to be less than 128k to support asynchronous close on Windows
    33  * maximum to be less than 128k to support asynchronous close on Windows
    34  * Server 2003 and newer editions of Windows.
    34  * Server 2003 and newer editions of Windows.
    35  */
    35  */
    36 #define MAX_BUFFER_SIZE             ((128*1024)-1)
    36 #define MAX_BUFFER_SIZE             ((128*1024)-1)
    37 
    37 
    38 JNIEXPORT jint JNICALL
    38 jint fdval(JNIEnv *env, jobject fdo);
    39 fdval(JNIEnv *env, jobject fdo);
    39 void setfdval(JNIEnv *env, jobject fdo, jint val);
    40 JNIEXPORT void JNICALL
       
    41 setfdval(JNIEnv *env, jobject fdo, jint val);
       
    42 jlong handleval(JNIEnv *env, jobject fdo);
    40 jlong handleval(JNIEnv *env, jobject fdo);
    43 jint convertReturnVal(JNIEnv *env, jint n, jboolean r);
    41 jint convertReturnVal(JNIEnv *env, jint n, jboolean r);
    44 jlong convertLongReturnVal(JNIEnv *env, jlong n, jboolean r);
    42 jlong convertLongReturnVal(JNIEnv *env, jlong n, jboolean r);
    45 jboolean purgeOutstandingICMP(JNIEnv *env, jclass clazz, jint fd);
    43 jboolean purgeOutstandingICMP(JNIEnv *env, jclass clazz, jint fd);
    46 JNIEXPORT jint JNICALL
    44 jint handleSocketError(JNIEnv *env, int errorValue);
    47 handleSocketError(JNIEnv *env, int errorValue);
       
    48 
    45 
    49 #ifdef _WIN64
    46 #ifdef _WIN64
    50 
    47 
    51 struct iovec {
    48 struct iovec {
    52     jlong  iov_base;
    49     jlong  iov_base;