git: dac3b7e394fd - stable/14 - Userspace enablement for getrlimitusage(2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Oct 2024 07:11:25 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=dac3b7e394fdf98fdea05608e80f2b24f5ba8e9e
commit dac3b7e394fdf98fdea05608e80f2b24f5ba8e9e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 15:22:57 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-05 07:08:55 +0000
Userspace enablement for getrlimitusage(2)
(cherry picked from commit 9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b)
---
lib/libc/sys/Symbol.map | 3 ++-
sys/sys/resource.h | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map
index 6c79f89016d1..d6126fd952fd 100644
--- a/lib/libc/sys/Symbol.map
+++ b/lib/libc/sys/Symbol.map
@@ -425,7 +425,8 @@ FBSD_1.7 {
};
FBSD_1.8 {
- kcmp;
+ getrlimitusage;
+ kcmp;
};
FBSDprivate_1.0 {
diff --git a/sys/sys/resource.h b/sys/sys/resource.h
index 77119a1e5302..cb36c505beca 100644
--- a/sys/sys/resource.h
+++ b/sys/sys/resource.h
@@ -192,6 +192,9 @@ int getrlimit(int, struct rlimit *);
int getrusage(int, struct rusage *);
int setpriority(int, int, int);
int setrlimit(int, const struct rlimit *);
+#if __BSD_VISIBLE
+int getrlimitusage(unsigned which, int flags, rlim_t *res);
+#endif
__END_DECLS
#endif /* _KERNEL */