diff options
Diffstat (limited to 'boost/interprocess/permissions.hpp')
-rw-r--r-- | boost/interprocess/permissions.hpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/boost/interprocess/permissions.hpp b/boost/interprocess/permissions.hpp index 745f8a8e0f..49ddbd09a7 100644 --- a/boost/interprocess/permissions.hpp +++ b/boost/interprocess/permissions.hpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // @@ -11,9 +11,9 @@ #ifndef BOOST_INTERPROCESS_PERMISSIONS_HPP #define BOOST_INTERPROCESS_PERMISSIONS_HPP -/// @cond +#if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) -#if defined (_MSC_VER) && (_MSC_VER >= 1200) +#if defined(_MSC_VER) # pragma once #endif @@ -27,7 +27,7 @@ #endif -/// @endcond +#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED //!\file //!Describes permissions class @@ -35,7 +35,7 @@ namespace boost { namespace interprocess { -/// @cond +#if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) #if defined(BOOST_INTERPROCESS_WINDOWS) @@ -54,14 +54,14 @@ winapi::interprocess_all_access_security unrestricted_permissions_holder<Dummy>: #endif //defined BOOST_INTERPROCESS_WINDOWS -/// @endcond +#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED //!The permissions class represents permissions to be set to shared memory or //!files, that can be constructed form usual permission representations: //!a SECURITY_ATTRIBUTES pointer in windows or ORed rwx chmod integer in UNIX. class permissions { - /// @cond + #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) #if defined(BOOST_INTERPROCESS_WINDOWS) typedef void* os_permissions_type; @@ -70,7 +70,7 @@ class permissions #endif os_permissions_type m_perm; - /// @endcond + #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED public: //!Constructs a permissions object from a user provided os-dependent @@ -90,26 +90,22 @@ class permissions //!for UNIX. void set_default() { - /// @cond #if defined (BOOST_INTERPROCESS_WINDOWS) m_perm = 0; #else m_perm = 0644; #endif - /// @endcond } //!Sets permissions to unrestricted access: //!A null DACL for windows or 0666 for UNIX. void set_unrestricted() { - /// @cond #if defined (BOOST_INTERPROCESS_WINDOWS) m_perm = &ipcdetail::unrestricted_permissions_holder<0>::unrestricted; #else m_perm = 0666; #endif - /// @endcond } //!Sets permissions from a user provided os-dependent |