AccessRights.hpp
#if !defined(__ACCESSRIGHTS_HPP)
#define __ACCESSRIGHTS_HPP
/*
CoreLinux++
Copyright (C) 1999,2000 CoreLinux Consortium
The CoreLinux++ Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The CoreLinux++ Library Library is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#if !defined IN_COMMON_HPP
#error AccessRights.hpp is included by Common.hpp only.
#endif
namespace corelinux
{
enum AccessRights
{
OWNER_READ = 0400,
OWNER_MODIFY = 0200,
OWNER_ALL = 0600,
GROUP_READ = 040,
GROUP_MODIFY = 020,
GROUP_ALL = 060,
PUBLIC_READ = 04,
PUBLIC_MODIFY= 02,
PUBLIC_ALL = 06
};
enum CreateDisposition
{
CREATE_OR_REUSE = 0,
FAIL_IF_EXISTS = -1,
FAIL_IF_NOTEXISTS = -2
};
enum AddressingConstraint
{
READ_WRITE = 0,
READ_ONLY,
EXECUTE
};
}
#endif
/*
Common rcs information do not modify
$Author: prudhomm $
$Revision: 1.1 $
$Date: 2000/04/23 20:43:13 $
$Locker: $
*/
corelinux::AccessRights
AccessRights
Access enumeration for various system level classes.
Definition: AccessRights.hpp:36
corelinux::OWNER_READ
Owner has read access.
Definition: AccessRights.hpp:39
corelinux::GROUP_MODIFY
Group has write access.
Definition: AccessRights.hpp:47
corelinux::CreateDisposition
CreateDisposition
Creation dispositions for various system utilities.
Definition: AccessRights.hpp:63
corelinux::PUBLIC_READ
Public has read access.
Definition: AccessRights.hpp:51
corelinux::FAIL_IF_EXISTS
Will throw exception if target exists.
Definition: AccessRights.hpp:71
corelinux::OWNER_ALL
Owner has read/write access.
Definition: AccessRights.hpp:43
corelinux::READ_ONLY
read only access
Definition: AccessRights.hpp:90
corelinux::AddressingConstraint
AddressingConstraint
Addressings constraints.
Definition: AccessRights.hpp:82
corelinux::READ_WRITE
read write access (no constraints)
Definition: AccessRights.hpp:86
corelinux::PUBLIC_ALL
Public has read/write access.
Definition: AccessRights.hpp:55
corelinux::CREATE_OR_REUSE
Will create or open.
Definition: AccessRights.hpp:67
corelinux::EXECUTE
Execute access.
Definition: AccessRights.hpp:94
corelinux::GROUP_ALL
Group has read/write access.
Definition: AccessRights.hpp:49
corelinux::PUBLIC_MODIFY
Public has write access.
Definition: AccessRights.hpp:53
corelinux::GROUP_READ
Group has read access.
Definition: AccessRights.hpp:45
corelinux::FAIL_IF_NOTEXISTS
Will throw exception if target does NOT exist.
Definition: AccessRights.hpp:75
corelinux::OWNER_MODIFY
Owner has write access.
Definition: AccessRights.hpp:41

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium