diff options
Diffstat (limited to 'runtime/os.h')
| -rw-r--r-- | runtime/os.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/os.h b/runtime/os.h index befe2e808a..46d89fb8a5 100644 --- a/runtime/os.h +++ b/runtime/os.h @@ -39,6 +39,10 @@ class OS { // already exists, it is *not* overwritten, but unlinked, and a new inode will be used. static File* CreateEmptyFile(const char* name); + // Create an empty file with write access. This is a *new* file, that is, if the file + // already exists, it is *not* overwritten, but unlinked, and a new inode will be used. + static File* CreateEmptyFileWriteOnly(const char* name); + // Open a file with the specified open(2) flags. static File* OpenFileWithFlags(const char* name, int flags); |