From 847aa8989356297fb687645d17851a5e9052a05e Mon Sep 17 00:00:00 2001 From: Robert Kopferl Date: Wed, 16 Mar 2005 23:51:26 +0000 Subject: [PATCH] To do once more a little piece os2ss svn path=/trunk/; revision=14153 --- os2/lib/doscalls/memory/memory.cpp | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 os2/lib/doscalls/memory/memory.cpp diff --git a/os2/lib/doscalls/memory/memory.cpp b/os2/lib/doscalls/memory/memory.cpp new file mode 100644 index 00000000000..4be00abaa63 --- /dev/null +++ b/os2/lib/doscalls/memory/memory.cpp @@ -0,0 +1,40 @@ + + + +// TODO: HEader: To be pasted + + + + +// INCL_DOSMEMMGR || !INCL_NOCOMMON +#define INCL_DOSMEMMGR +#undefine INCL_NOCOMMON + +#include + + +// TODO: Expain that this is for memory alloc/free funcs of Os2 api + + + +// TODO: Implement functions and give them bodies +ULONG DosAllocMem (PPVOID pBaseAddress, ULONG ulObjectSize, + ULONG ulAllocationFlags); +ULONG DosAllocSharedMem (PPVOID pBaseAddress, PCSZ pszName, + ULONG ulObjectSize, ULONG ulAllocationFlags); +ULONG DosFreeMem (PVOID pBaseAddress); +ULONG DosGetNamedSharedMem (PPVOID pBaseAddress, PCSZ pszSharedMemName, + ULONG ulAttributeFlags); +ULONG DosGetSharedMem (CPVOID pBaseAddress, ULONG ulAttributeFlags); +ULONG DosGiveSharedMem (CPVOID pBaseAddress, PID idProcessId, + ULONG ulAttributeFlags); +ULONG DosQueryMem (CPVOID pBaseAddress, PULONG pulRegionSize, + PULONG pulAllocationFlags); +ULONG DosSetMem (CPVOID pBaseAddress, ULONG ulRegionSize, + ULONG ulAttributeFlags); +ULONG DosSubAllocMem (PVOID pOffset, PPVOID pBlockOffset, ULONG ulSize); +ULONG DosSubFreeMem (PVOID pOffset, PVOID pBlockOffset, ULONG ulSize); +ULONG DosSubSetMem (PVOID pOffset, ULONG ulFlags, ULONG ulSize); +ULONG DosSubUnsetMem (PVOID pOffset); + +// TODO: Add file to makefile \ No newline at end of file