aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2003-03-28 15:27:30 +0000
committerMike Barcroft <mike@FreeBSD.org>2003-03-28 15:27:30 +0000
commita54ec1d233be98c80573446792fce98d5a0889f5 (patch)
tree02ce50a896e9b4fa9b4ada3981116a7781223b5d /sys/sys/_types.h
parentbe231030610cb48b0c0ec6bec94317d131332c5a (diff)
downloadsrc-a54ec1d233be98c80573446792fce98d5a0889f5.tar.gz
src-a54ec1d233be98c80573446792fce98d5a0889f5.zip
Move details of dev_t (and udev_t) to <sys/_types.h>.
Notes
Notes: svn path=/head/; revision=112745
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 09b158680847..f9f00f2453b2 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.
*/