|
@@ -42,7 +42,10 @@ extern "C" {
|
42
|
42
|
kWriteFileFl = 0x02, //< Create an empty file for writing
|
43
|
43
|
kAppendFileFl = 0x04, //< Open a file for writing at the end of the file.
|
44
|
44
|
kUpdateFileFl = 0x08, //< Open a file for reading and writing.
|
45
|
|
- kBinaryFileFl = 0x10 //< Open a file for binary (not text) input/output.
|
|
45
|
+ kBinaryFileFl = 0x10, //< Open a file for binary (not text) input/output.
|
|
46
|
+ kStdoutFileFl = 0x20, //< Ignore fn use 'stdout'
|
|
47
|
+ kStderrFileFl = 0x40, //< Ignore fn use 'stderr'
|
|
48
|
+ kStdinFileFl = 0x80, //< Ignore fn use 'stdin'
|
46
|
49
|
};
|
47
|
50
|
|
48
|
51
|
// Open or create a file.
|
|
@@ -51,6 +54,9 @@ extern "C" {
|
51
|
54
|
// be set to cmFileNullHandle prior to calling this function. If *hp is a valid handle
|
52
|
55
|
// then it is automatically finalized by an internal call to cmFileClose() prior to
|
53
|
56
|
// being re-iniitalized.
|
|
57
|
+ //
|
|
58
|
+ // If kStdoutFileFl, kStderrFileFl or kStdinFileFl are set then
|
|
59
|
+ // file name argument 'fn' is ignored.
|
54
|
60
|
cmFileRC_t cmFileOpen(
|
55
|
61
|
cmFileH_t* hp, // Pointer to a client supplied cmFileHandle_t to recieve the handle for the new object.
|
56
|
62
|
const cmChar_t* fn, // The name of the file to open or create.
|