This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
29 lines
404 B
C
29 lines
404 B
C
/*
|
|
* mcontext.c
|
|
*/
|
|
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include <namespace.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));
|
|
}
|
|
|