Lines Matching refs:fp
43 IOFile(const char* s, const char* mode) : fp(0) { in IOFile()
44 fp = ::fopen(s, mode); in IOFile()
45 if(!fp) { in IOFile()
51 if(fp) { in read()
52 return ::fread(&r, sizeof(T), elem, fp); in read()
57 if(fp) { in write()
58 return ::fprintf(fp, s, val); in write()
62 bool valid() const { return fp != 0; } in valid()
64 if(fp) ::fclose(fp); in ~IOFile()
65 fp=0; in ~IOFile()
67 FILE* fp; member
251 IOFile fp(Res::edid3dInfoFile, "r"); in is3DTV() local
252 (void)fp.read(is3DTV, 1); in is3DTV()
281 IOFile fp(Res::format3DFile, "wb"); in send3DInfoPacket() local
282 (void)fp.write("%d", format3D); in send3DInfoPacket()
283 if(!fp.valid()) { in send3DInfoPacket()
291 IOFile fp(Res::barrierFile, "wb"); in enableBarrier() local
292 (void)fp.write("%d", orientation); in enableBarrier()
293 if(!fp.valid()) { in enableBarrier()