Commit Graph

321 Commits

Author SHA1 Message Date
Beman Dawes
47c7ac4699 Fix #4799. The same bug occurred in three places. One of these may have been the source of reported problems with remove_all. Several other problems in documentation and tests were also found and will be addressed separately.
[SVN r65765]
2010-10-05 16:55:19 +00:00
Beman Dawes
b9b832760a Fix #4487 V2 create_hard_link problem with old Windows SDK
[SVN r65371]
2010-09-10 12:51:00 +00:00
Beman Dawes
6bf14c6a44 Add path_traits::is_pathable and use it to prevent several path member templates from being considered for overload resolution of non-pathable types. Fixes problem reported by Adam Badura.
[SVN r64986]
2010-08-24 18:35:41 +00:00
Beman Dawes
147e18b93c Remove path array optimization; problematic when array contains a string shorter than the array length. Reported by Adam Badura.
[SVN r64928]
2010-08-19 17:03:38 +00:00
Beman Dawes
e8a6a7bd82 include <cwchar> for mbstate_t
[SVN r64884]
2010-08-18 11:47:14 +00:00
Beman Dawes
91b24db22c Fixes for libraries not supporting wide character strings: correct existing V2 workarounds (thanks to John Maddock), V3 library components null compile if no support, #error earlier and in more files if using V3 with unsupported library.
[SVN r64623]
2010-08-05 21:27:55 +00:00
Daniel James
480dab0416 Inline some deprecated filesystem methods, so that they can be included in more than one compile unit.
[SVN r64246]
2010-07-22 07:49:05 +00:00
Beman Dawes
419cf13dd2 Revert to absolute() being an operations free function, and provide semantics for the Windows case where the base argument was not absolute.
[SVN r63524]
2010-07-02 17:04:20 +00:00
Beman Dawes
c5a8d1eef9 Deprecate initial_path as too error prone without C++ runtime support.
[SVN r63500]
2010-07-01 18:55:41 +00:00
Beman Dawes
c469a8c430 Reverse logic so that standard library file I/O is assumed *not* to have wide character path extension, thus defaulting to the safer choice.
[SVN r63452]
2010-06-30 15:20:21 +00:00
Beman Dawes
a20f1ed674 Fix old Dinkumware without file stream wchar_t overloads
[SVN r63406]
2010-06-28 14:40:40 +00:00
Beman Dawes
440841e5c7 Use "funny" codecvt facet instead of UTF-8 to detect failures on systems that default to UTF-8. Fix generic_string bug with codecvt argument.
[SVN r63400]
2010-06-27 20:41:08 +00:00
Beman Dawes
4564459e77 Document path::codecvt_type arguments
[SVN r63285]
2010-06-24 15:02:30 +00:00
Beman Dawes
42c23163cd Provide const codecvt& arguments for all applicable class path functions
[SVN r63283]
2010-06-24 11:10:37 +00:00
Beman Dawes
8ab8021270 Workaround for IBM, old GCC, and other non-conforming compilers.
[SVN r63226]
2010-06-22 10:56:51 +00:00
Beman Dawes
152886d0f8 Fix #4248 W.R.T. BOOST_FILESYSTEM_NO_DEPRECATED and BOOST_SYSTEM_NO_DEPRECATED
[SVN r63185]
2010-06-21 13:13:20 +00:00
Beman Dawes
998233d767 Use boost::io::quoted I/O manipulator as a better solution to embedded spaces. See #3863
[SVN r63136]
2010-06-20 13:41:26 +00:00
Beman Dawes
77b673eba7 Add missing #include <locale>
[SVN r63025]
2010-06-16 20:13:00 +00:00
Beman Dawes
6e69563ab7 Reorder code to workaround clang problem (Chris Jefferson)
[SVN r62976]
2010-06-15 15:40:04 +00:00
Beman Dawes
9234a778cd Fix #3863, stream I/O with space in named failed to roundtrip
[SVN r62919]
2010-06-13 17:33:39 +00:00
Beman Dawes
ad2cbcc987 Fix symbol visibility problem causing Linux/GCC test failures
[SVN r62890]
2010-06-13 01:38:46 +00:00
Beman Dawes
9d1cd71b5a Fix #3241
[SVN r62876]
2010-06-12 20:44:23 +00:00
Beman Dawes
a24b21a169 All tests passing on Windows, gcc + msvc. Changed convenience_test to eliminate chance of test directory name race condition when multiple tests run together.
[SVN r62767]
2010-06-10 21:02:31 +00:00
Beman Dawes
7922c919d8 V2 tests added. All tests passing on at least one compiler, none passing on all compilers
[SVN r62759]
2010-06-10 20:02:39 +00:00
Beman Dawes
ea03205dd3 All V3 tests passing
[SVN r62704]
2010-06-10 01:03:56 +00:00
Beman Dawes
98d00b2e88 Add Build and Test support. Build is working, a few tests are working.
[SVN r62662]
2010-06-09 15:07:03 +00:00
Beman Dawes
3b51e980ae Initial source code changes to achieve integration
[SVN r62659]
2010-06-09 14:05:57 +00:00
Beman Dawes
fa515c07f5 Move files into new v2 + v3 directory structure
[SVN r62653]
2010-06-09 13:00:15 +00:00
Beman Dawes
91715967a5 Upgrade system and filesystem to conform system_category and generic_category interface to N3090, the current C++0x working paper, section 19.5, System error support.
Refactor API macros into a new header, boost/system/api_config.hpp.

