| 123 | } |
| 124 | |
| 125 | FileStream *UnixFilesystem::OpenFile(const Pathname &filename, |
| 126 | const std::string &mode) { |
| 127 | FileStream *fs = new FileStream(); |
| 128 | if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { |
| 129 | delete fs; |
| 130 | fs = NULL; |
| 131 | } |
| 132 | return fs; |
| 133 | } |
| 134 | |
| 135 | bool UnixFilesystem::CreatePrivateFile(const Pathname &filename) { |
| 136 | int fd = open(filename.pathname().c_str(), |
no test coverage detected