Skip to content

Commit dce1630

Browse files
author
Brian Burkhalter
committed
8218882: NET_Writev is declared, NET_WriteV is defined
Reviewed-by: alanb, chegar
1 parent e320983 commit dce1630

5 files changed

Lines changed: 5 additions & 22 deletions

File tree

src/java.base/aix/native/libnet/aix_close.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2016, 2017, SAP SE and/or its affiliates. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -429,10 +429,6 @@ int NET_Send(int s, void *msg, int len, unsigned int flags) {
429429
BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) );
430430
}
431431

432-
int NET_WriteV(int s, const struct iovec * vector, int count) {
433-
BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) );
434-
}
435-
436432
int NET_SendTo(int s, const void *msg, int len, unsigned int
437433
flags, const struct sockaddr *to, int tolen) {
438434
BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) );

src/java.base/linux/native/libnet/linux_close.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -386,10 +386,6 @@ int NET_Send(int s, void *msg, int len, unsigned int flags) {
386386
BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) );
387387
}
388388

389-
int NET_WriteV(int s, const struct iovec * vector, int count) {
390-
BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) );
391-
}
392-
393389
int NET_SendTo(int s, const void *msg, int len, unsigned int
394390
flags, const struct sockaddr *to, int tolen) {
395391
BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) );

src/java.base/macosx/native/libnet/bsd_close.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -390,10 +390,6 @@ int NET_Send(int s, void *msg, int len, unsigned int flags) {
390390
BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) );
391391
}
392392

393-
int NET_WriteV(int s, const struct iovec * vector, int count) {
394-
BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) );
395-
}
396-
397393
int NET_SendTo(int s, const void *msg, int len, unsigned int
398394
flags, const struct sockaddr *to, int tolen) {
399395
BLOCKING_IO_RETURN_INT( s, sendto(s, msg, len, flags, to, tolen) );

src/java.base/solaris/native/libnet/solaris_close.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -59,10 +59,6 @@ int NET_ReadV(int s, const struct iovec * vector, int count) {
5959
RESTARTABLE_RETURN_INT(readv(s, vector, count));
6060
}
6161

62-
int NET_WriteV(int s, const struct iovec * vector, int count) {
63-
RESTARTABLE_RETURN_INT(writev(s, vector, count));
64-
}
65-
6662
int NET_Send(int s, void *msg, int len, unsigned int flags) {
6763
RESTARTABLE_RETURN_INT(send(s, msg, len, flags));
6864
}

src/java.base/unix/native/libnet/net_util_md.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,6 @@ int NET_ReadV(int s, const struct iovec * vector, int count);
8686
int NET_Send(int s, void *msg, int len, unsigned int flags);
8787
int NET_SendTo(int s, const void *msg, int len, unsigned int
8888
flags, const struct sockaddr *to, int tolen);
89-
int NET_Writev(int s, const struct iovec * vector, int count);
9089
int NET_Connect(int s, struct sockaddr *addr, int addrlen);
9190
int NET_Accept(int s, struct sockaddr *addr, socklen_t *addrlen);
9291
int NET_SocketClose(int s);

0 commit comments

Comments
 (0)