Home | History | Annotate | Download | only in tests

Lines Matching defs:file

3 // found in the LICENSE file.
7 // dependency on another source file for all tests that include this
144 // Remove any file in this directory.
170 // Scoped FILE* class. Always closed on destruction.
185 Panic("Could not open file for reading: %s: %s\n", path, strerror(errno));
188 FILE* file() const { return file_; }
191 FILE* file_;
219 // Copy a file named |src_file_name| in directory |src_file_dir| into
220 // a file named |dst_file_name| in directory |dst_file_dir|. Panics on error.
238 size_t read = fread(buffer, 1, sizeof buffer, src_file.file());
240 size_t written = fwrite(buffer, 1, read, dst_file.file());
252 // Send a file descriptor |fd| through |socket|.
329 FILE* file = fopen("/proc/self/maps", "rb");
330 if (!file)
338 while (fgets(line, sizeof line, file)) {
362 fclose(file);