Prohibit user definition of API macros. Rationale: ensure all translation units use same definitions, cut number of environments that need to be tested.

[SVN r62313]
2010-05-30 15:38:32 +00:00
Beman Dawes
7aed6d4ed7 Use new symbol visibility macros
[SVN r62203]
2010-05-25 16:15:01 +00:00
Beman Dawes
f2b77331e1 Fix #3884
[SVN r59622]
2010-02-10 17:21:41 +00:00
Beman Dawes
f0a2284419 Fix #3385, add test cases
[SVN r56139]
2009-09-10 17:25:20 +00:00
Beman Dawes
de50f3c5b2 Filesystem: apply supplied patch to fix #3176
[SVN r54066]
2009-06-18 21:01:54 +00:00
Beman Dawes
594e0c5d8e Filesystem: add basic_path::clear() to fix #3186, clear() missing
[SVN r54055]
2009-06-18 15:48:19 +00:00
Beman Dawes
0aaa65e768 Fix Filesystem #2925, copy_file atomiticity
[SVN r53073]
2009-05-17 15:55:46 +00:00
Beman Dawes
7bc9e5db73 Filesystem: fix #3008, improving namespace discipline to avoid naming conflicts with the C++0x std library.
[SVN r52922]
2009-05-11 19:51:44 +00:00
Beman Dawes
32724c2724 Fix #2948 - Path typedef moved to namespace boost::filesystem
[SVN r52410]
2009-04-16 01:51:05 +00:00
Beman Dawes
dff8252505 Filesystem: path operator==, !=; use string comparison rather than !(lhs < rhs) && !(rhs < lhs) because the result is the same yet the direct string compare is much more efficient than operator<, which uses lexicographical_compare.
[SVN r50674]
2009-01-19 18:38:28 +00:00
Beman Dawes
86e1ddeacd Filesystem: add specializations to eliminate warnings, thus fixing #2543
[SVN r50556]
2009-01-12 17:02:20 +00:00
Beman Dawes
8add21928f Filesystem: fix #2224 (Hajo Kirchhoff)
[SVN r49481]
2008-10-29 11:52:07 +00:00
Beman Dawes
33487a8aeb Filesystem: add macros and deprecated names sections to docs
[SVN r49316]
2008-10-13 14:30:47 +00:00
Beman Dawes
abf6fecd65 Apply filesystem patches from ticket #2352
[SVN r49081]
2008-10-01 14:21:19 +00:00
Beman Dawes
bfe1453fe4 Fix boost/filesystem/convenience.hpp bug; fully remove deprecated features
[SVN r48462]
2008-08-29 20:06:23 +00:00
Beman Dawes
01108afd29 Revert 'remove' changes inadvertently committed by 47006. Fully apply ticket #1972 'remove' fixes.
[SVN r48377]
2008-08-25 15:35:34 +00:00
Beman Dawes
b4c278776a Provide deprecated functions has_branch_path and has_leaf, inadvertently omitted from 1.36.0
[SVN r48374]
2008-08-25 12:25:34 +00:00
Beman Dawes
5c6536a9f3 Restore deprecated basic_directory_entry names inadvertently removed
[SVN r48192]
2008-08-18 13:23:10 +00:00
Beman Dawes
60a1930821 Clear gcc shadow problems (Grant Erickson)
[SVN r47923]
2008-08-01 00:00:58 +00:00
Beman Dawes
fb65347b54 After extensive discussion on the list with Dave Abrahams, Vladimir Prus, and others, rename basic_path::leaf() -> filename, branch_path -> parent_path, replace_leaf -> replace_filename. Add basic_path member functions stem, extension, replace_extension.
[SVN r47181]
2008-07-07 12:20:04 +00:00
Beman Dawes
001c15dd32 Rename is_regular() to is_regular_file
[SVN r47131]
2008-07-06 12:10:42 +00:00
Beman Dawes
3ee73a0df7 Partial resolution of ticket #1972; remove() issues for POSIX are cleared. Added regression test cases covering self-reference and cyclic symlinks.
[SVN r47006]
2008-07-02 21:05:54 +00:00
Beman Dawes
ec6cad0b79 Clear gcc shadow warnings (Gordon Magnusson), fixing ticket #1770
[SVN r46680]
2008-06-25 14:43:31 +00:00
Beman Dawes
571fd79144 Add tests for, and fix, current_path overloading.
[SVN r41052]
2007-11-13 02:54:32 +00:00
Beman Dawes
61a5c62287 Clarify comment
[SVN r40932]
2007-11-08 14:25:09 +00:00
Beman Dawes
1f6c3faa8b Appy Godegear patches from Nicola Musatti. Ticket #1304
[SVN r39772]
2007-10-07 21:59:46 +00:00
Beman Dawes
85ed046d40 Turns out the --dep_name errors were due to functions in the wrong namespace (Chris Kohlhoff)
[SVN r39553]
2007-09-26 17:48:27 +00:00
Beman Dawes
184a2518c5 Clear compiler warnings
[SVN r39520]
2007-09-25 13:45:52 +00:00
K. Noel Belcourt
5f16d793c5 Undo patch of operations.hpp, Sgi wants this fix
but it causes svn trunk to break.



