Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Provide some snprintb(3) formats.



details:   https://anonhg.NetBSD.org/src/rev/62b9b787bd11
branches:  trunk
changeset: 986228:62b9b787bd11
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 14 17:10:46 2021 +0000

description:
Provide some snprintb(3) formats.

diffstat:

 sys/sys/acct.h   |  10 +++++++++-
 sys/sys/sysctl.h |  30 +++++++++++++++++++++++++++++-
 2 files changed, 38 insertions(+), 2 deletions(-)

diffs (68 lines):

diff -r 9a354622f829 -r 62b9b787bd11 sys/sys/acct.h
--- a/sys/sys/acct.h    Tue Sep 14 17:09:18 2021 +0000
+++ b/sys/sys/acct.h    Tue Sep 14 17:10:46 2021 +0000
@@ -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 @@
        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.
diff -r 9a354622f829 -r 62b9b787bd11 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Tue Sep 14 17:09:18 2021 +0000
+++ b/sys/sys/sysctl.h  Tue Sep 14 17:10:46 2021 +0000
@@ -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 @@
  */
 #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.
  */



Home | Main Index | Thread Index | Old Index