Developer > Application
Chapter 5: Memory Management, Memory-Mapped Files, and DLLs
Subject | Windows | UNIX | C Library |
---|---|---|---|
Mapped Files | CreateFileMapping | shmget | N/A |
Mapped Files | MapViewOfFile | mmap, shmat | N/A |
Mapped Files | MapViewOfFileEx | mmap, shmat | N/A |
Mapped Files | OpenFileMapping | shmget | N/A |
Mapped Files | UnmapViewOfFile | munmap, shmdt, shmctl | N/A |
Memory Mgt | GetProcessHeap | N/A | N/A |
Memory Mgt | GetSystemInfo | N/A | N/A |
Memory Mgt | HeapAlloc | sbrk, brk, or C library | malloc, calloc |
Memory Mgt | HeapCreate | N/A | N/A |
Memory Mgt | HeapDestroy | N/A | N/A |
Memory Mgt | HeapFree | Use C library | free |
Memory Mgt | HeapReAlloc | Use C library | realloc |
Memory Mgt | HeapSize | N/A | N/A |
Shared Memory | CloseHandle (map handle) | shmctl | N/A |
Shared Memory | CreateFileMapping, OpenFileMapping | shmget | N/A |
Shared Memory | MapViewOfFile | shmat | N/A |
Shared Memory | UnmapViewOfFile | shmdt | N/A |
DLLs | LoadLibrary | dlopen | N/A |
DLLs | FreeLibrary | dlclose | N/A |
DLLs | GetProcAddress | dlsyn | N/A |
DLLs | DllMain | pthread_once | N/A |