minix/servers/pm/break.c

21 lines
477 B
C
Raw Normal View History

#include "pm.h"
#include "param.h"
#include "glo.h"
#include "mproc.h"
#include <minix/vm.h>
/*===========================================================================*
2006-05-11 16:57:23 +02:00
* do_brk *
*===========================================================================*/
PUBLIC int do_brk()
{
int r;
/* Entry point to brk(addr) system call. */
r = vm_brk(mp->mp_endpoint, m_in.addr);
mp->mp_reply.reply_ptr = (r == OK ? m_in.addr : (char *) -1);
return r;
}