Home | History | Annotate | Download | only in common

Lines Matching defs:fp

322 // Reads from an open file |fp|, appending the read content to the container
327 static bool Read(FILE* fp, off_t size, T* out_p) {
328 CHECK(fp);
336 size_t nbytes = fread(buf, 1, bytes_to_read, fp);
346 if (ferror(fp)) {
349 return size == 0 || feof(fp);
362 base::ScopedFILE fp(fopen(path.c_str(), "r"));
363 if (!fp.get())
371 TEST_AND_RETURN_FALSE_ERRNO(fseek(fp.get(), offset, SEEK_SET) == 0);
373 return Read(fp.get(), size, out_p);
379 FILE* fp = popen(cmd.c_str(), "r");
380 if (!fp)
382 bool success = Read(fp, -1, out_p);
383 return (success && pclose(fp) >= 0);