minix/lib/libc/sys-minix/_mcontext.c

30 lines
401 B
C
Raw Normal View History

/*
* mcontext.c
*/
#include <sys/cdefs.h>
#include <lib.h>
#include <namespace.h>
#include <ucontext.h>
#include <unistd.h>
2012-03-25 20:25:53 +02:00
int setmcontext(const mcontext_t *mcp)
{
message m;
m.m1_p1 = (char *) __UNCONST(mcp);
return(_syscall(PM_PROC_NR, SETMCONTEXT, &m));
}
2012-03-25 20:25:53 +02:00
int getmcontext(mcontext_t *mcp)
{
message m;
m.m1_p1 = (char *) mcp;
return(_syscall(PM_PROC_NR, GETMCONTEXT, &m));
}