Mercurial > hg > truffle
diff src/share/vm/utilities/ostream.hpp @ 2199:d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
Summary: Add support for distribution-specific error reporting
Reviewed-by: coleenp, phh, jcoomes, ohair
author | kamg |
---|---|
date | Tue, 08 Feb 2011 17:20:45 -0500 |
parents | f95d63e2154a |
children | 5841dc1964f0 |
line wrap: on
line diff
--- a/src/share/vm/utilities/ostream.hpp Thu Feb 03 20:30:19 2011 -0800 +++ b/src/share/vm/utilities/ostream.hpp Tue Feb 08 17:20:45 2011 -0500 @@ -159,10 +159,17 @@ 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(); };