jdk/src/java.base/windows/native/libnet/SocketOutputStream.c
changeset 41771 18c9669e76ca
parent 25859 3317bb8137f4
child 43202 29180c8db039
equal deleted inserted replaced
41770:8a9072bd132b 41771:18c9669e76ca
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    20  *
    20  *
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
       
    25 #include <malloc.h>
    25 
    26 
    26 #include <windows.h>
    27 #include "net_util.h"
    27 #include <winsock2.h>
       
    28 #include <ctype.h>
       
    29 #include <stdio.h>
       
    30 #include <stdlib.h>
       
    31 #include <malloc.h>
       
    32 #include <sys/types.h>
       
    33 
    28 
    34 #include "java_net_SocketOutputStream.h"
    29 #include "java_net_SocketOutputStream.h"
    35 
       
    36 #include "net_util.h"
       
    37 #include "jni_util.h"
       
    38 
    30 
    39 /************************************************************************
    31 /************************************************************************
    40  * SocketOutputStream
    32  * SocketOutputStream
    41  */
    33  */
    42 static jfieldID IO_fd_fdID;
    34 static jfieldID IO_fd_fdID;