Commit Graph

47 Commits

Author SHA1 Message Date
Peter Dimov
96320384cc Revert unnecessary changes to error_code.cpp 2018-09-17 17:08:25 +03:00
Peter Dimov
2fa0a00583 Make Boost.System header-only 2018-09-16 03:04:19 +03:00
Beman
459160d184 Move BOOST_SYSTEM_SOURCE definition to src/error_code.cpp so that automatic library variant selection is enabled. 2014-01-06 16:52:15 -05:00
Beman
42ee65f745 Move src/local_free_on_destruction.hpp to include/boost/detail. Was not being found by some VC++ versions, plus header only builds are supposed to be possible without non-header directories even being present. 2014-01-06 15:37:51 -05:00
Tim Blechmann
2c620a4f3a fix header-only use of error codes
BOOST_ERROR_CODE_HEADER_ONLY was not working when the headers are separated
from the sources (e.g. when installing the headers to fhs-style /usr/include
or the like). to avoid this, we move the implementation to an .ipp file

Signed-off-by: Tim Blechmann <tim@klingt.org>
2014-01-04 12:36:44 +01:00
Christopher Kohlhoff
ec47972526 Fix WinRT detection.
[SVN r86152]
2013-10-03 23:59:54 +00:00
Christopher Kohlhoff
c64f27c9be Add Windows Runtime support to Boost.System.
[SVN r85699]
2013-09-16 13:29:47 +00:00
Vicente J. Botet Escriba
65e14ff167 System/FileSystem/Asio/Thread: ref #7278 Added noexcept to Boost.System to conform with C++11
[SVN r81808]
2012-12-09 14:47:39 +00:00
Beman Dawes
46d95f807c Fix comment typo (Rob Stewart)
[SVN r74599]
2011-09-28 15:57:44 +00:00
Beman Dawes
5c3a2b0481 Fix #5778 for INTEGRITY operating system
[SVN r73775]
2011-08-15 14:34:04 +00:00
K. Noel Belcourt
2e93f04826 Fix PGI non-compliance (portability issue).
Patch supplied by William Bohnhoff at Sandia.



[SVN r66940]
2010-12-01 05:29:24 +00:00
Beman Dawes
f1b9778af4 Fix #3474, memory leak on exception. First reported by Chis Kohlhoff.
[SVN r63184]
2010-06-21 12:25:40 +00:00
Beman Dawes
baae3a392a 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
2565e5307b Fix #3994, error values on some Broadcom chips
[SVN r62222]
2010-05-26 00:38:07 +00:00
Beman Dawes
d493021c7d System: fix too_many_symbolic_link_levels typo
[SVN r57615]
2009-11-12 20:42:09 +00:00
Troy D. Straszheim
f096d17176 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
078a1f23c4 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Beman Dawes
3f26239374 System: fix #3113
[SVN r53460]
2009-05-30 15:13:39 +00:00
Beman Dawes
f1cdde273a System: move throws function to namespace boost to allow peaceful coexistence with throws object.
[SVN r50727]
2009-01-22 14:47:50 +00:00
Beman Dawes
5bc362e4f3 System: provide optional throws function rather than throws object
[SVN r50705]
2009-01-21 18:01:14 +00:00
Michael A. Jackson
3e8a2633f4 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Beman Dawes
888786e838 System: apply patch from ticket #2175
[SVN r49293]
2008-10-12 14:07:22 +00:00
Beman Dawes
4dc986ca03 System: Only supply case EALREADY if EALREADY != EBUSY, to close a portion of ticket #2288
[SVN r49220]
2008-10-09 19:01:57 +00:00
Beman Dawes
b4cc289238 System: fix typo that is apparent cause of Mac OS X compile failures
[SVN r49157]
2008-10-07 01:57:24 +00:00
Beman Dawes
ee16863a40 system: add #ifndef as requested by #2098
[SVN r49094]
2008-10-01 19:08:08 +00:00
Beman Dawes
463cefcf94 system: reduce chance of message() throwing in response to ticket #2098
[SVN r49093]
2008-10-01 18:57:48 +00:00
Beman Dawes
d6446d1cfb Add error_code throws
[SVN r48577]
2008-09-04 17:36:56 +00:00
Beman Dawes
2953464e99 Apply LWG issue 805, using a namespace to emulate scoped enums.
[SVN r46645]
2008-06-24 14:59:10 +00:00
Beman Dawes
69d2a2234c Fix Ticket #1768 by including <boost/config/warning_disable.hpp>
[SVN r45894]
2008-05-29 01:34:53 +00:00
Beman Dawes
e0c466534b Detect Windows FormatMessage errors, standardize message() return on message-not-found errors
[SVN r40710]
2007-11-03 00:49:07 +00:00
Beman Dawes
e4fc987f74 WinCE workaround for lack of FormatMessageA
[SVN r40682]
2007-11-02 12:43:47 +00:00
Beman Dawes
2f9e1cee92 Rename posix, windows, Linux, and cygwin namespaces to conform with C++ std.
[SVN r40352]
2007-10-23 13:00:18 +00:00
Beman Dawes
1101e65491 Quiet compiler warnings
[SVN r39585]
2007-09-28 02:03:29 +00:00
Beman Dawes
d9449298c0 AIX treats ENOTEMPTY and EEXIST as the same value. Reported by Chris Cambly
[SVN r39577]
2007-09-27 16:56:23 +00:00
Christopher Kohlhoff
4a364b1532 Use a switch rather than an array to translate system_category error codes to their corresponding default error conditions. Add translations for the Winsock error codes.
[SVN r39502]
2007-09-24 12:53:37 +00:00
Beman Dawes
2aa7ebf758 Fix order-of-initialization problem, add initialization_test.cpp to detect regression.
[SVN r39449]
2007-09-21 16:42:27 +00:00
Beman Dawes
4ff64eea34 Add get_posix_category, get_system_category, to solve order-of-initialization issues
[SVN r39394]
2007-09-19 19:28:56 +00:00
K. Noel Belcourt
64b936097f 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
04e774f337 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
Boris Gubenko
c8afd97b47 strerror vs strerror_r: add conditionalization for Tru64 and VMS
[SVN r37966]
2007-06-11 15:14:49 +00:00
Beman Dawes
8e2ee5a2f3 add include for <cassert> (Ryo Igarashi)
[SVN r37665]
2007-05-11 11:57:38 +00:00
Christopher Kohlhoff
da0da6dc28 Make init_decoders[] a function-local static, rather than global, to avoid
problems with order of initialisation of globals across translation units.
Thanks to Oleg Kosenkov for reporting this issue and suggesting a fix.


[SVN r37380]
2007-04-06 09:12:28 +00:00
Douglas Gregor
111c30d99e Add missing include of <cstdlib>
[SVN r37286]
2007-03-26 13:58:53 +00:00
Beman Dawes
2fbf2718c4 In errno_md, for Sun and HP, always use strerror because it is always available and always thread safe on those systems. Linux, provide macro since there is no way to tell if available at runtime.
[SVN r36447]
2006-12-18 12:44:08 +00:00
Beman Dawes
5688d4a3a2 Fix errno_md POSIX strerror_r loop bugs (Alexander Nasonov)
[SVN r36446]
2006-12-18 12:12:26 +00:00
Beman Dawes
15b0862fc1 Remove unused throw_on_error (Cris Kohlhoff)
[SVN r35836]
2006-11-04 13:51:31 +00:00
Beman Dawes
f3c8c74656 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