# HG changeset patch # User bpb # Date 1550073484 28800 # Node ID 38b6110d5db24dd8f82c69cb944914a014de97c1 # Parent 54a8b7673afccad20044b47f72ceb21ac88dd641 8218882: NET_Writev is declared, NET_WriteV is defined Reviewed-by: alanb, chegar diff -r 54a8b7673afc -r 38b6110d5db2 src/java.base/aix/native/libnet/aix_close.c --- a/src/java.base/aix/native/libnet/aix_close.c Wed Feb 13 21:24:13 2019 +0800 +++ b/src/java.base/aix/native/libnet/aix_close.c Wed Feb 13 07:58:04 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2017, SAP SE and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -429,10 +429,6 @@ BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) ); } -int NET_WriteV(int s, const struct iovec * vector, int count) { - BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) ); -} - int NET_SendTo(int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen) { BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) ); diff -r 54a8b7673afc -r 38b6110d5db2 src/java.base/linux/native/libnet/linux_close.c --- a/src/java.base/linux/native/libnet/linux_close.c Wed Feb 13 21:24:13 2019 +0800 +++ b/src/java.base/linux/native/libnet/linux_close.c Wed Feb 13 07:58:04 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -386,10 +386,6 @@ BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) ); } -int NET_WriteV(int s, const struct iovec * vector, int count) { - BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) ); -} - int NET_SendTo(int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen) { BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) ); diff -r 54a8b7673afc -r 38b6110d5db2 src/java.base/macosx/native/libnet/bsd_close.c --- a/src/java.base/macosx/native/libnet/bsd_close.c Wed Feb 13 21:24:13 2019 +0800 +++ b/src/java.base/macosx/native/libnet/bsd_close.c Wed Feb 13 07:58:04 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -390,10 +390,6 @@ BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) ); } -int NET_WriteV(int s, const struct iovec * vector, int count) { - BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) ); -} - int NET_SendTo(int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen) { BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) ); diff -r 54a8b7673afc -r 38b6110d5db2 src/java.base/solaris/native/libnet/solaris_close.c --- a/src/java.base/solaris/native/libnet/solaris_close.c Wed Feb 13 21:24:13 2019 +0800 +++ b/src/java.base/solaris/native/libnet/solaris_close.c Wed Feb 13 07:58:04 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -59,10 +59,6 @@ RESTARTABLE_RETURN_INT(readv(s, vector, count)); } -int NET_WriteV(int s, const struct iovec * vector, int count) { - RESTARTABLE_RETURN_INT(writev(s, vector, count)); -} - int NET_Send(int s, void *msg, int len, unsigned int flags) { RESTARTABLE_RETURN_INT(send(s, msg, len, flags)); } diff -r 54a8b7673afc -r 38b6110d5db2 src/java.base/unix/native/libnet/net_util_md.h --- a/src/java.base/unix/native/libnet/net_util_md.h Wed Feb 13 21:24:13 2019 +0800 +++ b/src/java.base/unix/native/libnet/net_util_md.h Wed Feb 13 07:58:04 2019 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -86,7 +86,6 @@ int NET_Send(int s, void *msg, int len, unsigned int flags); int NET_SendTo(int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen); -int NET_Writev(int s, const struct iovec * vector, int count); int NET_Connect(int s, struct sockaddr *addr, int addrlen); int NET_Accept(int s, struct sockaddr *addr, socklen_t *addrlen); int NET_SocketClose(int s);