Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2024 15:03:28 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9b29fc89ae20 - main - Userspace enablement for getrlimitusage(2)
Message-ID:  <202409271503.48RF3Svj009173@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b

commit 9b29fc89ae20a22516f54e146bfdfa0cfcd60b8b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 15:22:57 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-27 15:02:09 +0000

    Userspace enablement for getrlimitusage(2)
    
    Reviewed by:    markj, olce
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D46747
---
 lib/libsys/Symbol.sys.map | 1 +
 sys/sys/resource.h        | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/lib/libsys/Symbol.sys.map b/lib/libsys/Symbol.sys.map
index 7f70e03a5c25..5a4e66baf3c4 100644
--- a/lib/libsys/Symbol.sys.map
+++ b/lib/libsys/Symbol.sys.map
@@ -379,6 +379,7 @@ FBSD_1.7 {
 };
 
 FBSD_1.8 {
+	getrlimitusage;
 	kcmp;
 };
 
diff --git a/sys/sys/resource.h b/sys/sys/resource.h
index d2803cccf380..2725aa1ef646 100644
--- a/sys/sys/resource.h
+++ b/sys/sys/resource.h
@@ -190,6 +190,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409271503.48RF3Svj009173>