missing_resource.h: RLIMIT_RTTIME is defined since glibc-2.14

Now our baseline is glibc-2.31.
This commit is contained in:
Yu Watanabe
2025-03-04 02:24:49 +09:00
parent 8e091ec420
commit a7cb43d8d1
8 changed files with 6 additions and 22 deletions
-15
View File
@@ -1,15 +0,0 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <sys/resource.h>
#include "macro.h"
#ifndef RLIMIT_RTTIME
# define RLIMIT_RTTIME 15
#else
assert_cc(RLIMIT_RTTIME == 15);
#endif
/* If RLIMIT_RTTIME is not defined, then we cannot use RLIMIT_NLIMITS as is */
#define _RLIMIT_MAX (RLIMIT_RTTIME+1 > RLIMIT_NLIMITS ? RLIMIT_RTTIME+1 : RLIMIT_NLIMITS)
-1
View File
@@ -9,7 +9,6 @@
#include "fileio.h"
#include "format-util.h"
#include "macro.h"
#include "missing_resource.h"
#include "process-util.h"
#include "rlimit-util.h"
#include "string-table.h"
+2 -1
View File
@@ -4,7 +4,8 @@
#include <sys/resource.h>
#include "macro.h"
#include "missing_resource.h"
#define _RLIMIT_MAX RLIMIT_NLIMITS
const char* rlimit_to_string(int i) _const_;
int rlimit_from_string(const char *s) _pure_;