* SysDestroySharedMemory (key) - Destroy Shared Memory * key - Memory key * * On Success - return 0 * On Failure - return -1 */
| 1133 | * On Failure - return -1 |
| 1134 | */ |
| 1135 | long SysDestroySharedMemory(regs64_t* r){ |
| 1136 | uint64_t key = SC_ARG0(r); |
| 1137 | |
| 1138 | if(Memory::CanModifySharedMemory(Scheduler::GetCurrentProcess()->pid, key)){ |
| 1139 | Memory::DestroySharedMemory(key); |
| 1140 | } else return -1; |
| 1141 | |
| 1142 | return 0; |
| 1143 | } |
| 1144 | |
| 1145 | /* |
| 1146 | * SysSocket (domain, type, protocol) - Create socket |
nothing calls this directly
no test coverage detected