Jean-Pierre André
2f373dee56
ntfsprogs Builds on Windows use macroes to translate printing formats,
...
and these macroes redefined "buf" in a way which causes trouble when
"buf" has another meaning. Use "_b" instead.
2015-09-30 09:08:35 +02:00
Jean-Pierre André
4340df770e
Supported the directory separator on Windows in ntfsprogs (cosmetic)
...
On Windows, when an ntfsprogs utility requests a path translation,
translate the '\'s to '/'s so that only '/' have to be interpreted
in libntfs.
2015-04-17 09:15:25 +02:00
Jean-Pierre André
b35a204d01
Increased the maximum format size on Windows
...
The long long printing formats (such as %lld or %llx) have to be
translated to %I64 on older Windows systems, and the buffers to
receive the translated format must be able to hold the tool banners
which can be quite lengthy.
2013-04-22 18:31:16 +02:00
Jean-Pierre André
c17512cde5
Translated %ll print editing formats to %I64 on Windows
...
Older msvcrt.dll (on XP and earlier) did not support "%ll" print editing
formats frequently used by ntfsclone. So translate them to "%I64" when
running on Windows. This format appears to be supported by all Windows
versions. Error messages from libntfs-3g are still not translated.
2013-02-09 12:57:22 +01:00
Jean-Pierre André
7eccaa3c53
Fixed the type of argument of utils_mount_volume()
2011-01-10 11:19:54 +01:00
Jean-Pierre André
9f40bcfc22
Moved ntfs_mbstoucs_libntfscompat() to utils.c
2010-12-21 15:51:07 +01:00
Jean-Pierre André
1c9ef6293b
Moved the definition of leMFT_REF to layout.h
2010-12-21 15:51:07 +01:00
Erik Larsson
2a1fb5f489
Merge branch 'ntfsprogs_merge' into ntfsprogs_merge.v2_0_0
2010-12-19 15:12:57 +01:00
Erik Larsson
de22c98ec0
Removed the 'ntfs_home' string from utils.c/h since it was referring to Linux-NTFS and it was a duplicate symbol (an equivalent string exists in volume.c/h).
2010-12-19 15:11:28 +01:00
Erik Larsson
bcdc76f12d
Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH
...
Conflicts:
.cvsignore
AUTHORS
CREDITS
ChangeLog
NEWS
README
TODO.libntfs
autogen.sh
configure.ac
include/ntfs/Makefile.am
libntfs-3g/misc.c
libntfs/Makefile.am
libntfs/gnome-vfs-method.c
libntfs/gnome-vfs-module.c
ntfsprogs.spec.in
ntfsprogs/.cvsignore
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.8.in
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscp.8.in
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsprogs.8.in
ntfsprogs/ntfsresize.c
ntfsprogs/ntfsrm.c
ntfsprogs/ntfsundelete.h
ntfsprogs/upcase.c
ntfsprogs/utils.c
test/Makefile.am
2010-12-17 09:04:01 +01:00
Erik Larsson
16dbcbec0c
Restored 'local' includes for all the ntfsprogs instead of using system includes (e.g. #include "yada.h" instead of #include <ntfs-3g/yada.h>).
2010-12-16 09:59:42 +01:00
Erik Larsson
7a95c46e3d
Bugfix for ntfs_mbstoucs_libntfscompat: Take the the \0 terminator into account when determining whether reallocing is necessary.
2010-12-09 12:17:11 +01:00
Erik Larsson
e81fd0ee2a
Important bugfix for ntfs_mbstoucs_libntfscompat: We reallocated too little memory.
2010-12-09 12:15:50 +01:00
Erik Larsson
9c581432cb
Important bugfix for ntfs_mbstoucs_libntfscompat: Typo in memcpy operation led to the wrong data being copied!
2010-12-09 12:14:13 +01:00
Erik Larsson
6bf6464aeb
Merge branch 'libntfs-3g_port' into libntfs-3g_port-v2_0_0
2010-12-02 22:40:15 +01:00
Erik Larsson
7b62a83286
utils.h: Added missing typedef leMFT_REF.
2010-12-02 22:39:06 +01:00
Erik Larsson
dd3d394010
utils.h: Added ntfs_attr_get_name, a simple inline function from libntfs that was referenced in the ntfsprogs code.
2010-12-02 22:34:00 +01:00
Erik Larsson
713fbb390e
Merge commit 'v2_0_0' into libntfs-3g_port-v2_0_0
...
Conflicts:
configure.ac
include/ntfs/Makefile.am
include/ntfs/attrib.h
include/ntfs/bitmap.h
include/ntfs/collate.h
include/ntfs/debug.h
include/ntfs/dir.h
include/ntfs/endians.h
include/ntfs/index.h
include/ntfs/inode.h
include/ntfs/layout.h
include/ntfs/logfile.h
include/ntfs/logging.h
include/ntfs/mft.h
include/ntfs/ntfstime.h
include/ntfs/runlist.h
include/ntfs/support.h
include/ntfs/types.h
include/ntfs/unistr.h
include/ntfs/volume.h
libntfs/Makefile.am
libntfs/attrib.c
libntfs/attrlist.c
libntfs/bitmap.c
libntfs/bootsect.c
libntfs/collate.c
libntfs/compress.c
libntfs/debug.c
libntfs/device.c
libntfs/device_io.c
libntfs/dir.c
libntfs/index.c
libntfs/inode.c
libntfs/lcnalloc.c
libntfs/logfile.c
libntfs/logging.c
libntfs/mft.c
libntfs/mst.c
libntfs/runlist.c
libntfs/security.c
libntfs/unistr.c
libntfs/unix_io.c
libntfs/volume.c
libntfs/win32_io.c
ntfsprogs/Makefile.am
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.c
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscmp.c
ntfsprogs/ntfscp.c
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsmount.8.in
ntfsprogs/ntfsmount.c
ntfsprogs/ntfsundelete.c
ntfsprogs/upcase.c
2010-12-02 22:31:21 +01:00
Erik Larsson
efb3204b76
utils.h: Updated ntfs_mbstoucs_libntfscompat to comply better with how libntfs' implementation works (with respect to preallocated buffers).
2010-12-02 17:05:48 +01:00
Erik Larsson
5b9b4c7e49
Removing all references to the libntfs library version until we have such functionality in libntfs-3g.
2010-12-02 16:38:16 +01:00
Erik Larsson
ee3297311d
utils.h: Fixed absent definition of MAX_PATH by copying the definition from libntfs's headers (dir.h).
2010-12-02 16:16:47 +01:00
Erik Larsson
b538215ddb
Replaced all occurrences of ntfs_mbstoucs with a compatibility wrapper function (ntfs_mbstoucs_libntfscompat).
...
The interface and semantics of ntfs_mbstoucs differ between libntfs and libntfs-3g, so this compatibility wrapper tries to address the differences.
2010-12-02 16:05:22 +01:00
Erik Larsson
f03d683fa0
Commented out all references to 'version.h' (which doesn't exist in libntfs-3g) and added a stub implementation of ntfs_libntfs_version in utils.h to allow things to compile.
2010-12-02 15:58:14 +01:00
Erik Larsson
1860eff1da
Updated all includes in the basic ntfsprogs utilities for libntfs-3g.
2010-12-02 15:57:58 +01:00
Yura Pakhuchiy
37476cf609
Introduce NTFS_MNT_FORCE instead of third parameter of utils_mount_volume
2007-09-15 18:12:32 +03:00
yura
28a2b1f2b0
prepare to Szaka's code merge: remove not working Rich's index code
2006-07-17 11:49:52 +00:00
szaka
22ff6e8c41
remove old, unused logging macros
2005-11-27 12:35:29 +00:00
uvman
56f119b245
Surround error-prone macros with parentheses
2005-10-28 13:00:48 +00:00
uvman
8f43f0ef4c
Match parameter names between .h and .c files
2005-10-28 12:47:49 +00:00
flatcap
ec842e871a
remove some old defines
2005-10-28 04:41:39 +00:00
flatcap
8892ba7ac6
remove some colour hacks
...
remove a few #ifdef DEBUGs and RM_WRITEs
throw in lots of extra traces
2005-10-28 04:32:21 +00:00
flatcap
5bd198d66e
logging renames
...
utils only uses stderr, now
whitespace fixes
2005-10-26 20:48:00 +00:00
flatcap
f4e427e91a
implement logging in libntfs
...
fix whitespace
fix build problems
tidy source code
and more...
2005-10-21 18:05:13 +00:00
flatcap
ea2c4c6c61
fix build warning - duplicate definition
2005-10-17 14:07:28 +00:00
flatcap
2a8d602d9f
ntfsrm has been split up and merged into libntfs.
...
currently it's #ifdef'd out.
tree.c - code for handling directory trees
rich.c - a few helpers without a home (this file will go away soon)
Note: ntfsrm isn't in the build any more (you need to ./configure --enable-rich; make extras). When rm is less intrusive, again, I'll put it back in the build.
2005-10-16 23:33:03 +00:00
flatcap
519d68eb53
remove some junk
2005-09-30 16:58:20 +00:00
flatcap
b312a44483
change utils_dump_mem to take a void ptr
...
update the comments a bit
2005-08-16 13:25:15 +00:00
cha0smaster
b39a2a401f
- Move ntfs2utc and utc2ntfs from utils.[ch] to timeconv.h.
...
- Add [acm]time fields to struct ntfs_inode and set them during ntfs_inode_open. Update ntfsmount to use them.
- Bump version, update autoscripts.
2005-07-20 19:06:28 +00:00
cha0smaster
e323ed6a03
Move utils_pathname_to_inode from to library (dir.c), adapt it for library, rename it to ntfs_pathname_to_inode, update all users.
2005-06-12 18:12:55 +00:00
!uv
89fee71920
Wrap macro definition with matching #ifndef.
...
(Logical change 1.506)
2004-08-20 12:04:47 +00:00
!uv
97df123793
Reorder struct members in order to align to 32 and 64 bit bounderies.
...
(Logical change 1.505)
2004-08-20 12:01:17 +00:00
flatcap.org!ntfs
2adcb49e33
jazzed up dump mem
...
(Logical change 1.439)
2004-06-24 13:08:28 +00:00
cantab.net!aia21
71c1fe3af8
Update
...
(Logical change 1.374)
2004-04-16 20:54:34 +00:00
cantab.net!aia21
d6c51bf64c
Auto merged
...
2004/01/07 15:48:41+00:00 cantab.net!aia21
Auto merged
2003/11/02 23:22:27+00:00 flatcap.org!ntfs
declare [EQV]printf
2003/10/29 18:13:30+00:00 flatcap.org!ntfs
added dump_mem
(Logical change 1.299)
2004-03-06 17:42:28 +00:00
cantab.net!aia21
441947337e
Include config.h before any other non-ntfs headers.
...
(Logical change 1.279)
2004-02-20 14:44:16 +00:00
cantab.net!aia21
3244f17522
Enable lots of compiler warnings and fix warning from libntfs.
...
(Logical change 1.257)
2004-01-07 15:03:17 +00:00
cantab.net!aia21
e691e34ae7
Missed a bit from Christophe's patch.
...
(Logical change 1.255)
2004-01-07 10:48:24 +00:00
cantab.net!aia21
6651abe322
More updates from Christophe Grenier for DJGPP and FreeBSD.
...
(Logical change 1.253)
2004-01-07 10:22:51 +00:00
cantab.net!aia21
3b2953e8c4
Ooops. It's an ENUM not a DEFINE. Hopte this always works...
...
(Logical change 1.212)
2003-10-23 12:41:17 +00:00
cantab.net!aia21
9f07090763
Fixes from Lode to make it work on Cygwin.
...
(Logical change 1.211)
2003-10-23 12:28:44 +00:00