diff src/share/vm/runtime/os.hpp @ 2477:3449f5e02cc4

Merge
author coleenp
date Tue, 12 Apr 2011 14:18:53 -0700
parents 677234770800
children 188c9a5d6a6d
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp	Sat Apr 09 21:16:12 2011 -0700
+++ b/src/share/vm/runtime/os.hpp	Tue Apr 12 14:18:53 2011 -0700
@@ -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"