MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / errnoToStatus

Function errnoToStatus

tools/aapt/ZipFile.cpp:46–54  ·  view source on GitHub ↗

should live somewhere else? */

Source from the content-addressed store, hash-verified

44
45/* should live somewhere else? */
46static status_t errnoToStatus(int err)
47{
48 if (err == ENOENT)
49 return NAME_NOT_FOUND;
50 else if (err == EACCES)
51 return PERMISSION_DENIED;
52 else
53 return UNKNOWN_ERROR;
54}
55
56/*
57 * Open a file and parse its guts.

Callers 4

openMethod · 0.85
openfdMethod · 0.85
addCommonMethod · 0.85
copyFpToFpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected