| 5 | |
| 6 | namespace Lemon { |
| 7 | int64_t CreateSharedMemory(uint64_t size, uint64_t flags){ |
| 8 | int64_t key; |
| 9 | long ret = syscall(SYS_CREATE_SHARED_MEMORY, &key, size, flags, /*recipient*/0); |
| 10 | if(ret < 0){ |
| 11 | return ret; |
| 12 | } |
| 13 | return key; |
| 14 | } |
| 15 | |
| 16 | volatile void* MapSharedMemory(int64_t key){ |
| 17 | volatile void* ptr; |
nothing calls this directly
no outgoing calls
no test coverage detected