I am trying to find native method implementation for linux:
private native int socketRead0(FileDescriptor fd,
byte b[], int off, int len,
int timeout)
I could not find it in Openjdk source files. I grepped all the files for "socketRead0" but it found only implementations for windows and solaris. Where is it?
socketRead0 implementation for Linux is defined in the Solaris version: SocketInputStream.c.
This file includes net_util.h which in turn includes net_util_md.h.
net_util_md.h uses a #ifdef __linux__ directive to distinguish between Linux and Solaris
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With