MCPcopy Create free account
hub / github.com/devkitPro/libctru / archive_translate_error

Function archive_translate_error

libctru/source/archive_dev.c:1410–1421  ·  view source on GitHub ↗

! Translate FS service error to errno * * @param[in] error FS service error * * @returns errno */

Source from the content-addressed store, hash-verified

1408 * @returns errno
1409 */
1410static int
1411archive_translate_error(Result error)
1412{
1413 error_map_t key = { .fs_error = error };
1414 const error_map_t *rc = bsearch(&key, error_table, num_errors,
1415 sizeof(error_map_t), error_cmp);
1416
1417 if(rc != NULL)
1418 return rc->error;
1419
1420 return (int)error;
1421}

Callers 15

archive_openFunction · 0.85
archive_closeFunction · 0.85
archive_writeFunction · 0.85
archive_readFunction · 0.85
archive_seekFunction · 0.85
archive_fstatFunction · 0.85
archive_statFunction · 0.85
archive_unlinkFunction · 0.85
archive_chdirFunction · 0.85
archive_renameFunction · 0.85
archive_mkdirFunction · 0.85
archive_diropenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected