minix/servers/pm/break.c
David van Moolenbroek 3c0096fc84 Clean up interface to PM and VFS
- introduce new call numbers, names, and field aliases;
- initialize request messages to zero for all ABI calls;
- format callnr.h in the same way as com.h;
- redo call tables in both servers;
- remove param.h namespace pollution in the servers;
- make brk(2) go to VM directly, rather than through PM;
- remove obsolete BRK, UTIME, and WAIT calls;
- clean up path copying routine in VFS;
- move remaining system calls from libminlib to libc;
- correct some errno-related mistakes in libc routines.

Change-Id: I2d8ec5d061cd7e0b30c51ffd77aa72ebf84e2565
2013-11-06 11:06:20 +01:00

22 lines
491 B
C

/*
* XXX OBSOLETE AS OF 3.3.0, REMOVE
*/
#include "pm.h"
#include "glo.h"
#include "mproc.h"
#include <minix/vm.h>
/*===========================================================================*
* do_brk *
*===========================================================================*/
int do_brk()
{
int r;
/* Entry point to brk(addr) system call. */
r = vm_brk(mp->mp_endpoint, m_in.m1_p1);
mp->mp_reply.m2_p1 = (r == OK ? m_in.m1_p1 : (char *) -1);
return r;
}