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_;
+1 -1
View File
@@ -22,13 +22,13 @@ typedef struct Manager Manager;
#include "exec-util.h"
#include "fdset.h"
#include "list.h"
#include "missing_resource.h"
#include "namespace.h"
#include "nsflags.h"
#include "numa-util.h"
#include "open-file.h"
#include "ordered-set.h"
#include "path-util.h"
#include "rlimit-util.h"
#include "runtime-scope.h"
#include "set.h"
#include "time-util.h"
+1 -1
View File
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <sys/resource.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -10,7 +11,6 @@
#include "bus-kernel.h"
#include "constants.h"
#include "fd-util.h"
#include "missing_resource.h"
#include "string-util.h"
#include "tests.h"
#include "time-util.h"
+1 -1
View File
@@ -11,9 +11,9 @@
#include "conf-parser.h"
#include "cpu-set-util.h"
#include "macro.h"
#include "missing_resource.h"
#include "nspawn-expose-ports.h"
#include "nspawn-mount.h"
#include "rlimit-util.h"
#include "seccomp-util.h"
#include "time-util.h"
+1 -1
View File
@@ -8,7 +8,7 @@
#include "sd-json.h"
#include "hashmap.h"
#include "missing_resource.h"
#include "rlimit-util.h"
#include "strv.h"
#include "time-util.h"
#include "user-util.h"
-1
View File
@@ -8,7 +8,6 @@
#include "alloc-util.h"
#include "capability-util.h"
#include "macro.h"
#include "missing_resource.h"
#include "process-util.h"
#include "rlimit-util.h"
#include "string-util.h"