Lines Matching refs:file_
52 : file_(-1), in MinidumpFileWriter()
64 assert(file_ == -1); in Open()
66 file_ = sys_open(path, O_WRONLY | O_CREAT | O_EXCL, 0600); in Open()
68 file_ = open(path, O_WRONLY | O_CREAT | O_EXCL, 0600); in Open()
71 return file_ != -1; in Open()
75 assert(file_ == -1); in SetFile()
76 file_ = file; in SetFile()
83 if (file_ != -1) { in Close()
84 if (-1 == ftruncate(file_, position_)) { in Close()
88 result = (sys_close(file_) == 0); in Close()
90 result = (close(file_) == 0); in Close()
92 file_ = -1; in Close()
222 assert(file_ != -1); in Allocate()
234 if (ftruncate(file_, new_size) != 0) in Allocate()
249 assert(file_ != -1);
257 if (sys_lseek(file_, position, SEEK_SET) == static_cast<off_t>(position)) {
258 if (sys_write(file_, src, size) == size) {
260 if (lseek(file_, position, SEEK_SET) == static_cast<off_t>(position)) {
261 if (write(file_, src, size) == size) {