mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
7003401: Implement VM error-reporting functionality on erroneous termination
Add support for distribution-specific error reporting Reviewed-by: coleenp, phh, jcoomes, ohair
This commit is contained in:
parent
2fcd065a0d
commit
9acb43fa6d
23 changed files with 518 additions and 165 deletions
|
@ -159,10 +159,17 @@ class fileStream : public outputStream {
|
|||
bool _need_close;
|
||||
public:
|
||||
fileStream(const char* file_name);
|
||||
fileStream(const char* file_name, const char* opentype);
|
||||
fileStream(FILE* file) { _file = file; _need_close = false; }
|
||||
~fileStream();
|
||||
bool is_open() const { return _file != NULL; }
|
||||
void set_need_close(bool b) { _need_close = b;}
|
||||
virtual void write(const char* c, size_t len);
|
||||
size_t read(void *data, size_t size, size_t count) { return ::fread(data, size, count, _file); }
|
||||
char* readln(char *data, int count);
|
||||
int eof() { return feof(_file); }
|
||||
long fileSize();
|
||||
void rewind() { ::rewind(_file); }
|
||||
void flush();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue