Commit cae5213b authored by Alex Brainman's avatar Alex Brainman

libmach,lib9: override unused parameter warnings (fixes netbsd and openbsd builds)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11623043
parent dfbe467e
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
int int
ctlproc(int pid, char *msg) ctlproc(int pid, char *msg)
{ {
USED(pid);
USED(msg);
sysfatal("ctlproc unimplemented in NetBSD"); sysfatal("ctlproc unimplemented in NetBSD");
return -1; return -1;
} }
...@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg) ...@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
char* char*
proctextfile(int pid) proctextfile(int pid)
{ {
USED(pid);
sysfatal("proctextfile unimplemented in NetBSD"); sysfatal("proctextfile unimplemented in NetBSD");
return nil; return nil;
} }
...@@ -21,6 +24,7 @@ proctextfile(int pid) ...@@ -21,6 +24,7 @@ proctextfile(int pid)
char* char*
procstatus(int pid) procstatus(int pid)
{ {
USED(pid);
sysfatal("procstatus unimplemented in NetBSD"); sysfatal("procstatus unimplemented in NetBSD");
return nil; return nil;
} }
...@@ -28,6 +32,8 @@ procstatus(int pid) ...@@ -28,6 +32,8 @@ procstatus(int pid)
Map* Map*
attachproc(int pid, Fhdr *fp) attachproc(int pid, Fhdr *fp)
{ {
USED(pid);
USED(fp);
sysfatal("attachproc unimplemented in NetBSD"); sysfatal("attachproc unimplemented in NetBSD");
return nil; return nil;
} }
...@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp) ...@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
void void
detachproc(Map *m) detachproc(Map *m)
{ {
USED(m);
sysfatal("detachproc unimplemented in NetBSD"); sysfatal("detachproc unimplemented in NetBSD");
} }
int int
procthreadpids(int pid, int *p, int np) procthreadpids(int pid, int *p, int np)
{ {
USED(pid);
USED(p);
USED(np);
sysfatal("procthreadpids unimplemented in NetBSD"); sysfatal("procthreadpids unimplemented in NetBSD");
return -1; return -1;
} }
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
int int
ctlproc(int pid, char *msg) ctlproc(int pid, char *msg)
{ {
USED(pid);
USED(msg);
sysfatal("ctlproc unimplemented in OpenBSD"); sysfatal("ctlproc unimplemented in OpenBSD");
return -1; return -1;
} }
...@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg) ...@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
char* char*
proctextfile(int pid) proctextfile(int pid)
{ {
USED(pid);
sysfatal("proctextfile unimplemented in OpenBSD"); sysfatal("proctextfile unimplemented in OpenBSD");
return nil; return nil;
} }
...@@ -21,6 +24,7 @@ proctextfile(int pid) ...@@ -21,6 +24,7 @@ proctextfile(int pid)
char* char*
procstatus(int pid) procstatus(int pid)
{ {
USED(pid);
sysfatal("procstatus unimplemented in OpenBSD"); sysfatal("procstatus unimplemented in OpenBSD");
return nil; return nil;
} }
...@@ -28,6 +32,8 @@ procstatus(int pid) ...@@ -28,6 +32,8 @@ procstatus(int pid)
Map* Map*
attachproc(int pid, Fhdr *fp) attachproc(int pid, Fhdr *fp)
{ {
USED(pid);
USED(fp);
sysfatal("attachproc unimplemented in OpenBSD"); sysfatal("attachproc unimplemented in OpenBSD");
return nil; return nil;
} }
...@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp) ...@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
void void
detachproc(Map *m) detachproc(Map *m)
{ {
USED(m);
sysfatal("detachproc unimplemented in OpenBSD"); sysfatal("detachproc unimplemented in OpenBSD");
} }
int int
procthreadpids(int pid, int *p, int np) procthreadpids(int pid, int *p, int np)
{ {
USED(pid);
USED(p);
USED(np);
sysfatal("procthreadpids unimplemented in OpenBSD"); sysfatal("procthreadpids unimplemented in OpenBSD");
return -1; return -1;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment