PERFORCE change 33484 for review
    Robert Watson 
    rwatson at FreeBSD.org
       
    Sat Jun 21 18:24:59 PDT 2003
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=33484
Change 33484 by rwatson at rwatson_powerbook on 2003/06/21 18:24:23
	Darwin doesn't have SYSCTL_UINT(), so add it.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sysctl.h#2 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sysctl.h#2 (text+ko) ====
@@ -104,6 +104,7 @@
 #define	CTLTYPE_QUAD	4	/* name describes a 64-bit number */
 #define	CTLTYPE_OPAQUE	5	/* name describes a structure */
 #define	CTLTYPE_STRUCT	CTLTYPE_OPAQUE	/* name describes a structure */
+#define	CTLTYPE_UINT	6	/* name describes an unsigned integer */
 
 #define CTLFLAG_RD	0x80000000	/* Allow reads of variable */
 #define CTLFLAG_WR	0x40000000	/* Allow writes to the variable */
@@ -204,6 +205,11 @@
 	SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
 		ptr, val, sysctl_handle_int, "I", descr)
 
+/* Oid for an unsigned int.  If ptr is NULL, val is returned. */
+#define SYSCTL_UINT(parent, nbr, name, access, ptr, val, descr) \
+	SYSCTL_OID(parent, nbr, name, CTLTYPE_UINT|access, \
+		ptr, val, sysctl_handle_int, "IU", descr)
+
 /* Oid for a long.  The pointer must be non NULL. */
 #define SYSCTL_LONG(parent, nbr, name, access, ptr, descr) \
 	SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|access, \
    
    
More information about the p4-projects
mailing list