diff options
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r-- | sys/sys/_types.h | 11 |
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. */ |