This was part of a hack that has long since been removed
(see
d75f84d641).
Test: mmm frameworks/native/opengl/libs
Change-Id: I42e1e27615e87345f617a45c2ea30a44cc226f2f
// ----------------------------------------------------------------------------
-static char const * getProcessCmdline() {
- long pid = getpid();
- char procPath[128];
- snprintf(procPath, 128, "/proc/%ld/cmdline", pid);
- FILE * file = fopen(procPath, "r");
- if (file) {
- static char cmdline[256];
- char *str = fgets(cmdline, sizeof(cmdline) - 1, file);
- fclose(file);
- if (str) {
- return cmdline;
- }
- }
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-
Loader::driver_t::driver_t(void* gles)
{
dso[0] = gles;