From 2284bc4af5054d124cc99197e7c03152d0c20245 Mon Sep 17 00:00:00 2001 From: Bendeguz Pisch <pisch.beni@gmail.com> Date: Mon, 4 Mar 2024 13:41:43 +0000 Subject: [PATCH] Fix posix prio process (same as MR458 with fixed commits) --- src/header/sys_resource/mod.rs | 2 +- tests/Makefile | 1 + tests/resource/prio_process.c | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/resource/prio_process.c diff --git a/src/header/sys_resource/mod.rs b/src/header/sys_resource/mod.rs index e62bb67e..f56f23f3 100644 --- a/src/header/sys_resource/mod.rs +++ b/src/header/sys_resource/mod.rs @@ -61,7 +61,7 @@ pub struct rusage { pub ru_nivcsw: c_long, } -pub const PRIO_PROGRESS: c_int = 0; +pub const PRIO_PROCESS: c_int = 0; pub const PRIO_PGRP: c_int = 1; pub const PRIO_USER: c_int = 2; diff --git a/tests/Makefile b/tests/Makefile index 21ed06bb..22e89214 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -188,6 +188,7 @@ NAMES=\ grp/getgrgid_r \ grp/getgrnam_r \ grp/gr_iter \ + resource/prio_process \ # resource/getrusage # time/times diff --git a/tests/resource/prio_process.c b/tests/resource/prio_process.c new file mode 100644 index 00000000..748b8a18 --- /dev/null +++ b/tests/resource/prio_process.c @@ -0,0 +1,8 @@ +#include <stdio.h> +#include <sys/resource.h> + +int main(void) { + printf("PRIO_PROCESS: %d", PRIO_PROCESS); + return 0; +} + -- GitLab