< prev index next >

src/share/vm/runtime/os.hpp

Print this page
rev 10178 : imported patch 8145934


 499   static void shutdown();
 500 
 501   // Terminate with an error.  Default is to generate a core file on platforms
 502   // that support such things.  This calls shutdown() and then aborts.
 503   static void abort(bool dump_core, void *siginfo, const void *context);
 504   static void abort(bool dump_core = true);
 505 
 506   // Die immediately, no exit hook, no abort hook, no cleanup.
 507   static void die();
 508 
 509   // File i/o operations
 510   static const int default_file_open_flags();
 511   static int open(const char *path, int oflag, int mode);
 512   static FILE* open(int fd, const char* mode);
 513   static int close(int fd);
 514   static jlong lseek(int fd, jlong offset, int whence);
 515   static char* native_path(char *path);
 516   static int ftruncate(int fd, jlong length);
 517   static int fsync(int fd);
 518   static int available(int fd, jlong *bytes);


 519 
 520   //File i/o operations
 521 
 522   static size_t read(int fd, void *buf, unsigned int nBytes);
 523   static size_t read_at(int fd, void *buf, unsigned int nBytes, jlong offset);
 524   static size_t restartable_read(int fd, void *buf, unsigned int nBytes);
 525   static size_t write(int fd, const void *buf, unsigned int nBytes);
 526 
 527   // Reading directories.
 528   static DIR*           opendir(const char* dirname);
 529   static int            readdir_buf_size(const char *path);
 530   static struct dirent* readdir(DIR* dirp, dirent* dbuf);
 531   static int            closedir(DIR* dirp);
 532 
 533   // Dynamic library extension
 534   static const char*    dll_file_extension();
 535 
 536   static const char*    get_temp_directory();
 537   static const char*    get_current_directory(char *buf, size_t buflen);
 538 




 499   static void shutdown();
 500 
 501   // Terminate with an error.  Default is to generate a core file on platforms
 502   // that support such things.  This calls shutdown() and then aborts.
 503   static void abort(bool dump_core, void *siginfo, const void *context);
 504   static void abort(bool dump_core = true);
 505 
 506   // Die immediately, no exit hook, no abort hook, no cleanup.
 507   static void die();
 508 
 509   // File i/o operations
 510   static const int default_file_open_flags();
 511   static int open(const char *path, int oflag, int mode);
 512   static FILE* open(int fd, const char* mode);
 513   static int close(int fd);
 514   static jlong lseek(int fd, jlong offset, int whence);
 515   static char* native_path(char *path);
 516   static int ftruncate(int fd, jlong length);
 517   static int fsync(int fd);
 518   static int available(int fd, jlong *bytes);
 519   static void flockfile(FILE* fp);
 520   static void funlockfile(FILE* fp);
 521 
 522   //File i/o operations
 523 
 524   static size_t read(int fd, void *buf, unsigned int nBytes);
 525   static size_t read_at(int fd, void *buf, unsigned int nBytes, jlong offset);
 526   static size_t restartable_read(int fd, void *buf, unsigned int nBytes);
 527   static size_t write(int fd, const void *buf, unsigned int nBytes);
 528 
 529   // Reading directories.
 530   static DIR*           opendir(const char* dirname);
 531   static int            readdir_buf_size(const char *path);
 532   static struct dirent* readdir(DIR* dirp, dirent* dbuf);
 533   static int            closedir(DIR* dirp);
 534 
 535   // Dynamic library extension
 536   static const char*    dll_file_extension();
 537 
 538   static const char*    get_temp_directory();
 539   static const char*    get_current_directory(char *buf, size_t buflen);
 540 


< prev index next >