8061618: Removed unused networking functions from os class

Reviewed-by: lfoltan, hseigel, dholmes
This commit is contained in:
Frederic Parain 2014-10-22 02:31:25 -07:00
parent aed4b0760c
commit 209ffcd9a5
10 changed files with 0 additions and 447 deletions

View file

@ -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,