[SVN r39379]
2007-09-19 01:46:11 +00:00
K. Noel Belcourt
805d22c9f3 Remove unnecessary overhead in execunix.c related to
the timeout implementation.  Also removed unused variables
as diagnosed by the Sgi (mipspro) compiler.

Fixed const-correctness error in operations.hpp that
Sgi complained about.

There's no strerror_r function on Irix 6.5 so I replaced
it with a strerror call.

With these changes, I can now build process jam log and
start running Sgi tests.



[SVN r39378]
2007-09-18 22:46:26 +00:00
Beman Dawes
49f6e3cfd7 Merge system and filesystem branches, bringing them in sync with N2415. Several filesystem bugs fixed, and current_path setter added.
[SVN r39173]
2007-09-09 14:59:10 +00:00
Beman Dawes
fec507ad11 Fix #995 by adding inline
[SVN r38567]
2007-08-10 12:53:52 +00:00
Boris Gubenko
d8ce83872d disable problematic specialization for aCC and cxx on Alpha platforms
[SVN r37557]
2007-05-02 02:38:18 +00:00
Beman Dawes
2045be22d6 Bring into compliance with N2066, TR2 Diagnostics Enhancements. Tests passing on Win32, Linux, on most modern compilers.
[SVN r35823]
2006-11-03 16:57:30 +00:00
Beman Dawes
22bb191bf0 Remove copyright symbol as it causes VC++ warnings on Windows with codepage set to non-English, particularly Asian, languages
[SVN r33295]
2006-03-09 22:15:07 +00:00
Beman Dawes
4dec2fa915 Use Dinkumware 405's wchar_t open if present
[SVN r33277]
2006-03-09 03:28:32 +00:00
Beman Dawes
a59d0c4653 Fix for old Dinkumware that asserts on empty path arg.
[SVN r33214]
2006-03-03 16:26:57 +00:00
Beman Dawes
7bf63497cf workaround early Dinkumware lack of basic_string.clear() in a way that doesn't cause wide string failures
[SVN r33213]
2006-03-03 15:22:31 +00:00
Beman Dawes
eb18a7c377 fix wpath fstream glitches reported by Arjen Wagenaar
[SVN r33099]
2006-02-24 13:45:14 +00:00
Beman Dawes
807d6098c6 op= fix from Mark Bartosik
[SVN r33095]
2006-02-23 21:30:33 +00:00
Beman Dawes
897bbc0706 WinNT 4.0 does not support hard links. Not sure if removing the feature entirely is the best fix, but since NT 4.0 is about dead it seems harmless to fix this way. (Based on patch from Mark Bartosik)
[SVN r33084]
2006-02-23 02:28:57 +00:00
Beman Dawes
2c73273b1d Borland patches from Tobias Schwinger
[SVN r33037]
2006-02-20 21:03:46 +00:00
Beman Dawes
04ef97420f Borland fix (Alisdair Meredith)
[SVN r32741]
2006-02-08 16:02:45 +00:00
Beman Dawes
040c9372b3 Bring into sync with WG21/D1934=06-0004
[SVN r32532]
2006-02-03 20:59:04 +00:00
Beman Dawes
aac5f49666 is_file, file_flag -> is_regular, regular_flag per TR2 proposal
[SVN r32201]
2006-01-02 02:30:53 +00:00
Beman Dawes
5793738346 Add predicate function overloads on status_flags (Suggested by Martin Adrian)
[SVN r32195]
2006-01-01 14:14:13 +00:00
Beman Dawes
f203c808b3 clear unreference parm warning
[SVN r32125]
2005-12-21 03:45:02 +00:00
Beman Dawes
6ee6f9c576 fix readdir_r buffer size on some POSIX systems
[SVN r32116]
2005-12-20 18:41:30 +00:00
Beman Dawes
b9645b6513 Better workaround for VC++ legacy problem so other compilers don't warn
[SVN r32112]
2005-12-20 03:06:39 +00:00
Beman Dawes
f0670491eb Add inline to avoid ODR violation (Marc Viala)
[SVN r32111]
2005-12-20 02:34:52 +00:00
Beman Dawes
c2e0823f19 move dirent d_type config tests from config.hpp to operations.cpp
[SVN r32087]
2005-12-17 14:40:36 +00:00
Beman Dawes
48d4335bfc merge from i18n branch - at last!
[SVN r32079]
2005-12-16 16:40:35 +00:00
Beman Dawes
56eeb74ae3 from i18n
[SVN r32078]
2005-12-16 15:57:49 +00:00
Beman Dawes
bc72a98614 Fix umlat in Dietmar's last name compiler warning
[SVN r31992]
2005-12-12 02:41:57 +00:00
John Maddock
7f04824661 Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
2005-08-25 16:27:28 +00:00
Beman Dawes
e03634acef Add #error for borland dll link attempt
[SVN r30156]
2005-07-18 11:54:34 +00:00
Beman Dawes
aa8837925c Add two missing BOOST_FILESYSTEM_DECL
[SVN r30140]
2005-07-16 21:59:46 +00:00
Beman Dawes
86a674a57a add possible_large_file_size_support and associated test
[SVN r25010]
2004-09-10 13:53:02 +00:00
Beman Dawes
d4709e44f7 path::iterator should be bidirectional_traversal_tag (Martin Wille)
[SVN r24764]
2004-08-26 15:55:47 +00:00
Beman Dawes
3e74ac39e8 Add equivalent()
[SVN r22531]
2004-03-20 18:24:48 +00:00
Beman Dawes
44c08bc4eb add relational operators
[SVN r22498]
2004-03-14 17:53:45 +00:00
Beman Dawes
2974cc5192 create_directory() and create_directories() now return bool
[SVN r22482]
2004-03-11 16:17:43 +00:00
Beman Dawes
4c8532e070 add file_size()
[SVN r22154]
2004-02-03 15:52:19 +00:00
Beman Dawes
ddbb5d878c add defaulted error_code to 2nd ctor
[SVN r22153]
2004-02-03 15:51:15 +00:00
Beman Dawes
bdeca0a7c9 make directory_iterator all inline so Filesystem lib can be built as DLL
[SVN r21311]
2003-12-18 01:57:49 +00:00
Beman Dawes
3466847e72 fix autolink problem
[SVN r21295]
2003-12-17 01:37:58 +00:00
Beman Dawes
852945ab05 _is_empty missing declspec
[SVN r21253]
2003-12-14 20:39:55 +00:00
Beman Dawes
fe44b73ba4 Add symbolic_link_exists
[SVN r21214]
2003-12-10 19:45:59 +00:00
Beman Dawes
6e5203dbd9 Separate canonic and normal form, add path::normalize()
[SVN r21190]
2003-12-09 18:10:50 +00:00
Beman Dawes
a0e91a1da4 Clean up copyright, license, so inspect works
[SVN r21015]
2003-11-30 13:48:05 +00:00
Beman Dawes
dfd9a2dbee add abi, dll, auto_link
[SVN r20947]
2003-11-25 18:29:13 +00:00
Dave Abrahams
0733ac5cf3 Removed access category tags from iterator library, made corresponding
changes elsewhere.

