RtlFillMemory, RtlMoveMemory, RtlZeroMemory needed __stdcall

svn path=/trunk/; revision=747
This commit is contained in:
Emanuele Aliberti 1999-10-31 22:41:49 +00:00
parent dabbe50e39
commit 31c5b7839f
4 changed files with 84 additions and 24 deletions

View file

@ -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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: kernel/rtl/mem.c * FILE: kernel/rtl/mem.c
@ -56,25 +57,52 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length)
DPRINT("*Destination %x\n",*(PULONG)Destination); DPRINT("*Destination %x\n",*(PULONG)Destination);
} }
VOID VOID
STDCALL STDCALL
RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill) RtlFillMemory (
PVOID Destination,
ULONG Length,
UCHAR Fill
)
{ {
memset(Destination,Fill,Length); memset (
Destination,
Fill,
Length
);
} }
VOID VOID
STDCALL STDCALL
RtlZeroMemory(PVOID Destination, ULONG Length) RtlZeroMemory (
PVOID Destination,
ULONG Length
)
{ {
RtlFillMemory(Destination,Length,0); RtlFillMemory (
Destination,
Length,
0
);
} }
VOID VOID
STDCALL STDCALL
RtlMoveMemory(PVOID Destination, RtlMoveMemory (
CONST VOID* Source, PVOID Destination,
ULONG Length) CONST VOID * Source,
ULONG Length
)
{ {
memmove(Destination,Source,Length); memmove (
Destination,
Source,
Length
);
} }
/* EOF */

View file

@ -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 ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -179,20 +179,21 @@ RtlConvertUlongToLargeInteger
RtlCopyMemory RtlCopyMemory
RtlEnlargedIntegerMultiply RtlEnlargedIntegerMultiply
RtlExtendedIntegerMultiply RtlExtendedIntegerMultiply
RtlFillMemory@12
RtlFreeUnicodeString RtlFreeUnicodeString
RtlInitAnsiString RtlInitAnsiString
RtlInitUnicodeString RtlInitUnicodeString
RtlLargeIntegerAdd RtlLargeIntegerAdd
RtlLargeIntegerGreaterThan RtlLargeIntegerGreaterThan
RtlLargeIntegerShiftRight RtlLargeIntegerShiftRight
RtlMoveMemory RtlMoveMemorya@12
RtlSecondsSince1970ToTime RtlSecondsSince1970ToTime
RtlSecondsSince1980ToTime RtlSecondsSince1980ToTime
RtlTimeFieldsToTime RtlTimeFieldsToTime
RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1970
RtlTimeToSecondsSince1980 RtlTimeToSecondsSince1980
RtlTimeToTimeFields RtlTimeToTimeFields
RtlZeroMemory RtlZeroMemory@8
ZwAccessCheckAndAuditAlarm@44 ZwAccessCheckAndAuditAlarm@44
ZwAlertThread@4 ZwAlertThread@4
ZwAllocateVirtualMemory@24 ZwAllocateVirtualMemory@24

View file

@ -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 ; reactos/ntoskrnl/ntoskrnl.def
; ;
@ -179,20 +179,21 @@ RtlConvertUlongToLargeInteger
RtlCopyMemory RtlCopyMemory
RtlEnlargedIntegerMultiply RtlEnlargedIntegerMultiply
RtlExtendedIntegerMultiply RtlExtendedIntegerMultiply
RtlFillMemory=RtlFillMemory@12
RtlFreeUnicodeString RtlFreeUnicodeString
RtlInitAnsiString RtlInitAnsiString
RtlInitUnicodeString RtlInitUnicodeString
RtlLargeIntegerAdd RtlLargeIntegerAdd
RtlLargeIntegerGreaterThan RtlLargeIntegerGreaterThan
RtlLargeIntegerShiftRight RtlLargeIntegerShiftRight
RtlMoveMemory RtlMoveMemory=RtlMoveMemory@12
RtlSecondsSince1970ToTime RtlSecondsSince1970ToTime
RtlSecondsSince1980ToTime RtlSecondsSince1980ToTime
RtlTimeFieldsToTime RtlTimeFieldsToTime
RtlTimeToSecondsSince1970 RtlTimeToSecondsSince1970
RtlTimeToSecondsSince1980 RtlTimeToSecondsSince1980
RtlTimeToTimeFields RtlTimeToTimeFields
RtlZeroMemory RtlZeroMemory=RtlZeroMemory@8
ZwAccessCheckAndAuditAlarm=ZwAccessCheckAndAuditAlarm@44 ZwAccessCheckAndAuditAlarm=ZwAccessCheckAndAuditAlarm@44
ZwAlertThread=ZwAlertThread@4 ZwAlertThread=ZwAlertThread@4
ZwAllocateVirtualMemory=ZwAllocateVirtualMemory@24 ZwAllocateVirtualMemory=ZwAllocateVirtualMemory@24

View file

@ -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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: kernel/rtl/mem.c * FILE: kernel/rtl/mem.c
@ -56,19 +57,48 @@ VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length)
DPRINT("*Destination %x\n",*(PULONG)Destination); 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, VOID
ULONG Length) STDCALL
RtlMoveMemory (
PVOID Destination,
CONST VOID * Source,
ULONG Length
)
{ {
memmove(Destination,Source,Length); memmove (
Destination,
Source,
Length
);
} }
/* EOF */