custom message type for VM_BRK

This commit is contained in:
Ben Gras
2014-07-26 13:53:57 +02:00
committed by Lionel Sambuc
parent 7cb7ac5b42
commit 8c2ac80abd
4 changed files with 9 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ void *addr;
if (addr != _brksize) {
memset(&m, 0, sizeof(m));
m.VMB_ADDR = addr;
m.m_lc_vm_brk.addr = addr;
if (_syscall(VM_PROC_NR, VM_BRK, &m) < 0) return(-1);
_brksize = addr;
}