patch-2.4.4 linux/fs/ntfs/ntfstypes.h

Next file: linux/fs/ntfs/struct.h
Previous file: linux/fs/ntfs/ntfsendian.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/fs/ntfs/ntfstypes.h linux/fs/ntfs/ntfstypes.h
@@ -1,26 +1,21 @@
-/*
- *  ntfstypes.h
- *  This file defines four things:
- *   - generic platform independent fixed-size types (e.g. ntfs_u32)
- *   - specific fixed-size types (e.g. ntfs_offset_t)
- *   - macros that read and write those types from and to byte arrays
- *   - types derived from OS specific ones
+/*  ntfstypes.h - This file defines four things:
+ *   - Generic platform independent fixed-size types (e.g. ntfs_u32).
+ *   - Specific fixed-size types (e.g. ntfs_offset_t).
+ *   - Macros that read and write those types from and to byte arrays.
+ *   - Types derived from OS specific ones.
  *
- *  Copyright (C) 1996,1998, 1999 Martin von Löwis
+ *  Copyright (C) 1996, 1998, 1999 Martin von Löwis
+ *  Copyright (C) 2001 Anton Altaparmakov (AIA)
  */
 
-#ifdef NTFS_IN_LINUX_KERNEL
-/* get installed types if we compile the kernel*/
 #include <linux/fs.h>
-#endif
 
 /* We don't need to define __LITTLE_ENDIAN, as we use
    <asm/byteorder>. */
-
 #include "ntfsendian.h"
 #include <asm/types.h>
 
-/* integral types */
+/* Integral types */
 #ifndef NTFS_INTEGRAL_TYPES
 #define NTFS_INTEGRAL_TYPES
 typedef u8  ntfs_u8;
@@ -33,12 +28,12 @@
 typedef s64 ntfs_s64;
 #endif
 
-/* unicode character type */
+/* Unicode character type */
 #ifndef NTFS_WCHAR_T
 #define NTFS_WCHAR_T
 typedef u16 ntfs_wchar_t;
 #endif
-/* file offset */
+/* File offset */
 #ifndef NTFS_OFFSET_T
 #define NTFS_OFFSET_T
 typedef u64 ntfs_offset_t;
@@ -48,7 +43,7 @@
 #define NTFS_TIME64_T
 typedef u64 ntfs_time64_t;
 #endif
-/* This is really unsigned long long. So we support only volumes up to 2 TB */
+/* This is really unsigned long long. So we support only volumes up to 2Tb. */
 #ifndef NTFS_CLUSTER_T
 #define NTFS_CLUSTER_T
 typedef u32 ntfs_cluster_t;
@@ -58,13 +53,13 @@
 #define MAX_CLUSTER_T (~((ntfs_cluster_t)0))
 #endif
 
-/* architecture independent macros */
+/* Architecture independent macros. */
 
-/* PUTU32 would not clear all bytes */
-#define NTFS_PUTINUM(p,i)    NTFS_PUTU64(p,i->i_number);\
-                             NTFS_PUTU16(((char*)p)+6,i->sequence_number)
+/* PUTU32 would not clear all bytes. */
+#define NTFS_PUTINUM(p,i)    NTFS_PUTU64(p, i->i_number); \
+                             NTFS_PUTU16(((char*)p) + 6, i->sequence_number)
 
-/* system dependent types */
+/* System dependent types. */
 #include <asm/posix_types.h>
 #ifndef NTMODE_T
 #define NTMODE_T
@@ -87,8 +82,3 @@
 typedef __kernel_time_t ntfs_time_t;
 #endif
 
-/*
- * Local variables:
- * c-file-style: "linux"
- * End:
- */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)