Lines Matching refs:rc
48 ESR_ReturnCode rc; in PANSIFileSystemCreate() local
63 CHKLOG(rc, PHashTableCreate(NULL, MTAG, &impl->directoryMap)); in PANSIFileSystemCreate()
67 return rc; in PANSIFileSystemCreate()
77 ESR_ReturnCode rc; in PANSIFileSystemDestroyImpl() local
81 CHKLOG(rc, PHashTableEntryGetFirst(impl->directoryMap, &entry)); in PANSIFileSystemDestroyImpl()
84 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); in PANSIFileSystemDestroyImpl()
86 CHKLOG(rc, PHashTableEntryAdvance(&entry)); in PANSIFileSystemDestroyImpl()
87 CHKLOG(rc, PHashTableEntryRemove(oldEntry)); in PANSIFileSystemDestroyImpl()
88 CHKLOG(rc, PHashTableRemoveValue(PFileSystemPathMap, key, NULL)); in PANSIFileSystemDestroyImpl()
92 CHKLOG(rc, PHashTableDestroy(impl->directoryMap)); in PANSIFileSystemDestroyImpl()
98 return rc; in PANSIFileSystemDestroyImpl()
107 ESR_ReturnCode rc; in PANSIFileSystemAddPathImpl() local
112 rc = ESR_INVALID_ARGUMENT; in PANSIFileSystemAddPathImpl()
113 PLogError(ESR_rc2str(rc)); in PANSIFileSystemAddPathImpl()
123 rc = ESR_OUT_OF_MEMORY; in PANSIFileSystemAddPathImpl()
124 PLogError(ESR_rc2str(rc)); in PANSIFileSystemAddPathImpl()
129 CHKLOG(rc, PFileSystemCanonicalSlashes(key)); in PANSIFileSystemAddPathImpl()
135 rc = ESR_OUT_OF_MEMORY; in PANSIFileSystemAddPathImpl()
136 PLogError(ESR_rc2str(rc)); in PANSIFileSystemAddPathImpl()
147 rc = ESR_INVALID_ARGUMENT; in PANSIFileSystemAddPathImpl()
148 PLogError(L("%s: realPath cannot be empty"), ESR_rc2str(rc)); in PANSIFileSystemAddPathImpl()
153 CHKLOG(rc, PFileSystemCanonicalSlashes(value)); in PANSIFileSystemAddPathImpl()
157 CHKLOG(rc, PHashTableContainsKey(impl->directoryMap, key, &exists)); in PANSIFileSystemAddPathImpl()
162 CHKLOG(rc, PHashTableGetValue(impl->directoryMap, key, (void **)&oldValue)); in PANSIFileSystemAddPathImpl()
165 rc = ESR_IDENTIFIER_COLLISION; in PANSIFileSystemAddPathImpl()
166 PLogError(ESR_rc2str(rc)); in PANSIFileSystemAddPathImpl()
170 CHKLOG(rc, PHashTablePutValue(impl->directoryMap, key, value, NULL)); in PANSIFileSystemAddPathImpl()
171 CHKLOG(rc, PHashTablePutValue(PFileSystemPathMap, key, self, NULL)); in PANSIFileSystemAddPathImpl()
176 return rc; in PANSIFileSystemAddPathImpl()
186 ESR_ReturnCode rc; in PANSIFileSystemRemovePathImpl() local
190 rc = ESR_INVALID_ARGUMENT; in PANSIFileSystemRemovePathImpl()
191 PLogError(ESR_rc2str(rc)); in PANSIFileSystemRemovePathImpl()
196 CHKLOG(rc, PFileSystemCanonicalSlashes(path)); in PANSIFileSystemRemovePathImpl()
199 CHKLOG(rc, PHashTableGetEntry(impl->directoryMap, path, &entry)); in PANSIFileSystemRemovePathImpl()
200 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); in PANSIFileSystemRemovePathImpl()
201 CHKLOG(rc, PHashTableEntryRemove(entry)); in PANSIFileSystemRemovePathImpl()
202 CHKLOG(rc, PHashTableRemoveValue(PFileSystemPathMap, key, NULL)); in PANSIFileSystemRemovePathImpl()
207 return rc; in PANSIFileSystemRemovePathImpl()
219 ESR_ReturnCode rc; in PANSIFileSystemGetRealPathImpl() local
221 CHKLOG(rc, PFileSystemGetAbsolutePath(path, len)); in PANSIFileSystemGetRealPathImpl()
222 CHKLOG(rc, PHashTableEntryGetFirst(impl->directoryMap, &entry)); in PANSIFileSystemGetRealPathImpl()
225 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void**)&key, (void**)&value)); in PANSIFileSystemGetRealPathImpl()
236 CHKLOG(rc, PHashTableEntryAdvance(&entry)); in PANSIFileSystemGetRealPathImpl()
240 rc = ESR_INVALID_STATE; in PANSIFileSystemGetRealPathImpl()
248 rc = ESR_BUFFER_OVERFLOW; in PANSIFileSystemGetRealPathImpl()
249 PLogError(ESR_rc2str(rc)); in PANSIFileSystemGetRealPathImpl()
255 CHKLOG(rc, PFileSystemIsAbsolutePath(path, &isAbsolute)); in PANSIFileSystemGetRealPathImpl()
263 CHKLOG(rc, lstrinsert(bestValue, path, 0, len)); in PANSIFileSystemGetRealPathImpl()
267 return rc; in PANSIFileSystemGetRealPathImpl()
274 ESR_ReturnCode rc; in PANSIFileSystemCreatePFileImpl() local
278 CHKLOG(rc, PANSIFileSystemGetRealPathImpl(self, realPath, &len)); in PANSIFileSystemCreatePFileImpl()
281 return rc; in PANSIFileSystemCreatePFileImpl()
291 ESR_ReturnCode rc; in PANSIFileSystemSetDefault() local
299 rc = ESR_OUT_OF_MEMORY; in PANSIFileSystemSetDefault()
300 PLogError(ESR_rc2str(rc)); in PANSIFileSystemSetDefault()
307 rc = ESR_OUT_OF_MEMORY; in PANSIFileSystemSetDefault()
308 PLogError(ESR_rc2str(rc)); in PANSIFileSystemSetDefault()
313 CHKLOG(rc, PHashTableContainsKey(impl->directoryMap, key, &exists)); in PANSIFileSystemSetDefault()
319 CHKLOG(rc, PHashTableGetEntry(impl->directoryMap, L(""), &entry)); in PANSIFileSystemSetDefault()
320 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); in PANSIFileSystemSetDefault()
321 CHKLOG(rc, PHashTableEntryRemove(entry)); in PANSIFileSystemSetDefault()
322 CHKLOG(rc, PHashTableRemoveValue(PFileSystemPathMap, key, NULL)); in PANSIFileSystemSetDefault()
326 CHKLOG(rc, PHashTablePutValue(impl->directoryMap, key, value, NULL)); in PANSIFileSystemSetDefault()
327 CHKLOG(rc, PHashTablePutValue(PFileSystemPathMap, key, PANSIFileSystemSingleton, NULL)); in PANSIFileSystemSetDefault()
333 CHKLOG(rc, PHashTableContainsKey(impl->directoryMap, L(""), &exists)); in PANSIFileSystemSetDefault()
339 CHKLOG(rc, PHashTableGetEntry(impl->directoryMap, L(""), &entry)); in PANSIFileSystemSetDefault()
340 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); in PANSIFileSystemSetDefault()
342 CHKLOG(rc, PHashTableContainsKey(PFileSystemPathMap, L(""), &exists)); in PANSIFileSystemSetDefault()
349 CHKLOG(rc, PHashTableGetEntry(PFileSystemPathMap, L(""), &entry)); in PANSIFileSystemSetDefault()
350 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value)); in PANSIFileSystemSetDefault()
352 CHKLOG(rc, PHashTableEntryRemove(entry)); in PANSIFileSystemSetDefault()
355 CHKLOG(rc, PHashTableEntryRemove(entry)); in PANSIFileSystemSetDefault()
364 return rc; in PANSIFileSystemSetDefault()