boost/iterator and libs/iterator/test were updated from
branch "simplify"


[SVN r20905]
2003-11-22 01:18:37 +00:00
Beman Dawes
2f7da5b37a Add BOOST_FILESYSTEM_DECL
[SVN r20901]
2003-11-21 14:53:55 +00:00
Beman Dawes
8c8ea6e75b Update copyright and license info
[SVN r20243]
2003-10-02 15:17:36 +00:00
Beman Dawes
77334ba34d Change to new license, with permission from Dietmar and Jan
[SVN r20042]
2003-09-13 19:33:50 +00:00
Beman Dawes
3ca5d3daab Change license message to reference Boost Software License
[SVN r20038]
2003-09-12 17:09:29 +00:00
Dave Abrahams
68f89b0882 Remove illegal qualification
[SVN r20000]
2003-09-10 16:05:45 +00:00
Beman Dawes
1fa3fd646d add new name_check mechanism
[SVN r19808]
2003-08-27 14:50:05 +00:00
Beman Dawes
6b9e01ab27 Add 2 arg last_write_time()
[SVN r19480]
2003-08-06 19:28:53 +00:00
Beman Dawes
3c0d481444 change to iterator_facade
[SVN r19090]
2003-07-12 17:48:25 +00:00
Beman Dawes
b466cdb12d BOOST_NO_STDC_NAMESPACE workaround
[SVN r18513]
2003-05-23 14:50:23 +00:00
Beman Dawes
f6a9b8dbb7 Add last_write_time function
[SVN r18383]
2003-05-11 13:56:56 +00:00
Aleksey Gurtovoy
2b66239fde restore from the CVS crash
[SVN r18358]
2003-05-08 10:10:54 +00:00
Beman Dawes
534befe242 Workaround VC++ 7.1 bug VSWhidbey 38416
[SVN r18333]
2003-04-29 18:13:20 +00:00
Beman Dawes
439cc2f8ed share imp to make copying less memory intensive, recover from exceptions in some filesystem_error functions
[SVN r18071]
2003-03-24 02:31:21 +00:00
Beman Dawes
3f64ac195b Platform detection fixes
[SVN r16749]
2003-01-04 15:07:09 +00:00
Beman Dawes
63f8c34b7f filesystem_error redesign
[SVN r16723]
2002-12-30 19:16:31 +00:00
Beman Dawes
b76e9b9849 workaround VC++ 6 open problem
[SVN r16722]
2002-12-30 19:14:06 +00:00
Beman Dawes
ff08d67586 add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
Beman Dawes
6ea7dee986 initial commit
[SVN r16649]
2002-12-18 17:09:08 +00:00
Beman Dawes
da5281c632 remove until link issues resoved - see fs_review branch for unofficial version
[SVN r16592]
2002-12-11 19:40:32 +00:00
Beman Dawes
e334acda10 fs_review branch merged
[SVN r16591]
2002-12-11 19:35:54 +00:00
Beman Dawes
543669496a initial commit - review comments not yet applied
[SVN r15831]
2002-10-09 19:49:35 +00:00