8204310: Simpler RandomAccessFile.setLength() on Windows

Reviewed-by: alanb
This commit is contained in:
Ivan Gerasimov 2018-06-29 17:35:04 -07:00
parent bebd49cf84
commit 8774d70044
4 changed files with 289 additions and 50 deletions

View file

@ -43,7 +43,7 @@ WCHAR* currentDir(int di);
int currentDirLength(const WCHAR* path, int pathlen);
int handleAvailable(FD fd, jlong *pbytes);
int handleSync(FD fd);
int handleSetLength(FD fd, jlong length);
jint handleSetLength(FD fd, jlong length);
jlong handleGetLength(FD fd);
JNIEXPORT jint handleRead(FD fd, void *buf, jint len);
jint handleWrite(FD fd, const void *buf, jint len);