32 const char *oomfilename;
56 getitimer(ITIMER_PROF, &prof_itimer);
64 setitimer(ITIMER_PROF, &prof_itimer, NULL);
83 oomfilename = getenv(
"PG_OOM_ADJUST_FILE");
85 if (oomfilename != NULL)
91 int fd = open(oomfilename, O_WRONLY, 0);
96 const char *oomvalue = getenv(
"PG_OOM_ADJUST_VALUE");
102 rc =
write(
fd, oomvalue, strlen(oomvalue));
static void const char fflush(stdout)
void pg_strong_random_init(void)
static int fd(const char *x, int i)
int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)