summaryrefslogtreecommitdiffstats
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2003-03-28 15:27:30 +0000
committermike <mike@FreeBSD.org>2003-03-28 15:27:30 +0000
commit70f89c52b847076a353c28b1b081c645af2e39e8 (patch)
tree02ce50a896e9b4fa9b4ada3981116a7781223b5d /sys/sys/_types.h
parentd6b685fe45c9bfe193fd3cdf5dc53d54df6897ac (diff)
downloadFreeBSD-src-70f89c52b847076a353c28b1b081c645af2e39e8.zip
FreeBSD-src-70f89c52b847076a353c28b1b081c645af2e39e8.tar.gz
Move details of dev_t (and udev_t) to <sys/_types.h>.
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 09b1586..f9f00f2 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -53,6 +53,7 @@ typedef __uint8_t __sa_family_t;
typedef __uint32_t __socklen_t;
typedef long __suseconds_t; /* microseconds (signed) */
typedef __int32_t __timer_t; /* timer_gettime()... */
+typedef __uint32_t __udev_t; /* device number */
typedef __uint32_t __uid_t;
typedef unsigned int __useconds_t; /* microseconds (unsigned) */
@@ -80,6 +81,16 @@ typedef __ct_rune_t __wchar_t;
typedef __ct_rune_t __wint_t;
/*
+ * dev_t has differing meanings in userland and the kernel.
+ */
+#ifdef _KERNEL
+struct cdev;
+typedef struct cdev *__dev_t;
+#else
+typedef __udev_t __dev_t; /* device number */
+#endif
+
+/*
* mbstate_t is an opaque object to keep conversion state during multibyte
* stream conversions.
*/
OpenPOWER on IntegriCloud