< prev index next >

src/share/vm/runtime/os.hpp

Print this page
rev 10178 : [mq]: 8146879.archiving


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


< prev index next >