8229872: (fs) Increase buffer size used with getmntent

Dynamically allocate memory for getmntent

Reviewed-by: alanb
This commit is contained in:
Vladimir Kempik 2019-09-24 14:54:57 +03:00
parent 628283fe53
commit 67ad501e5b
5 changed files with 89 additions and 9 deletions

View file

@ -118,6 +118,16 @@ class UnixNativeDispatcher {
*/
static native void fclose(long stream) throws UnixException;
/**
* void rewind(FILE* stream);
*/
static native void rewind(long stream) throws UnixException;
/**
* ssize_t getline(char **lineptr, size_t *n, FILE *stream);
*/
static native int getlinelen(long stream) throws UnixException;
/**
* link(const char* existing, const char* new)
*/