To do once more a little piece os2ss
authorRobert Kopferl <robertk@mok.lvcm.com>
Wed, 16 Mar 2005 23:51:26 +0000 (23:51 +0000)
committerRobert Kopferl <robertk@mok.lvcm.com>
Wed, 16 Mar 2005 23:51:26 +0000 (23:51 +0000)
svn path=/trunk/; revision=14153

os2/lib/doscalls/memory/memory.cpp [new file with mode: 0644]

diff --git a/os2/lib/doscalls/memory/memory.cpp b/os2/lib/doscalls/memory/memory.cpp
new file mode 100644 (file)
index 0000000..4be00ab
--- /dev/null
@@ -0,0 +1,40 @@
+\r
+\r
+\r
+// TODO: HEader: To be pasted\r
+\r
+\r
+\r
+\r
+// INCL_DOSMEMMGR || !INCL_NOCOMMON \r
+#define  INCL_DOSMEMMGR \r
+#undefine INCL_NOCOMMON\r
+\r
+#include <os2.h>\r
+\r
+\r
+// TODO: Expain that this is for memory alloc/free funcs of Os2 api\r
+\r
+\r
+\r
+// TODO: Implement functions and give them bodies\r
+ULONG DosAllocMem (PPVOID pBaseAddress, ULONG ulObjectSize,\r
+    ULONG ulAllocationFlags);\r
+ULONG DosAllocSharedMem (PPVOID pBaseAddress, PCSZ pszName,\r
+    ULONG ulObjectSize, ULONG ulAllocationFlags);\r
+ULONG DosFreeMem (PVOID pBaseAddress);\r
+ULONG DosGetNamedSharedMem (PPVOID pBaseAddress, PCSZ pszSharedMemName,\r
+    ULONG ulAttributeFlags);\r
+ULONG DosGetSharedMem (CPVOID pBaseAddress, ULONG ulAttributeFlags);\r
+ULONG DosGiveSharedMem (CPVOID pBaseAddress, PID idProcessId,\r
+    ULONG ulAttributeFlags);\r
+ULONG DosQueryMem (CPVOID pBaseAddress, PULONG pulRegionSize,\r
+    PULONG pulAllocationFlags);\r
+ULONG DosSetMem (CPVOID pBaseAddress, ULONG ulRegionSize,\r
+    ULONG ulAttributeFlags);\r
+ULONG DosSubAllocMem (PVOID pOffset, PPVOID pBlockOffset, ULONG ulSize);\r
+ULONG DosSubFreeMem (PVOID pOffset, PVOID pBlockOffset, ULONG ulSize);\r
+ULONG DosSubSetMem (PVOID pOffset, ULONG ulFlags, ULONG ulSize);\r
+ULONG DosSubUnsetMem (PVOID pOffset);\r
+\r
+// TODO: Add file to makefile
\ No newline at end of file