]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_macos_defs.h
xnu-2422.1.72.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_macos_defs.h
index 230fa50a63d04ed68a4d92bcce79a489705ca3dd..f150e29054486e4122d32db0f4420869080fb010 100644 (file)
 #ifdef __APPLE_API_PRIVATE
 
 #include <sys/param.h>
-       #ifdef KERNEL
-       #include <libkern/libkern.h>
-       #include <sys/systm.h>
-       #endif
 
+#include <libkern/OSTypes.h>
+#include <libkern/libkern.h>
+#include <sys/systm.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/proc.h>
        #define nil NULL
 #endif
 
-
-typedef u_int8_t               UInt8;
-typedef int8_t                 SInt8;
-typedef u_int16_t              UInt16;
-typedef int16_t                SInt16;
-typedef u_int32_t              UInt32;
-typedef int32_t                SInt32;
-typedef u_int64_t              UInt64;
-typedef int64_t                SInt64;
-
 typedef char *                 Ptr;
 typedef long                   Size;
 
-typedef SInt16                         OSErr;
-typedef SInt32                         OSStatus;
-typedef UInt32                         ItemCount;
-typedef void *                 LogicalAddress;
-typedef UInt32                         ByteCount;
-typedef UInt8 *                        BytePtr;
-typedef UInt32                         ByteOffset;
-typedef UInt32                         OptionBits;
-typedef unsigned long          FourCharCode;
-typedef FourCharCode           OSType;
-
-typedef UInt16                         UniChar;
+typedef int16_t                        OSErr;
+typedef u_int32_t                      ItemCount;
+typedef u_int32_t                      ByteCount;
+typedef u_int8_t *                     BytePtr;
+typedef u_int32_t                      ByteOffset;
+
+typedef u_int16_t                      UniChar;
 typedef unsigned char          Str255[256];
 typedef unsigned char          Str31[32];
 typedef unsigned char *                StringPtr;
@@ -143,10 +127,10 @@ typedef const unsigned char *     ConstStr255Param;
 typedef const unsigned char *  ConstStr31Param;
 typedef const unsigned char *  ConstUTF8Param;
 
-typedef UInt8                  Byte;
+typedef u_int8_t                       Byte;
 
-typedef UInt32                         TextEncoding;
-typedef UniChar *              UniCharArrayPtr;
+typedef u_int32_t                      TextEncoding;
+typedef UniChar *                      UniCharArrayPtr;
 typedef const UniChar *                ConstUniCharArrayPtr;
 
 
@@ -174,12 +158,8 @@ enum {
 
 #endif  /*  !TYPE_BOOL */
 
-typedef unsigned char                          Boolean;
-
-
-
 
-EXTERN_API( void ) DebugStr(ConstStr255Param debuggerMsg);
+EXTERN_API( void ) DebugStr(const char * debuggerMsg);
 
 /*********************************************************************************
 
@@ -304,7 +284,7 @@ BlockMoveData(const void * srcPtr, void * destPtr, Size byteCount);
 #define BlockMoveData(src, dest, len)  bcopy((src), (dest), (len))
 
 EXTERN_API_C( void )
-ClearMemory(void * start, UInt32 length);
+ClearMemory(void * start, u_int32_t length);
 
 #define ClearMemory(start, length)     bzero((start), (size_t)(length));