From 31c5b7839f9c6138fa52a9b2f189748708962621 Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Sun, 31 Oct 1999 22:41:49 +0000 Subject: [PATCH] RtlFillMemory, RtlMoveMemory, RtlZeroMemory needed __stdcall svn path=/trunk/; revision=747 --- reactos/lib/ntdll/rtl/mem.c | 46 ++++++++++++++++++++++++++------- reactos/ntoskrnl/ntoskrnl.def | 7 ++--- reactos/ntoskrnl/ntoskrnl.edf | 7 ++--- reactos/ntoskrnl/rtl/mem.c | 48 ++++++++++++++++++++++++++++------- 4 files changed, 84 insertions(+), 24 deletions(-) diff --git a/reactos/lib/ntdll/rtl/mem.c b/reactos/lib/ntdll/rtl/mem.c index fd26429373d..a0db8518375 100644 --- a/reactos/lib/ntdll/rtl/mem.c +++ b/reactos/lib/ntdll/rtl/mem.c @@ -1,4 +1,5 @@ -/* +/* $Id: mem.c,v 1.5 1999/10/31 22:39:41 ea Exp $ + * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel * FILE: kernel/rtl/mem.c @@ -56,25 +57,52 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length) DPRINT("*Destination %x\n",*(PULONG)Destination); } + VOID STDCALL -RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill) +RtlFillMemory ( + PVOID Destination, + ULONG Length, + UCHAR Fill + ) { - memset(Destination,Fill,Length); + memset ( + Destination, + Fill, + Length + ); } + VOID STDCALL -RtlZeroMemory(PVOID Destination, ULONG Length) +RtlZeroMemory ( + PVOID Destination, + ULONG Length + ) { - RtlFillMemory(Destination,Length,0); + RtlFillMemory ( + Destination, + Length, + 0 + ); } + VOID STDCALL -RtlMoveMemory(PVOID Destination, - CONST VOID* Source, - ULONG Length) +RtlMoveMemory ( + PVOID Destination, + CONST VOID * Source, + ULONG Length + ) { - memmove(Destination,Source,Length); + memmove ( + Destination, + Source, + Length + ); } + + +/* EOF */ diff --git a/reactos/ntoskrnl/ntoskrnl.def b/reactos/ntoskrnl/ntoskrnl.def index 4f584c412b1..d77c32c5326 100644 --- a/reactos/ntoskrnl/ntoskrnl.def +++ b/reactos/ntoskrnl/ntoskrnl.def @@ -1,4 +1,4 @@ -; $Id: ntoskrnl.def,v 1.21 1999/10/30 21:24:37 ea Exp $ +; $Id: ntoskrnl.def,v 1.22 1999/10/31 22:41:48 ea Exp $ ; ; reactos/ntoskrnl/ntoskrnl.def ; @@ -179,20 +179,21 @@ RtlConvertUlongToLargeInteger RtlCopyMemory RtlEnlargedIntegerMultiply RtlExtendedIntegerMultiply +RtlFillMemory@12 RtlFreeUnicodeString RtlInitAnsiString RtlInitUnicodeString RtlLargeIntegerAdd RtlLargeIntegerGreaterThan RtlLargeIntegerShiftRight -RtlMoveMemory +RtlMoveMemorya@12 RtlSecondsSince1970ToTime RtlSecondsSince1980ToTime RtlTimeFieldsToTime RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1980 RtlTimeToTimeFields -RtlZeroMemory +RtlZeroMemory@8 ZwAccessCheckAndAuditAlarm@44 ZwAlertThread@4 ZwAllocateVirtualMemory@24 diff --git a/reactos/ntoskrnl/ntoskrnl.edf b/reactos/ntoskrnl/ntoskrnl.edf index d9bb2d94161..10b19322ea3 100644 --- a/reactos/ntoskrnl/ntoskrnl.edf +++ b/reactos/ntoskrnl/ntoskrnl.edf @@ -1,4 +1,4 @@ -; $Id: ntoskrnl.edf,v 1.9 1999/10/30 21:24:37 ea Exp $ +; $Id: ntoskrnl.edf,v 1.10 1999/10/31 22:41:49 ea Exp $ ; ; reactos/ntoskrnl/ntoskrnl.def ; @@ -179,20 +179,21 @@ RtlConvertUlongToLargeInteger RtlCopyMemory RtlEnlargedIntegerMultiply RtlExtendedIntegerMultiply +RtlFillMemory=RtlFillMemory@12 RtlFreeUnicodeString RtlInitAnsiString RtlInitUnicodeString RtlLargeIntegerAdd RtlLargeIntegerGreaterThan RtlLargeIntegerShiftRight -RtlMoveMemory +RtlMoveMemory=RtlMoveMemory@12 RtlSecondsSince1970ToTime RtlSecondsSince1980ToTime RtlTimeFieldsToTime RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1980 RtlTimeToTimeFields -RtlZeroMemory +RtlZeroMemory=RtlZeroMemory@8 ZwAccessCheckAndAuditAlarm=ZwAccessCheckAndAuditAlarm@44 ZwAlertThread=ZwAlertThread@4 ZwAllocateVirtualMemory=ZwAllocateVirtualMemory@24 diff --git a/reactos/ntoskrnl/rtl/mem.c b/reactos/ntoskrnl/rtl/mem.c index a459601a084..de5e892a1df 100644 --- a/reactos/ntoskrnl/rtl/mem.c +++ b/reactos/ntoskrnl/rtl/mem.c @@ -1,4 +1,5 @@ -/* +/* $Id: mem.c,v 1.5 1999/10/31 22:41:49 ea Exp $ + * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel * FILE: kernel/rtl/mem.c @@ -56,19 +57,48 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length) DPRINT("*Destination %x\n",*(PULONG)Destination); } -VOID RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill) + +VOID +STDCALL +RtlFillMemory ( + PVOID Destination, + ULONG Length, + UCHAR Fill + ) { - memset(Destination,Fill,Length); + memset(Destination,Fill,Length); } -VOID RtlZeroMemory(PVOID Destination, ULONG Length) + +VOID +STDCALL +RtlZeroMemory ( + PVOID Destination, + ULONG Length + ) { - RtlFillMemory(Destination,Length,0); + RtlFillMemory ( + Destination, + Length, + 0 + ); } -VOID RtlMoveMemory(PVOID Destination, - CONST VOID* Source, - ULONG Length) + +VOID +STDCALL +RtlMoveMemory ( + PVOID Destination, + CONST VOID * Source, + ULONG Length + ) { - memmove(Destination,Source,Length); + memmove ( + Destination, + Source, + Length + ); } + + +/* EOF */