mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
8061618: Removed unused networking functions from os class
Reviewed-by: lfoltan, hseigel, dholmes
This commit is contained in:
parent
aed4b0760c
commit
209ffcd9a5
10 changed files with 0 additions and 447 deletions
|
@ -5211,15 +5211,6 @@ int os::available(int fd, jlong *bytes) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int os::socket_available(int fd, jint *pbytes) {
|
||||
// Linux doc says EINTR not returned, unlike Solaris
|
||||
int ret = ::ioctl(fd, FIONREAD, pbytes);
|
||||
|
||||
//%% note ioctl can return 0 when successful, JVM_SocketAvailable
|
||||
// is expected to return 0 on failure and 1 on success to the jdk.
|
||||
return (ret < 0) ? 0 : 1;
|
||||
}
|
||||
|
||||
// Map a block of memory.
|
||||
char* os::pd_map_memory(int fd, const char* file_name, size_t file_offset,
|
||||
char *addr, size_t bytes, bool read_only,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue