mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
SVN maintenance: Set eol style to native and add keywords
svn path=/trunk/; revision=15022
This commit is contained in:
parent
cb0daf73fd
commit
fe7b55c2c1
11 changed files with 81 additions and 81 deletions
|
@ -1,68 +1,68 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/rtl/access.c
|
||||
* PURPOSE: Access rights handling functions
|
||||
*
|
||||
* PROGRAMMERS: Eric Kohl
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN STDCALL
|
||||
RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||
ACCESS_MASK DesiredAccess)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
return ((GrantedAccess & DesiredAccess) == DesiredAccess);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN STDCALL
|
||||
RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||
ACCESS_MASK DesiredAccess)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
return ((GrantedAccess & DesiredAccess) != 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID STDCALL
|
||||
RtlMapGenericMask(PACCESS_MASK AccessMask,
|
||||
PGENERIC_MAPPING GenericMapping)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
if (*AccessMask & GENERIC_READ)
|
||||
*AccessMask |= GenericMapping->GenericRead;
|
||||
|
||||
if (*AccessMask & GENERIC_WRITE)
|
||||
*AccessMask |= GenericMapping->GenericWrite;
|
||||
|
||||
if (*AccessMask & GENERIC_EXECUTE)
|
||||
*AccessMask |= GenericMapping->GenericExecute;
|
||||
|
||||
if (*AccessMask & GENERIC_ALL)
|
||||
*AccessMask |= GenericMapping->GenericAll;
|
||||
|
||||
*AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: lib/rtl/access.c
|
||||
* PURPOSE: Access rights handling functions
|
||||
*
|
||||
* PROGRAMMERS: Eric Kohl
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ***************************************************************/
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN STDCALL
|
||||
RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||
ACCESS_MASK DesiredAccess)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
return ((GrantedAccess & DesiredAccess) == DesiredAccess);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN STDCALL
|
||||
RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||
ACCESS_MASK DesiredAccess)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
return ((GrantedAccess & DesiredAccess) != 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID STDCALL
|
||||
RtlMapGenericMask(PACCESS_MASK AccessMask,
|
||||
PGENERIC_MAPPING GenericMapping)
|
||||
{
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
if (*AccessMask & GENERIC_READ)
|
||||
*AccessMask |= GenericMapping->GenericRead;
|
||||
|
||||
if (*AccessMask & GENERIC_WRITE)
|
||||
*AccessMask |= GenericMapping->GenericWrite;
|
||||
|
||||
if (*AccessMask & GENERIC_EXECUTE)
|
||||
*AccessMask |= GenericMapping->GenericExecute;
|
||||
|
||||
if (*AccessMask & GENERIC_ALL)
|
||||
*AccessMask |= GenericMapping->GenericAll;
|
||||
|
||||
*AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: alldiv.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: allmul.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: allrem.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: allshl.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: allshr.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: aulldiv.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: aullrem.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: aullshr.s 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RTL restrictions:
|
||||
|
||||
ExAllocatePool (and friends) must be used exclusively. RtlAllocateHeap (and friends) must NOT be used! ExAllocatePool (and friends) translate to RtlAllocateHeap (and friends) in ntdll\rtl\libsupp.c.
|
||||
|
||||
RTL restrictions:
|
||||
|
||||
ExAllocatePool (and friends) must be used exclusively. RtlAllocateHeap (and friends) must NOT be used! ExAllocatePool (and friends) translate to RtlAllocateHeap (and friends) in ntdll\rtl\libsupp.c.
|
||||
|
||||
RtlEnterCriticalSection (and friends) must be used exclusively. ExAcquireFastMutex (and friends) must NOT be used! RtlEnterCriticalSection (and friends) translate to ExAcquireFastMutex (and friends) in ntoskrnl\rtl\libsupp.c. This means that RtlEnterCriticalSection (and friends) can NOT be used recursively in RTL. The reason for choosing RtlEnterCriticalSection (and friends) over ExAcquireFastMutex (and friends) is that the FAST_MUTEX struct is smaller than the RTL_CRITICAL_SECTION struct.
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: registry.c 12852 2005-01-06 13:58:04Z mf $
|
||||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
|
Loading…
Reference in a new issue