From: Joel Sing Date: Fri, 29 Jul 2011 17:48:00 +0000 (-0400) Subject: libmach: stubs for openbsd X-Git-Tag: weekly.2011-07-29~3 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d7ddfa64dcdc480f07c579f298b9019ba737f96;p=gostls13.git libmach: stubs for openbsd Add libmach stubs for openbsd. R=rsc CC=golang-dev https://golang.org/cl/4815065 --- diff --git a/src/libmach/openbsd.c b/src/libmach/openbsd.c new file mode 100644 index 0000000000..d919383f3f --- /dev/null +++ b/src/libmach/openbsd.c @@ -0,0 +1,46 @@ +// This is stubbed out for the moment. Will revisit when the time comes. +#include +#include +#include +#include + +int +ctlproc(int pid, char *msg) +{ + sysfatal("ctlproc unimplemented in OpenBSD"); + return -1; +} + +char* +proctextfile(int pid) +{ + sysfatal("proctextfile unimplemented in OpenBSD"); + return nil; +} + +char* +procstatus(int pid) +{ + sysfatal("procstatus unimplemented in OpenBSD"); + return nil; +} + +Map* +attachproc(int pid, Fhdr *fp) +{ + sysfatal("attachproc unimplemented in OpenBSD"); + return nil; +} + +void +detachproc(Map *m) +{ + sysfatal("detachproc unimplemented in OpenBSD"); +} + +int +procthreadpids(int pid, int *p, int np) +{ + sysfatal("procthreadpids unimplemented in OpenBSD"); + return -1; +}