equal
deleted
inserted
replaced
4705 } |
4705 } |
4706 |
4706 |
4707 static int nonSeekAvailable(int, long *); |
4707 static int nonSeekAvailable(int, long *); |
4708 static int stdinAvailable(int, long *); |
4708 static int stdinAvailable(int, long *); |
4709 |
4709 |
4710 #define S_ISCHR(mode) (((mode) & _S_IFCHR) == _S_IFCHR) |
|
4711 #define S_ISFIFO(mode) (((mode) & _S_IFIFO) == _S_IFIFO) |
|
4712 |
|
4713 // This code is a copy of JDK's sysAvailable |
4710 // This code is a copy of JDK's sysAvailable |
4714 // from src/windows/hpi/src/sys_api_md.c |
4711 // from src/windows/hpi/src/sys_api_md.c |
4715 |
4712 |
4716 int os::available(int fd, jlong *bytes) { |
4713 int os::available(int fd, jlong *bytes) { |
4717 jlong cur, end; |
4714 jlong cur, end; |