jdk/src/windows/classes/sun/nio/ch/SocketDispatcher.java
changeset 11909 a1a7165ac1fa
parent 5506 202f599c92aa
child 14342 8435a30053c1
equal deleted inserted replaced
11908:384d1c31d539 11909:a1a7165ac1fa
    53 
    53 
    54     long writev(FileDescriptor fd, long address, int len) throws IOException {
    54     long writev(FileDescriptor fd, long address, int len) throws IOException {
    55         return writev0(fd, address, len);
    55         return writev0(fd, address, len);
    56     }
    56     }
    57 
    57 
    58     void close(FileDescriptor fd) throws IOException {
    58     void preClose(FileDescriptor fd) throws IOException {
       
    59         preClose0(fd);
    59     }
    60     }
    60 
    61 
    61     void preClose(FileDescriptor fd) throws IOException {
    62     void close(FileDescriptor fd) throws IOException {
    62         close0(fd);
    63         close0(fd);
    63     }
    64     }
    64 
    65 
    65     //-- Native methods
    66     //-- Native methods
    66     static native int read0(FileDescriptor fd, long address, int len)
    67     static native int read0(FileDescriptor fd, long address, int len)
    73         throws IOException;
    74         throws IOException;
    74 
    75 
    75     static native long writev0(FileDescriptor fd, long address, int len)
    76     static native long writev0(FileDescriptor fd, long address, int len)
    76         throws IOException;
    77         throws IOException;
    77 
    78 
       
    79     static native void preClose0(FileDescriptor fd) throws IOException;
       
    80 
    78     static native void close0(FileDescriptor fd) throws IOException;
    81     static native void close0(FileDescriptor fd) throws IOException;
    79 }
    82 }