minix/lib/libc/other/_mcontext.c
2010-06-08 13:58:01 +00:00

26 lines
358 B
C

/*
* mcontext.c
*/
#include <lib.h>
#include <ucontext.h>
#include <unistd.h>
PUBLIC int setmcontext(const mcontext_t *mcp)
{
message m;
m.m1_p1 = (char *) mcp;
return(_syscall(PM_PROC_NR, SETMCONTEXT, &m));
}
PUBLIC int getmcontext(mcontext_t *mcp)
{
message m;
m.m1_p1 = (char *) mcp;
return(_syscall(PM_PROC_NR, GETMCONTEXT, &m));
}