mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: lib/rtl/access.c
|
* FILE: lib/rtl/access.c
|
||||||
* PURPOSE: Access rights handling functions
|
* PURPOSE: Access rights handling functions
|
||||||
*
|
*
|
||||||
* PROGRAMMERS: Eric Kohl
|
* PROGRAMMERS: Eric Kohl
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
#include <ntdll/rtl.h>
|
#include <ntdll/rtl.h>
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOLEAN STDCALL
|
BOOLEAN STDCALL
|
||||||
RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess,
|
RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||||
ACCESS_MASK DesiredAccess)
|
ACCESS_MASK DesiredAccess)
|
||||||
{
|
{
|
||||||
PAGED_CODE_RTL();
|
PAGED_CODE_RTL();
|
||||||
return ((GrantedAccess & DesiredAccess) == DesiredAccess);
|
return ((GrantedAccess & DesiredAccess) == DesiredAccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOLEAN STDCALL
|
BOOLEAN STDCALL
|
||||||
RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess,
|
RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess,
|
||||||
ACCESS_MASK DesiredAccess)
|
ACCESS_MASK DesiredAccess)
|
||||||
{
|
{
|
||||||
PAGED_CODE_RTL();
|
PAGED_CODE_RTL();
|
||||||
return ((GrantedAccess & DesiredAccess) != 0);
|
return ((GrantedAccess & DesiredAccess) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
RtlMapGenericMask(PACCESS_MASK AccessMask,
|
RtlMapGenericMask(PACCESS_MASK AccessMask,
|
||||||
PGENERIC_MAPPING GenericMapping)
|
PGENERIC_MAPPING GenericMapping)
|
||||||
{
|
{
|
||||||
PAGED_CODE_RTL();
|
PAGED_CODE_RTL();
|
||||||
|
|
||||||
if (*AccessMask & GENERIC_READ)
|
if (*AccessMask & GENERIC_READ)
|
||||||
*AccessMask |= GenericMapping->GenericRead;
|
*AccessMask |= GenericMapping->GenericRead;
|
||||||
|
|
||||||
if (*AccessMask & GENERIC_WRITE)
|
if (*AccessMask & GENERIC_WRITE)
|
||||||
*AccessMask |= GenericMapping->GenericWrite;
|
*AccessMask |= GenericMapping->GenericWrite;
|
||||||
|
|
||||||
if (*AccessMask & GENERIC_EXECUTE)
|
if (*AccessMask & GENERIC_EXECUTE)
|
||||||
*AccessMask |= GenericMapping->GenericExecute;
|
*AccessMask |= GenericMapping->GenericExecute;
|
||||||
|
|
||||||
if (*AccessMask & GENERIC_ALL)
|
if (*AccessMask & GENERIC_ALL)
|
||||||
*AccessMask |= GenericMapping->GenericAll;
|
*AccessMask |= GenericMapping->GenericAll;
|
||||||
|
|
||||||
*AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
*AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
RTL restrictions:
|
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.
|
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.
|
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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
|
Loading…
Reference in a new issue