< prev index next >

src/hotspot/share/runtime/os.hpp

Print this page




 501   static void verify_stack_alignment() PRODUCT_RETURN;
 502 
 503   static bool message_box(const char* title, const char* message);
 504   static char* do_you_want_to_debug(const char* message);
 505 
 506   // run cmd in a separate process and return its exit code; or -1 on failures
 507   static int fork_and_exec(char *cmd, bool use_vfork_if_available = false);
 508 
 509   // Call ::exit() on all platforms but Windows
 510   static void exit(int num);
 511 
 512   // Terminate the VM, but don't exit the process
 513   static void shutdown();
 514 
 515   // Terminate with an error.  Default is to generate a core file on platforms
 516   // that support such things.  This calls shutdown() and then aborts.
 517   static void abort(bool dump_core, void *siginfo, const void *context);
 518   static void abort(bool dump_core = true);
 519 
 520   // Die immediately, no exit hook, no abort hook, no cleanup.
 521   // Dump a core file, if possible, for debugging. os::abort() is the
 522   // preferred means to abort the VM on error. os::die() should only
 523   // be called if something has gone badly wrong. CreateCoredumpOnCrash
 524   // is intentionally not honored by this function.
 525   static void die();
 526 
 527   // File i/o operations
 528   static const int default_file_open_flags();
 529   static int open(const char *path, int oflag, int mode);
 530   static FILE* open(int fd, const char* mode);
 531   static FILE* fopen(const char* path, const char* mode);
 532   static int close(int fd);
 533   static jlong lseek(int fd, jlong offset, int whence);
 534   // This function, on Windows, canonicalizes a given path (see os_windows.cpp for details).
 535   // On Posix, this function is a noop: it does not change anything and just returns
 536   // the input pointer.
 537   static char* native_path(char *path);
 538   static int ftruncate(int fd, jlong length);
 539   static int fsync(int fd);
 540   static int available(int fd, jlong *bytes);
 541   static int get_fileno(FILE* fp);
 542   static void flockfile(FILE* fp);
 543   static void funlockfile(FILE* fp);
 544 




 501   static void verify_stack_alignment() PRODUCT_RETURN;
 502 
 503   static bool message_box(const char* title, const char* message);
 504   static char* do_you_want_to_debug(const char* message);
 505 
 506   // run cmd in a separate process and return its exit code; or -1 on failures
 507   static int fork_and_exec(char *cmd, bool use_vfork_if_available = false);
 508 
 509   // Call ::exit() on all platforms but Windows
 510   static void exit(int num);
 511 
 512   // Terminate the VM, but don't exit the process
 513   static void shutdown();
 514 
 515   // Terminate with an error.  Default is to generate a core file on platforms
 516   // that support such things.  This calls shutdown() and then aborts.
 517   static void abort(bool dump_core, void *siginfo, const void *context);
 518   static void abort(bool dump_core = true);
 519 
 520   // Die immediately, no exit hook, no abort hook, no cleanup.




 521   static void die();
 522 
 523   // File i/o operations
 524   static const int default_file_open_flags();
 525   static int open(const char *path, int oflag, int mode);
 526   static FILE* open(int fd, const char* mode);
 527   static FILE* fopen(const char* path, const char* mode);
 528   static int close(int fd);
 529   static jlong lseek(int fd, jlong offset, int whence);
 530   // This function, on Windows, canonicalizes a given path (see os_windows.cpp for details).
 531   // On Posix, this function is a noop: it does not change anything and just returns
 532   // the input pointer.
 533   static char* native_path(char *path);
 534   static int ftruncate(int fd, jlong length);
 535   static int fsync(int fd);
 536   static int available(int fd, jlong *bytes);
 537   static int get_fileno(FILE* fp);
 538   static void flockfile(FILE* fp);
 539   static void funlockfile(FILE* fp);
 540 


< prev index next >