git: 81fc9469313b - stable/14 - sysctl.3: put KERN_PROC_RLIMIT_USAGE in the right spot
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Apr 2025 00:29:06 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=81fc9469313bc92138d73906622390d5bca5e444
commit 81fc9469313bc92138d73906622390d5bca5e444
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-04-21 18:53:56 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-04-24 00:28:31 +0000
sysctl.3: put KERN_PROC_RLIMIT_USAGE in the right spot
(cherry picked from commit 199a2be029e835c3b284d948e8168af378b06efc)
---
lib/libc/gen/sysctl.3 | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 213c3463a7cc..a87aa7772413 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -504,7 +504,6 @@ specifies the current process.
.It Dv KERN_PROC_ENV Ta "Set of strings"
.It Dv KERN_PROC_AUXV Ta "Elf_Auxinfo []"
.It Dv KERN_PROC_RLIMIT Ta "Integer"
-.It Dv KERN_PROC_RLIMIT_USAGE Ta "rlim_t []"
.It Dv KERN_PROC_PS_STRINGS Ta "Integer"
.It Dv KERN_PROC_UMASK Ta "Integer/short"
.It Dv KERN_PROC_OSREL Ta "Integer"
@@ -513,6 +512,7 @@ specifies the current process.
.It Dv KERN_PROC_NFDS Ta "Integer"
.It Dv KERN_PROC_SIGFASTBLK Ta "Integer"
.It Dv KERN_PROC_VM_LAYOUT Ta "struct kinfo_vm_layout"
+.It Dv KERN_PROC_RLIMIT_USAGE Ta "rlim_t []"
.It Dv KERN_PROC_KQUEUE Ta "struct kinfo_knote []"
.El
.Pp
@@ -551,13 +551,6 @@ Additinal OID name element must be supplied, specifiing the resource name
as in
.Xr getrlimit 2 .
The call returns the given resource limit for the process.
-.It Dv KERN_PROC_RLIMIT_USAGE
-Like
-.Dv KERN_PROC_RLIMIT ,
-but instead of the limit, returns the accounted resource usage.
-For resources which do not have a meaningful current value,
-.Li \-1
-is returned.
.It Dv KERN_PROC_PS_STRINGS
Returns the location of the
.Vt ps_strings
@@ -587,6 +580,13 @@ Returns the address of the
location, if active.
.It Dv KERN_PROC_VM_LAYOUT
Fills a structure describing process virtual address space layout.
+.It Dv KERN_PROC_RLIMIT_USAGE
+Like
+.Dv KERN_PROC_RLIMIT ,
+but instead of the limit, returns the accounted resource usage.
+For resources which do not have a meaningful current value,
+.Li \-1
+is returned.
.It Dv KERN_PROC_KQUEUE
Fills an array of structures describing events registered with
the specified kqueue.