Lines Matching defs:rc

54     int rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
55 RTPrintf("File open: rc=%Rrc\n", rc);
56 if (RT_FAILURE(rc))
58 if (rc != VERR_FILE_NOT_FOUND && rc != VERR_OPEN_FAILED)
64 rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_NONE);
65 RTPrintf("File create: rc=%Rrc\n", rc);
66 if (RT_FAILURE(rc))
75 rc = RTFileSetSize(File, fRun ? 2048 : 20480);
76 RTPrintf("File size: rc=%Rrc\n", rc);
80 rc = RTFileRead(File, &buf, sizeof(buf), NULL);
81 RTPrintf("Read: rc=%Rrc\n", rc);
84 rc = RTFileWrite(File, achTest1, strlen(achTest1), NULL);
85 RTPrintf("Write: rc=%Rrc\n", rc);
88 rc = RTFileLock(File, RTFILE_LOCK_READ | RTFILE_LOCK_IMMEDIATELY, 0, _4G);
89 RTPrintf("Lock: read, non-blocking, rc=%Rrc\n", rc);
90 bool fl = RT_SUCCESS(rc);
93 rc = RTFileRead(File, &buf, sizeof(buf), NULL);
94 RTPrintf("Read: rc=%Rrc\n", rc);
97 rc = RTFileWrite(File, achTest2, strlen(achTest2), NULL);
98 RTPrintf("Write: rc=%Rrc\n", rc);
108 rc = RTFileLock(File, RTFILE_LOCK_WRITE | RTFILE_LOCK_IMMEDIATELY, 0, _4G);
109 RTPrintf("Change lock: write, non-blocking, rc=%Rrc\n", rc);
122 rc = RTFileUnlock(File, 0, _4G);
123 RTPrintf("Unlock: rc=%Rrc\n", rc);
134 rc = RTFileLock(File, RTFILE_LOCK_WRITE | RTFILE_LOCK_IMMEDIATELY, 0, _4G);
135 RTPrintf("Lock: write, non-blocking, rc=%Rrc\n", rc);
136 fl = RT_SUCCESS(rc);
139 rc = RTFileSetSize(File, fRun ? 2048 : 20480);
140 RTPrintf("File size: rc=%Rrc\n", rc);
143 rc = RTFileRead(File, &buf, sizeof(buf), NULL);
144 RTPrintf("Read: rc=%Rrc\n", rc);
147 rc = RTFileWrite(File, achTest3, strlen(achTest3), NULL);
148 RTPrintf("Write: rc=%Rrc\n", rc);