Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add an FMT macro to snprintb the callout flags.



details:   https://anonhg.NetBSD.org/src/rev/fc9db2f05f70
branches:  trunk
changeset: 336036:fc9db2f05f70
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 07 19:36:42 2015 +0000

description:
Add an FMT macro to snprintb the callout flags.

diffstat:

 sys/sys/callout.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 1ea6f7eae9aa -r fc9db2f05f70 sys/sys/callout.h
--- a/sys/sys/callout.h Sat Feb 07 19:36:06 2015 +0000
+++ b/sys/sys/callout.h Sat Feb 07 19:36:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: callout.h,v 1.31 2008/04/28 20:24:10 martin Exp $      */
+/*     $NetBSD: callout.h,v 1.32 2015/02/07 19:36:42 christos Exp $    */
 
 /*-
  * Copyright (c) 2000, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -59,6 +59,13 @@
 #define        CALLOUT_MPSAFE          0x0100  /* does not need kernel_lock */
 #define        CALLOUT_FLAGMASK        0xff00
 
+#define CALLOUT_FMT    "\177\020\
+b\00BOUND\0\
+b\01PENDING\0\
+b\02FIRED\0\
+b\03INVOKING\0\
+b\10MPSAFE\0"
+
 #ifdef _CALLOUT_PRIVATE
 
 /* The following funkyness is to appease gcc3's strict aliasing. */



Home | Main Index | Thread Index | Old Index