diff options
author | Joel Sing <jsing@google.com> | 2011-07-29 13:48:00 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-07-29 13:48:00 -0400 |
commit | 2d7ddfa64dcdc480f07c579f298b9019ba737f96 (patch) | |
tree | 29de8ff5bc469e845d296b4c282cf17198d85eae | |
parent | 124172e2cfe55f1bfefb5e478a42ae3b29e62478 (diff) | |
download | go-2d7ddfa64dcdc480f07c579f298b9019ba737f96.tar.gz go-2d7ddfa64dcdc480f07c579f298b9019ba737f96.zip |
libmach: stubs for openbsd
Add libmach stubs for openbsd.
R=rsc
CC=golang-dev
https://golang.org/cl/4815065
-rw-r--r-- | src/libmach/openbsd.c | 46 |
1 files changed, 46 insertions, 0 deletions
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 <u.h> +#include <libc.h> +#include <bio.h> +#include <mach.h> + +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; +} |