Loading libcutils/process_name.c +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ #include <fcntl.h> #include <stdlib.h> #include <string.h> #if defined(HAVE_PRCTL) #if defined(__linux__) #include <sys/prctl.h> #endif #include <sys/stat.h> Loading Loading @@ -51,7 +51,7 @@ void set_process_name(const char* new_name) { strcpy(copy, new_name); process_name = (const char*) copy; #if defined(HAVE_PRCTL) #if defined(__linux__) if (len < 16) { prctl(PR_SET_NAME, (unsigned long) new_name, 0, 0, 0); } else { Loading libutils/Threads.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ # define HAVE_CREATETHREAD // Cygwin, vs. HAVE__BEGINTHREADEX for MinGW #endif #if defined(HAVE_PRCTL) #if defined(__linux__) #include <sys/prctl.h> #endif Loading Loading @@ -100,7 +100,7 @@ struct thread_data_t { }; void androidSetThreadName(const char* name) { #if defined(HAVE_PRCTL) #if defined(__linux__) // Mac OS doesn't have this, and we build libutil for the host too int hasAt = 0; int hasDot = 0; Loading Loading
libcutils/process_name.c +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ #include <fcntl.h> #include <stdlib.h> #include <string.h> #if defined(HAVE_PRCTL) #if defined(__linux__) #include <sys/prctl.h> #endif #include <sys/stat.h> Loading Loading @@ -51,7 +51,7 @@ void set_process_name(const char* new_name) { strcpy(copy, new_name); process_name = (const char*) copy; #if defined(HAVE_PRCTL) #if defined(__linux__) if (len < 16) { prctl(PR_SET_NAME, (unsigned long) new_name, 0, 0, 0); } else { Loading
libutils/Threads.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ # define HAVE_CREATETHREAD // Cygwin, vs. HAVE__BEGINTHREADEX for MinGW #endif #if defined(HAVE_PRCTL) #if defined(__linux__) #include <sys/prctl.h> #endif Loading Loading @@ -100,7 +100,7 @@ struct thread_data_t { }; void androidSetThreadName(const char* name) { #if defined(HAVE_PRCTL) #if defined(__linux__) // Mac OS doesn't have this, and we build libutil for the host too int hasAt = 0; int hasDot = 0; Loading