< prev index next >

src/share/vm/runtime/os.hpp

Print this page
rev 10661 : [mq]: 8145934


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


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




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