diff options
author | jb <jb@FreeBSD.org> | 2007-11-28 21:49:16 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-28 21:49:16 +0000 |
commit | 38265529fecb8c67a107347b94b549a5ab474019 (patch) | |
tree | 0204adec223c5a124296e7a03c93a78a75639a09 /sys/cddl | |
parent | ce9a47435230e76b8cf683c10e00444798c876c6 (diff) | |
download | FreeBSD-src-38265529fecb8c67a107347b94b549a5ab474019.zip FreeBSD-src-38265529fecb8c67a107347b94b549a5ab474019.tar.gz |
Add compatibility cruft moved from under _SOLARIS_C_SOURCE in sys/types.h
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/compat/opensolaris/sys/types.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/types.h b/sys/cddl/compat/opensolaris/sys/types.h index 4006aec..a99e1f0 100644 --- a/sys/cddl/compat/opensolaris/sys/types.h +++ b/sys/cddl/compat/opensolaris/sys/types.h @@ -39,6 +39,18 @@ #define MAXNAMELEN 256 typedef struct timespec timestruc_t; +typedef u_int uint_t; +typedef u_char uchar_t; +typedef u_short ushort_t; +typedef u_long ulong_t; +typedef long long longlong_t; +typedef unsigned long long u_longlong_t; +typedef off_t off64_t; +typedef id_t taskid_t; +typedef id_t projid_t; +typedef id_t poolid_t; +typedef id_t zoneid_t; +typedef id_t ctid_t; #ifdef _KERNEL @@ -53,6 +65,12 @@ typedef int64_t rlim64_t; #else +#if defined(__XOPEN_OR_POSIX) +typedef enum { _B_FALSE, _B_TRUE } boolean_t; +#else +typedef enum { B_FALSE, B_TRUE } boolean_t; +#endif /* defined(__XOPEN_OR_POSIX) */ + typedef longlong_t offset_t; typedef u_longlong_t u_offset_t; typedef uint64_t upad64_t; |