Home | History | Annotate | Download | only in ports

Lines Matching full:file

5  * found in the LICENSE file.
39 return ::fgets(str, size, (FILE *)f);
44 return feof((FILE *)f);
50 long curr = ::ftell((FILE*)f); // remember where we are
55 ::fseek((FILE*)f, 0, SEEK_END); // go to the end
56 long size = ::ftell((FILE*)f); // record the size
61 ::fseek((FILE*)f, curr, SEEK_SET); // go back to our prev location
67 ::rewind((FILE*)f);
74 size_t curr = ::ftell((FILE*)f);
76 SkDEBUGF(("sk_fread: ftell(%p) returned -1 feof:%d ferror:%d\n", f, feof((FILE*)f), ferror((FILE*)f)));
79 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
82 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
88 return ::fread(buffer, 1, byteCount, (FILE*)f);
93 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
98 ::fflush((FILE*)f);
102 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_SET);
107 int err = ::fseek((FILE*)f, byteCount, SEEK_CUR);
112 long curr = ::ftell((FILE*)f);
121 ::fclose((FILE*)f);