hotspot/src/share/vm/runtime/os.hpp
changeset 9125 3b9a527cd492
parent 8478 d89e2f60ba40
child 9419 f0360dfe734d
--- a/hotspot/src/share/vm/runtime/os.hpp	Mon Mar 28 12:48:08 2011 +0200
+++ b/hotspot/src/share/vm/runtime/os.hpp	Wed Mar 30 19:38:07 2011 +0400
@@ -658,6 +658,10 @@
   // Hook for os specific jvm options that we don't want to abort on seeing
   static bool obsolete_option(const JavaVMOption *option);
 
+  // Read file line by line. If line is longer than bsize,
+  // rest of line is skipped. Returns number of bytes read or -1 on EOF
+  static int get_line_chars(int fd, char *buf, const size_t bsize);
+
   // Platform dependent stuff
 #ifdef TARGET_OS_FAMILY_linux
 # include "os_linux.hpp"