Searched refs:exe (Results 1 - 5 of 5) sorted by relevance

/system/core/adb/
H A Dget_my_path_linux.c22 void get_my_path(char *exe, size_t maxLen) argument
25 snprintf(proc, sizeof proc, "/proc/%d/exe", getpid());
26 int err = readlink(proc, exe, maxLen - 1);
28 exe[err] = '\0';
30 exe[0] = '\0';
H A Dget_my_path_windows.c21 void get_my_path(char *exe, size_t maxLen) argument
26 if (GetModuleFileName(NULL, exe, maxLen) > 0) {
27 r = strrchr(exe, '\\');
31 exe[0] = '\0';
H A Dget_my_path_freebsd.c26 get_my_path(char *exe, size_t maxLen) argument
32 int err = readlink(proc, exe, maxLen - 1);
34 exe[err > 0 ? err : 0] = '\0';
/system/core/fastboot/
H A Dutil_windows.c62 void get_my_path(char exe[PATH_MAX]) argument
66 GetModuleFileName( NULL, exe, PATH_MAX-1 );
67 exe[PATH_MAX-1] = 0;
68 r = strrchr( exe, '\\' );
/system/core/libsparse/
H A DAndroid.mk46 # Need a unique module name, but exe should still be called simg2img
67 # Need a unique module name, but exe should still be called simg2img

Completed in 45 milliseconds