Add BufferedFile::fileno.

This commit is contained in:
Victor Zverovich
2014-05-06 06:45:53 -07:00
parent d286efd3d2
commit fb4ccac951
3 changed files with 51 additions and 33 deletions
+2
View File
@@ -191,6 +191,8 @@ class BufferedFile {
// Returns the pointer to a FILE object representing this file.
std::FILE *get() const { return file_; }
int fileno() const;
};
// A file. Closed file is represented by a File object with descriptor -1.