src/java.base/unix/native/libnet/PlainSocketImpl.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47270 0feb93f627d2
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
    70 /*
    70 /*
    71  * Create the marker file descriptor by establishing a loopback connection
    71  * Create the marker file descriptor by establishing a loopback connection
    72  * which we shutdown but do not close the fd. The result is an fd that
    72  * which we shutdown but do not close the fd. The result is an fd that
    73  * can be used for read/write.
    73  * can be used for read/write.
    74  */
    74  */
    75 static int getMarkerFD()
    75 static int getMarkerFD(void)
    76 {
    76 {
    77     int sv[2];
    77     int sv[2];
    78 
    78 
    79 #ifdef AF_UNIX
    79 #ifdef AF_UNIX
    80     if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) == -1) {
    80     if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) == -1) {