os::create_binary_file(const char* path, bool rewrite_existing)
-
//Linux版(jdk7/hotspot/src/os/linux/vm/os_linux.cpp) // create binary file, rewriting existing file if required int os::create_binary_file(const char* path, bool rewrite_existing) { int oflags = O_WRONLY | O_CREAT; if (!rewrite_existing) { oflags |= O_EXCL; } return ::open64(path, oflags, S_IREAD | S_IWRITE); }