diff --git a/ntfsprogs/Makefile.am b/ntfsprogs/Makefile.am index 1dbdc12b..ff21dcbd 100644 --- a/ntfsprogs/Makefile.am +++ b/ntfsprogs/Makefile.am @@ -38,7 +38,7 @@ EXTRA_PROGRAMS += ntfsrm endif # Set the include path. -AM_CPPFLAGS = -I$(top_srcdir)/include/ntfs $(all_includes) +AM_CPPFLAGS = -I$(top_srcdir)/include/ntfs -I$(top_srcdir)/include/ntfs-3g $(all_includes) ntfsfix_SOURCES = ntfsfix.c utils.c utils.h ntfsfix_LDADD = $(AM_LIBS) diff --git a/ntfsprogs/cluster.c b/ntfsprogs/cluster.c index 98fdcf42..d22d8e41 100644 --- a/ntfsprogs/cluster.c +++ b/ntfsprogs/cluster.c @@ -33,10 +33,9 @@ #include #endif -#include - #include "cluster.h" #include "utils.h" +#include "logging.h" /** * cluster_find diff --git a/ntfsprogs/cluster.h b/ntfsprogs/cluster.h index 47d3edd8..4bc18276 100644 --- a/ntfsprogs/cluster.h +++ b/ntfsprogs/cluster.h @@ -24,8 +24,8 @@ #ifndef _CLUSTER_H_ #define _CLUSTER_H_ -#include -#include +#include "types.h" +#include "volume.h" typedef struct { int x; diff --git a/ntfsprogs/mkntfs.c b/ntfsprogs/mkntfs.c index 467083b2..3f986b30 100644 --- a/ntfsprogs/mkntfs.c +++ b/ntfsprogs/mkntfs.c @@ -128,25 +128,24 @@ # endif #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include "security.h" +#include "types.h" +#include "attrib.h" +#include "bitmap.h" +#include "bootsect.h" +#include "device.h" +#include "dir.h" +#include "mft.h" +#include "mst.h" +#include "runlist.h" #include "utils.h" +#include "ntfstime.h" #include "sd.h" #include "upcase.h" #include "boot.h" #include "attrdef.h" /* #include "version.h" */ +#include "logging.h" #ifdef NO_NTFS_DEVICE_DEFAULT_IO_OPS #error "No default device io operations! Cannot build mkntfs. \ diff --git a/ntfsprogs/ntfscat.c b/ntfsprogs/ntfscat.c index 08acc06b..481a6730 100644 --- a/ntfsprogs/ntfscat.c +++ b/ntfsprogs/ntfscat.c @@ -38,12 +38,12 @@ #include #endif -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" +#include "utils.h" +#include "volume.h" +#include "debug.h" +#include "dir.h" #include "ntfscat.h" /* #include "version.h" */ #include "utils.h" diff --git a/ntfsprogs/ntfscat.h b/ntfsprogs/ntfscat.h index 80ed9174..75b2b068 100644 --- a/ntfsprogs/ntfscat.h +++ b/ntfsprogs/ntfscat.h @@ -25,8 +25,8 @@ #ifndef _NTFSCAT_H_ #define _NTFSCAT_H_ -#include -#include +#include "types.h" +#include "layout.h" struct options { char *device; /* Device/File to work with */ diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 3c687361..8037a68b 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -55,23 +55,22 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include "debug.h" +#include "types.h" +#include "support.h" +#include "endians.h" +#include "bootsect.h" +#include "device.h" +#include "attrib.h" +#include "mst.h" +#include "volume.h" +#include "mft.h" +#include "bitmap.h" +#include "inode.h" +#include "index.h" +#include "dir.h" +#include "runlist.h" +#include "ntfstime.h" #include "utils.h" /* #include "version.h" */ diff --git a/ntfsprogs/ntfscluster.c b/ntfsprogs/ntfscluster.c index c34c17f7..1d67a44b 100644 --- a/ntfsprogs/ntfscluster.c +++ b/ntfsprogs/ntfscluster.c @@ -41,17 +41,16 @@ #include #endif -#include -#include -#include -#include -#include -#include - #include "ntfscluster.h" +#include "types.h" +#include "attrib.h" #include "utils.h" +#include "volume.h" +#include "debug.h" +#include "dir.h" #include "cluster.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfscluster"; static struct options opts; diff --git a/ntfsprogs/ntfscluster.h b/ntfsprogs/ntfscluster.h index 68e6ce50..fbc6c1d3 100644 --- a/ntfsprogs/ntfscluster.h +++ b/ntfsprogs/ntfscluster.h @@ -24,8 +24,8 @@ #ifndef _NTFSCLUSTER_H_ #define _NTFSCLUSTER_H_ -#include -#include +#include "types.h" +#include "layout.h" enum action { act_none, diff --git a/ntfsprogs/ntfscp.c b/ntfsprogs/ntfscp.c index d9b9589e..0747ffe7 100644 --- a/ntfsprogs/ntfscp.c +++ b/ntfsprogs/ntfscp.c @@ -44,15 +44,14 @@ #include #endif -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" #include "utils.h" +#include "volume.h" +#include "dir.h" +#include "debug.h" /* #include "version.h" */ +#include "logging.h" struct options { char *device; /* Device/File to work with */ diff --git a/ntfsprogs/ntfsdecrypt.c b/ntfsprogs/ntfsdecrypt.c index 8ec62271..71b40bb9 100644 --- a/ntfsprogs/ntfsdecrypt.c +++ b/ntfsprogs/ntfsdecrypt.c @@ -63,14 +63,13 @@ #include #endif -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" #include "utils.h" +#include "volume.h" +#include "debug.h" +#include "dir.h" +#include "layout.h" /* #include "version.h" */ typedef gcry_sexp_t ntfs_rsa_private_key; diff --git a/ntfsprogs/ntfsdump_logfile.c b/ntfsprogs/ntfsdump_logfile.c index 4325bc39..d4cdf35d 100644 --- a/ntfsprogs/ntfsdump_logfile.c +++ b/ntfsprogs/ntfsdump_logfile.c @@ -60,18 +60,17 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "endians.h" +#include "volume.h" +#include "inode.h" +#include "attrib.h" +#include "layout.h" +#include "logfile.h" +#include "mst.h" #include "utils.h" /* #include "version.h" */ +#include "logging.h" typedef struct { BOOL is_volume; diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index e763ba94..a0495d8e 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -64,15 +64,14 @@ #include #endif -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" +#include "mft.h" +#include "device.h" +#include "logfile.h" #include "utils.h" /* #include "version.h" */ +#include "logging.h" #ifdef NO_NTFS_DEVICE_DEFAULT_IO_OPS # error "No default device io operations! Cannot build ntfsfix. \ diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index b9a54187..7ceeebcf 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -66,18 +66,17 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "mft.h" +#include "attrib.h" +#include "layout.h" +#include "inode.h" +#include "index.h" #include "utils.h" +#include "security.h" +#include "mst.h" +#include "dir.h" +#include "ntfstime.h" /* #include "version.h" */ static const char *EXEC_NAME = "ntfsinfo"; diff --git a/ntfsprogs/ntfslabel.c b/ntfsprogs/ntfslabel.c index c38662bf..a0412b56 100644 --- a/ntfsprogs/ntfslabel.c +++ b/ntfsprogs/ntfslabel.c @@ -44,12 +44,11 @@ #include #endif -#include -#include -#include - +#include "debug.h" +#include "mft.h" #include "utils.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfslabel"; diff --git a/ntfsprogs/ntfsls.c b/ntfsprogs/ntfsls.c index 4a458992..a7c2fa7c 100644 --- a/ntfsprogs/ntfsls.c +++ b/ntfsprogs/ntfsls.c @@ -42,18 +42,17 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "mft.h" +#include "attrib.h" +#include "layout.h" +#include "inode.h" #include "utils.h" +#include "dir.h" #include "list.h" +#include "ntfstime.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfsls"; diff --git a/ntfsprogs/ntfsmftalloc.c b/ntfsprogs/ntfsmftalloc.c index 951097ac..c665945d 100644 --- a/ntfsprogs/ntfsmftalloc.c +++ b/ntfsprogs/ntfsmftalloc.c @@ -56,16 +56,15 @@ # define LLONG_MAX 9223372036854775807LL #endif -#include -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" +#include "inode.h" +#include "layout.h" +#include "volume.h" +#include "mft.h" #include "utils.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfsmftalloc"; diff --git a/ntfsprogs/ntfsmove.c b/ntfsprogs/ntfsmove.c index e5459d19..ff2457d4 100644 --- a/ntfsprogs/ntfsmove.c +++ b/ntfsprogs/ntfsmove.c @@ -37,17 +37,16 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" #include "utils.h" +#include "volume.h" +#include "debug.h" +#include "dir.h" +#include "bitmap.h" #include "ntfsmove.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfsmove"; static struct options opts; diff --git a/ntfsprogs/ntfsmove.h b/ntfsprogs/ntfsmove.h index a698bc9a..1aeeef2a 100644 --- a/ntfsprogs/ntfsmove.h +++ b/ntfsprogs/ntfsmove.h @@ -24,7 +24,7 @@ #ifndef _NTFSMOVE_H_ #define _NTFSMOVE_H_ -#include +#include "types.h" /* Move files to */ #define NTFS_MOVE_LOC_START -1000 /* the first available space */ #define NTFS_MOVE_LOC_BEST -1001 /* place big enough for entire file */ diff --git a/ntfsprogs/ntfsresize.c b/ntfsprogs/ntfsresize.c index 8d1e071c..eee459d0 100644 --- a/ntfsprogs/ntfsresize.c +++ b/ntfsprogs/ntfsresize.c @@ -51,19 +51,18 @@ #include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - +#include "debug.h" +#include "types.h" +#include "support.h" +#include "endians.h" +#include "bootsect.h" +#include "device.h" +#include "attrib.h" +#include "volume.h" +#include "mft.h" +#include "bitmap.h" +#include "inode.h" +#include "runlist.h" #include "utils.h" /* #include "version.h" */ diff --git a/ntfsprogs/ntfstruncate.c b/ntfsprogs/ntfstruncate.c index 38c2db27..89244fa5 100644 --- a/ntfsprogs/ntfstruncate.c +++ b/ntfsprogs/ntfstruncate.c @@ -58,16 +58,15 @@ # define LLONG_MAX 9223372036854775807LL #endif -#include -#include -#include -#include -#include -#include - +#include "types.h" +#include "attrib.h" +#include "inode.h" +#include "layout.h" +#include "volume.h" #include "utils.h" #include "attrdef.h" /* #include "version.h" */ +#include "logging.h" const char *EXEC_NAME = "ntfstruncate"; diff --git a/ntfsprogs/ntfsundelete.c b/ntfsprogs/ntfsundelete.c index 0968f82f..2714e8e0 100644 --- a/ntfsprogs/ntfsundelete.c +++ b/ntfsprogs/ntfsundelete.c @@ -73,19 +73,18 @@ #define REG_NOERROR 0 #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "ntfsundelete.h" +#include "bootsect.h" +#include "mft.h" +#include "attrib.h" +#include "layout.h" +#include "inode.h" +#include "device.h" #include "utils.h" +#include "debug.h" +#include "ntfstime.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfsundelete"; static const char *MFTFILE = "mft"; diff --git a/ntfsprogs/ntfsundelete.h b/ntfsprogs/ntfsundelete.h index 89daf4b8..f4b0271a 100644 --- a/ntfsprogs/ntfsundelete.h +++ b/ntfsprogs/ntfsundelete.h @@ -24,10 +24,9 @@ #ifndef _NTFSUNDELETE_H_ #define _NTFSUNDELETE_H_ -#include -#include - +#include "types.h" #include "list.h" +#include "runlist.h" enum optmode { MODE_NONE = 0, diff --git a/ntfsprogs/ntfswipe.c b/ntfsprogs/ntfswipe.c index 4d2a4207..dba61d02 100644 --- a/ntfsprogs/ntfswipe.c +++ b/ntfsprogs/ntfswipe.c @@ -47,16 +47,15 @@ #include #endif -#include -#include -#include -#include -#include -#include - #include "ntfswipe.h" +#include "types.h" +#include "volume.h" #include "utils.h" +#include "debug.h" +#include "dir.h" +#include "mst.h" /* #include "version.h" */ +#include "logging.h" static const char *EXEC_NAME = "ntfswipe"; static struct options opts; diff --git a/ntfsprogs/ntfswipe.h b/ntfsprogs/ntfswipe.h index 1e7c937e..d9de8017 100644 --- a/ntfsprogs/ntfswipe.h +++ b/ntfsprogs/ntfswipe.h @@ -24,7 +24,7 @@ #ifndef _NTFSWIPE_H_ #define _NTFSWIPE_H_ -#include +#include "types.h" enum action { act_info, diff --git a/ntfsprogs/sd.c b/ntfsprogs/sd.c index fee2166b..0e4ce809 100644 --- a/ntfsprogs/sd.c +++ b/ntfsprogs/sd.c @@ -1,5 +1,5 @@ -#include -#include +#include "types.h" +#include "layout.h" #include "sd.h" /** diff --git a/ntfsprogs/sd.h b/ntfsprogs/sd.h index d6443ae9..aac6b111 100644 --- a/ntfsprogs/sd.h +++ b/ntfsprogs/sd.h @@ -1,7 +1,7 @@ #ifndef _NTFS_SD_H_ #define _NTFS_SD_H_ -#include +#include "types.h" void init_system_file_sd(int sys_file_no, u8 **sd_val, int *sd_val_len); void init_root_sd_31(u8 **sd_val, int *sd_val_len); diff --git a/ntfsprogs/upcase.c b/ntfsprogs/upcase.c index f83d27e6..113686cd 100644 --- a/ntfsprogs/upcase.c +++ b/ntfsprogs/upcase.c @@ -26,8 +26,8 @@ #include #endif -#include -#include +#include "endians.h" +#include "types.h" #include "upcase.h" /** diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index ee7cd9d7..65ae8eca 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -64,14 +64,13 @@ #include #endif -#include -#include -#include -#include -#include - #include "utils.h" +#include "types.h" +#include "volume.h" +#include "debug.h" +#include "dir.h" /* #include "version.h" */ +#include "logging.h" const char *ntfs_bugs = "Developers' email address: "NTFS_DEV_LIST"\n"; const char *ntfs_home = "Linux NTFS homepage: http://www.linux-ntfs.org\n"; diff --git a/ntfsprogs/utils.h b/ntfsprogs/utils.h index 9fbb20b8..e5cfbb5d 100644 --- a/ntfsprogs/utils.h +++ b/ntfsprogs/utils.h @@ -27,9 +27,9 @@ #include "config.h" -#include -#include -#include +#include "types.h" +#include "layout.h" +#include "volume.h" #ifdef HAVE_ERRNO_H #include