Module Name: src
Committed By: christos
Date: Tue Sep 14 17:10:46 UTC 2021
Modified Files:
src/sys/sys: acct.h sysctl.h
Log Message:
Provide some snprintb(3) formats.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/sys/acct.h
cvs rdiff -u -r1.234 -r1.235 src/sys/sys/sysctl.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/acct.h
diff -u src/sys/sys/acct.h:1.27 src/sys/sys/acct.h:1.28
--- src/sys/sys/acct.h:1.27 Sat Jan 10 21:45:55 2009
+++ src/sys/sys/acct.h Tue Sep 14 13:10:46 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: acct.h,v 1.27 2009/01/11 02:45:55 christos Exp $ */
+/* $NetBSD: acct.h,v 1.28 2021/09/14 17:10:46 christos Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -66,6 +66,14 @@ struct acct {
uint8_t ac_flag; /* accounting flags */
};
+#define __ACCT_FLAG_BITS \
+ "\020" \
+ "\1FORK" \
+ "\2SU" \
+ "\3COMPAT" \
+ "\4CORE" \
+ "\5XSIG"
+
/*
* 1/AHZ is the granularity of the data encoded in the comp_t fields.
* This is not necessarily equal to hz.
Index: src/sys/sys/sysctl.h
diff -u src/sys/sys/sysctl.h:1.234 src/sys/sys/sysctl.h:1.235
--- src/sys/sys/sysctl.h:1.234 Sat Jul 24 09:28:14 2021
+++ src/sys/sys/sysctl.h Tue Sep 14 13:10:46 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.h,v 1.234 2021/07/24 13:28:14 simonb Exp $ */
+/* $NetBSD: sysctl.h,v 1.235 2021/09/14 17:10:46 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -548,6 +548,34 @@ struct kinfo_proc2 {
*/
#define L_DETACHED 0x00800000
+#define __SYSCTL_PROC_FLAG_BITS \
+ "\20" \
+ "\1ADVLOCK" \
+ "\2CONTROLT" \
+ "\3INMEM" \
+ "\4NOCLDSTOP" \
+ "\5PPWAIT" \
+ "\6PROFIL" \
+ "\7SELECT" \
+ "\10SINTR" \
+ "\11SUGID" \
+ "\12SYSTEM" \
+ "\13SA" \
+ "\14TRACED" \
+ "\15WAITED" \
+ "\16WEXIT" \
+ "\17EXEC" \
+ "\20OWEUPC" \
+ "\22NOCLDWAIT" \
+ "\22P32" \
+ "\24CLDSIGIGN" \
+ "\26SYSTRACE" \
+ "\27CHTRACED" \
+ "\30STOPFORK" \
+ "\31STOPEXEC" \
+ "\32STOPEXIT" \
+ "\33SYSCALL"
+
/*
* KERN_LWP structure. See notes on KERN_PROC2 about adding elements.
*/