/usr/include/boost/interprocess
NameSizeModeActions
allocators/-0755rm
containers/-0755rm
detail/-0755rm
indexes/-0755rm
ipc/-0755rm
mem_algo/-0755rm
smart_ptr/-0755rm
streams/-0755rm
sync/-0755rm
anonymous_shared_memory.hpp35320644editdlrm
creation_tags.hpp23990644editdlrm
errors.hpp74630644editdlrm
exceptions.hpp32150644editdlrm
file_mapping.hpp58940644editdlrm
interprocess_fwd.hpp174180644editdlrm
managed_external_buffer.hpp45950644editdlrm
managed_heap_memory.hpp54590644editdlrm
managed_mapped_file.hpp86850644editdlrm
managed_shared_memory.hpp90670644editdlrm
managed_windows_shared_memory.hpp80140644editdlrm
managed_xsi_shared_memory.hpp80220644editdlrm
mapped_region.hpp317790644editdlrm
offset_ptr.hpp309330644editdlrm
permissions.hpp34430644editdlrm
segment_manager.hpp513820644editdlrm
shared_memory_object.hpp135530644editdlrm
windows_shared_memory.hpp86660644editdlrm
xsi_key.hpp29180644editdlrm
xsi_shared_memory.hpp69780644editdlrm
Edit: /usr/include/boost/interprocess/permissions.hpp (3443B)
////////////////////////////////////////////////////////////////////////////// // // (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) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTERPROCESS_PERMISSIONS_HPP #define BOOST_INTERPROCESS_PERMISSIONS_HPP #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) #ifndef BOOST_CONFIG_HPP # include #endif # #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #include #include #include #if defined(BOOST_INTERPROCESS_WINDOWS) #include #endif #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED //!\file //!Describes permissions class namespace boost { namespace interprocess { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) #if defined(BOOST_INTERPROCESS_WINDOWS) namespace ipcdetail { template struct unrestricted_permissions_holder { static winapi::interprocess_all_access_security unrestricted; }; template winapi::interprocess_all_access_security unrestricted_permissions_holder::unrestricted; } //namespace ipcdetail { #endif //defined BOOST_INTERPROCESS_WINDOWS #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 { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) #if defined(BOOST_INTERPROCESS_WINDOWS) typedef void* os_permissions_type; #else typedef int os_permissions_type; #endif os_permissions_type m_perm; #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED public: //!Constructs a permissions object from a user provided os-dependent //!permissions. permissions(os_permissions_type type) : m_perm(type) {} //!Constructs a default permissions object: //!A null security attributes pointer for windows or 0644 //!for UNIX. permissions() { set_default(); } //!Sets permissions to default values: //!A null security attributes pointer for windows or 0644 //!for UNIX. void set_default() { #if defined (BOOST_INTERPROCESS_WINDOWS) m_perm = 0; #else m_perm = 0644; #endif } //!Sets permissions to unrestricted access: //!A null DACL for windows or 0666 for UNIX. void set_unrestricted() { #if defined (BOOST_INTERPROCESS_WINDOWS) m_perm = &ipcdetail::unrestricted_permissions_holder<0>::unrestricted; #else m_perm = 0666; #endif } //!Sets permissions from a user provided os-dependent //!permissions. void set_permissions(os_permissions_type perm) { m_perm = perm; } //!Returns stored os-dependent //!permissions os_permissions_type get_permissions() const { return m_perm; } }; } //namespace interprocess { } //namespace boost { #include #endif //BOOST_INTERPROCESS_PERMISSIONS_HPP