Home | History | Annotate | Download | only in src

Lines Matching refs:rc

48   ESR_ReturnCode rc;
52 rc = ESR_INVALID_ARGUMENT;
53 PLogError(ESR_rc2str(rc));
58 CHKLOG(rc, lstrreplace(path, L('\\'), L('/')));
61 return rc;
66 ESR_ReturnCode rc;
76 rc = ESR_INVALID_ARGUMENT;
77 PLogError(ESR_rc2str(rc));
81 CHKLOG(rc, PFileSystemCanonicalSlashes(linear));
82 CHKLOG(rc, ArrayListCreate(&arrayList));
92 rc = ESR_OUT_OF_MEMORY;
93 PLogError(ESR_rc2str(rc));
98 CHKLOG(rc, lstrtrim(value));
106 CHKLOG(rc, arrayList->add(arrayList, value));
115 CHKLOG(rc, arrayList->getSize(arrayList, count));
119 rc = ESR_OUT_OF_MEMORY;
124 rc = arrayList->get(arrayList, i, (void**)(&(*tokenArray)[i]));
125 if (rc != ESR_SUCCESS)
128 rc = arrayList->destroy(arrayList);
129 if (rc != ESR_SUCCESS)
140 return rc;
145 return rc;
149 return rc;
153 return rc;
159 ESR_ReturnCode rc;
163 rc = ESR_INVALID_ARGUMENT;
164 PLogError(ESR_rc2str(rc));
168 CHKLOG(rc, PFileSystemCanonicalSlashes(canonical));
174 return rc;
179 ESR_ReturnCode rc;
187 rc = ESR_INVALID_ARGUMENT;
188 PLogError(ESR_rc2str(rc));
191 CHKLOG(rc, PFileSystemIsAbsolutePath(path, &isAbsolute));
200 CHKLOG(rc, PFileSystemGetcwd(cwd, &len2));
202 CHKLOG(rc, lstrinsert(cwd, path, 0, &len2));
205 CHKLOG(rc, PFileSystemCanonicalSlashes(path));
207 CHKLOG(rc, PFileSystemLinearToPathTokens(path, &tokens, &tokenLen));
218 CHKLOG(rc, PFileSystemGetParentDirectory(path, &len2));
247 return rc;
252 ESR_ReturnCode rc;
256 rc = ESR_INVALID_ARGUMENT;
257 PLogError(ESR_rc2str(rc));
263 return rc;
275 ESR_ReturnCode rc;
282 CHKLOG(rc, PHashTableEntryGetFirst(PFileSystemPathMap, &entry));
285 CHKLOG(rc, PHashTableEntryGetKeyValue(entry, (void **)&key, (void **)&value));
297 CHKLOG(rc, PHashTableEntryAdvance(&entry));
301 rc = ESR_INVALID_STATE;
310 CHKLOG(rc, PFileSystemIsAbsolutePath(path + LSTRLEN(bestKey), &isAbsolute));
321 return rc;
326 ESR_ReturnCode rc;
333 rc = ESR_INVALID_ARGUMENT;
334 PLogError(ESR_rc2str(rc));
340 CHKLOG(rc, PFileSystemGetAbsolutePath(absolutePath, &len));
341 CHKLOG(rc, PFileSystemGetFS(absolutePath, &fileSystem, NULL));
342 rc = fileSystem->createPFile(fileSystem, absolutePath, littleEndian, self);
343 if (rc == ESR_NO_MATCH_ERROR)
344 rc = ESR_OPEN_ERROR;
345 if (rc != ESR_SUCCESS)
347 PLogError("%s, %s, %s", ESR_rc2str(rc), filename, absolutePath);
352 return rc;
357 ESR_ReturnCode rc;
364 rc = ESR_INVALID_ARGUMENT;
365 PLogError(ESR_rc2str(rc));
371 CHKLOG(rc, PFileSystemGetAbsolutePath(absolutePath, &len));
372 CHKLOG(rc, PFileSystemGetFS(absolutePath, &fileSystem, NULL));
373 CHK(rc, fileSystem->mkdir(fileSystem, absolutePath));
376 return rc;
381 ESR_ReturnCode rc;
385 rc = ESR_INVALID_ARGUMENT;
386 PLogError(ESR_rc2str(rc));
391 rc = ESR_BUFFER_OVERFLOW;
393 PLogError(ESR_rc2str(rc));
401 return rc;
406 ESR_ReturnCode rc;
413 rc = ESR_INVALID_ARGUMENT;
414 PLogError(ESR_rc2str(rc));
423 CHKLOG(rc, PFileSystemGetAbsolutePath(absolutePath, &len));
424 CHKLOG(rc, PFileSystemGetFS(absolutePath, &fileSystem, NULL));
425 rc = fileSystem->chdir(fileSystem, absolutePath);
426 if (rc != ESR_SUCCESS)
428 PLogError(ESR_rc2str(rc));
436 return rc;
446 ESR_ReturnCode rc;
451 rc = ESR_INVALID_ARGUMENT;
452 PLogError(ESR_rc2str(rc));
458 CHKLOG(rc, PFileSystemGetAbsolutePath(clone, &len2));
475 rc = ESR_BUFFER_OVERFLOW;
490 rc = ESR_BUFFER_OVERFLOW;
502 rc = ESR_BUFFER_OVERFLOW;
511 rc = ESR_INVALID_ARGUMENT;
512 PLogError(ESR_rc2str(rc));
523 rc = ESR_BUFFER_OVERFLOW;
536 return rc;
542 ESR_ReturnCode rc;
547 CHKLOG(rc, PFileSystemCanonicalSlashes(temp));
551 return rc;