| 198 | #endif |
| 199 | |
| 200 | int descriptor(JNIEnv* e, HANDLE h) |
| 201 | { |
| 202 | int fd = _open_osfhandle(reinterpret_cast<intptr_t>(h), 0); |
| 203 | if (fd == -1) { |
| 204 | throwNewErrno(e, "java/io/IOException"); |
| 205 | } |
| 206 | return fd; |
| 207 | } |
| 208 | #else |
| 209 | void makePipe(JNIEnv* e, int p[2]) |
| 210 | { |
no test coverage detected