我正在寻找在FreeBSD和Linux中与以下WinAPI等效的方法:
CreateFile();或OpenFile();
CreateFileMapping();
MapViewOfFile();
这些怎么样?
open(2)
creat(2)
shm_open
mmap
虽然不完全相同,但应该能帮你入门。
mmap()
CreateFileMapping()
MapViewOfFile()