Lines Matching defs:File
3 * IPRT Testcase - File I/O.
44 RTFILE File;
45 int rc = RTFileOpen(&File, "tstFile#1.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE);
53 rc = RTFileGetMaxSizeEx(File, &cbMax);
64 else if (RTFileGetMaxSize(File) != cbMax)
66 RTPrintf("tstFile: RTFileGetMaxSize failed; returns %RTfoff instead of %RTfoff\n", RTFileGetMaxSize(File), cbMax);
73 rc = RTFileSetSize(File, _2G + _1M);
82 rc = RTFileGetSize(File, &cb);
99 uint64_t offFile = RTFileTell(File);
110 rc = RTFileWrite(File, &szTestBuf[cbWritten], sizeof(szTestBuf) - cbWritten, &cbWrittenPart);
123 rc = RTFileSeek(File, 0, RTFILE_SEEK_BEGIN, NULL);
136 rc = RTFileRead(File, &szReadBuf[cbRead], sizeof(szTestBuf) - cbRead, &cbReadPart);
162 rc = RTFileSeek(File, _2G + _1M, RTFILE_SEEK_BEGIN, NULL);
170 offFile = RTFileTell(File);
182 rc = RTFileWrite(File, &szTestBuf[cbWritten], sizeof(szTestBuf) - cbWritten, &cbWrittenPart);
194 rc = RTFileSeek(File, offFile, RTFILE_SEEK_BEGIN, NULL);
207 rc = RTFileRead(File, &szReadBuf[cbRead], sizeof(szTestBuf) - cbRead, &cbReadPart);
235 rc = RTFileSeek(File, _2G + 1, RTFILE_SEEK_BEGIN, NULL);
243 offFile = RTFileTell(File);
252 rc = RTFileSeek(File, 0, RTFILE_SEEK_END, NULL);
260 offFile = RTFileTell(File);
269 rc = RTFileSeek(File, 0, RTFILE_SEEK_BEGIN, NULL);
277 offFile = RTFileTell(File);
290 rc = RTFileClose(File);