aboutsummaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/file.h b/src/file.h
index a50d53c..84e0691 100644
--- a/src/file.h
+++ b/src/file.h
@@ -56,27 +56,27 @@ namespace Bu
56 56
57 enum { 57 enum {
58 // Flags 58 // Flags
59 Read = 0x01, //< Open file for reading 59 Read = 0x01, ///< Open file for reading
60 Write = 0x02, //< Open file for writing 60 Write = 0x02, ///< Open file for writing
61 Create = 0x04, //< Create file if it doesn't exist 61 Create = 0x04, ///< Create file if it doesn't exist
62 Truncate = 0x08, //< Truncate file if it does exist 62 Truncate = 0x08, ///< Truncate file if it does exist
63 Append = 0x10, //< Always append on every write 63 Append = 0x10, ///< Always append on every write
64 NonBlock = 0x20, //< Open file in non-blocking mode 64 NonBlock = 0x20, ///< Open file in non-blocking mode
65 Exclusive = 0x44, //< Create file, if it exists then fail 65 Exclusive = 0x44, ///< Create file, if it exists then fail
66 66
67 // Helpful mixes 67 // Helpful mixes
68 ReadWrite = 0x03 //< Open for reading and writing 68 ReadWrite = 0x03 ///< Open for reading and writing
69 }; 69 };
70 /** 70 /**
71 * Create a temp file and return its handle 71 * Create a temp file and return its handle. The file is opened
72 * Read/Write.
72 *@param sName (Bu::FString) Give in the form: "/tmp/tmpfileXXXXXXXX" 73 *@param sName (Bu::FString) Give in the form: "/tmp/tmpfileXXXXXXXX"
73 * It will alter your (sName) setting the 'X's to random 74 * It will alter your (sName) setting the 'X's to random
74 * characters. 75 * characters.
75 *@param sFlags (const char *) Standard file flags 'rb'... etc..
76 *@returns (Bu::File) A file object representing your temp file. 76 *@returns (Bu::File) A file object representing your temp file.
77 */ 77 */
78#ifndef WIN32 78#ifndef WIN32
79 static Bu::File tempFile( Bu::FString &sName, int iFlags ); 79 static Bu::File tempFile( Bu::FString &sName );
80 80
81 /** 81 /**
82 * Set the size of the file to (nSize). You can either grow or shrink 82 * Set the size of the file to (nSize). You can either grow or shrink