return cached;
}
-bool oom_score_adjust_is_valid(int oa) {
- return oa >= OOM_SCORE_ADJ_MIN && oa <= OOM_SCORE_ADJ_MAX;
-}
-
unsigned long personality_from_string(const char *s) {
Architecture architecture;
return 1;
}
+bool oom_score_adjust_is_valid(int oa) {
+ return oa >= OOM_SCORE_ADJ_MIN && oa <= OOM_SCORE_ADJ_MAX;
+}
+
int set_oom_score_adjust(int value) {
char t[DECIMAL_STR_MAX(int)];
bool is_main_thread(void);
-bool oom_score_adjust_is_valid(int oa);
-
#ifndef PERSONALITY_INVALID
/* personality(2) documents that 0xFFFFFFFFUL is used for querying the
* current personality, hence let's use that here as error
ret);
}
+bool oom_score_adjust_is_valid(int oa);
int set_oom_score_adjust(int value);
int get_oom_score_adjust(int *ret);