From fe7b55c2c17dbb1b01072c391854b6b02ed85185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 5 May 2005 20:52:14 +0000 Subject: [PATCH] SVN maintenance: Set eol style to native and add keywords svn path=/trunk/; revision=15022 --- reactos/lib/rtl/access.c | 136 ++++++++++++++++----------------- reactos/lib/rtl/i386/alldiv.s | 2 +- reactos/lib/rtl/i386/allmul.s | 2 +- reactos/lib/rtl/i386/allrem.s | 2 +- reactos/lib/rtl/i386/allshl.s | 2 +- reactos/lib/rtl/i386/allshr.s | 2 +- reactos/lib/rtl/i386/aulldiv.s | 2 +- reactos/lib/rtl/i386/aullrem.s | 2 +- reactos/lib/rtl/i386/aullshr.s | 2 +- reactos/lib/rtl/readme.txt | 8 +- reactos/lib/rtl/registry.c | 2 +- 11 files changed, 81 insertions(+), 81 deletions(-) diff --git a/reactos/lib/rtl/access.c b/reactos/lib/rtl/access.c index f12870468bf..aecef3f376a 100644 --- a/reactos/lib/rtl/access.c +++ b/reactos/lib/rtl/access.c @@ -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 -#include - -#define NDEBUG -#include - -/* 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 +#include + +#define NDEBUG +#include + +/* 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 */ diff --git a/reactos/lib/rtl/i386/alldiv.s b/reactos/lib/rtl/i386/alldiv.s index ba235b80966..ae6fe9acbe1 100644 --- a/reactos/lib/rtl/i386/alldiv.s +++ b/reactos/lib/rtl/i386/alldiv.s @@ -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 diff --git a/reactos/lib/rtl/i386/allmul.s b/reactos/lib/rtl/i386/allmul.s index 55e4e498b24..ab310d06c6c 100644 --- a/reactos/lib/rtl/i386/allmul.s +++ b/reactos/lib/rtl/i386/allmul.s @@ -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 diff --git a/reactos/lib/rtl/i386/allrem.s b/reactos/lib/rtl/i386/allrem.s index fa2bce46f2e..c4a7dbf7856 100644 --- a/reactos/lib/rtl/i386/allrem.s +++ b/reactos/lib/rtl/i386/allrem.s @@ -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 diff --git a/reactos/lib/rtl/i386/allshl.s b/reactos/lib/rtl/i386/allshl.s index 4d3c5bf6f14..d816439786d 100644 --- a/reactos/lib/rtl/i386/allshl.s +++ b/reactos/lib/rtl/i386/allshl.s @@ -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 diff --git a/reactos/lib/rtl/i386/allshr.s b/reactos/lib/rtl/i386/allshr.s index 3423db29d8a..08a9ea8d56a 100644 --- a/reactos/lib/rtl/i386/allshr.s +++ b/reactos/lib/rtl/i386/allshr.s @@ -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 diff --git a/reactos/lib/rtl/i386/aulldiv.s b/reactos/lib/rtl/i386/aulldiv.s index f88cb25c8aa..1446b385fc5 100644 --- a/reactos/lib/rtl/i386/aulldiv.s +++ b/reactos/lib/rtl/i386/aulldiv.s @@ -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 diff --git a/reactos/lib/rtl/i386/aullrem.s b/reactos/lib/rtl/i386/aullrem.s index e9af91d2ce6..47891823f72 100644 --- a/reactos/lib/rtl/i386/aullrem.s +++ b/reactos/lib/rtl/i386/aullrem.s @@ -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 diff --git a/reactos/lib/rtl/i386/aullshr.s b/reactos/lib/rtl/i386/aullshr.s index 44df14b05b5..0d7bbcda6f1 100644 --- a/reactos/lib/rtl/i386/aullshr.s +++ b/reactos/lib/rtl/i386/aullshr.s @@ -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 diff --git a/reactos/lib/rtl/readme.txt b/reactos/lib/rtl/readme.txt index 82f96f65048..c8b7cc40a54 100644 --- a/reactos/lib/rtl/readme.txt +++ b/reactos/lib/rtl/readme.txt @@ -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. \ No newline at end of file diff --git a/reactos/lib/rtl/registry.c b/reactos/lib/rtl/registry.c index b53ed074825..5e69029e27b 100644 --- a/reactos/lib/rtl/registry.c +++ b/reactos/lib/rtl/registry.c @@ -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