return -1;
}
+#ifdef TIZEN_FEATURE_SET_PERSONALITY_32
+static void __set_execution_domain(void)
+{
+ char err_buf[1024];
+ int res;
+
+ res = personality(PER_LINUX32);
+ if (res < 0) {
+ _E("personality() failed, error: %d (%s)",
+ errno,
+ strerror_r(errno, err_buf, sizeof(err_buf)));
+ }
+}
+#endif /* TIZEN_FEATURE_SET_PERSONALITY_32 */
+
void _set_env(appinfo_t *menu_info, bundle *kb)
{
const char *str;
setenv("AUL_PID", buf, 1);
#ifdef TIZEN_FEATURE_SET_PERSONALITY_32
- int res = personality(PER_LINUX32);
-
- if (res < 0) {
- _E("personality() failed, error: %d (%s)",
- errno, strerror(errno));
- }
-#endif
+ __set_execution_domain();
+#endif /* TIZEN_FEATURE_SET_PERSONALITY_32 */
}
char **_create_argc_argv(bundle *kb, int *margc)