mirror of
https://github.com/golang/go
synced 2024-11-05 11:56:12 -07:00
libmach,lib9: override unused parameter warnings (fixes windows build)
R=golang-dev, dave CC=golang-dev https://golang.org/cl/11620044
This commit is contained in:
parent
c485b58912
commit
dfbe467eda
@ -43,6 +43,9 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
|
||||
char tmp[20];
|
||||
int sz, fd;
|
||||
|
||||
#ifdef _WIN32
|
||||
USED(lst);
|
||||
#endif
|
||||
fd = -1;
|
||||
USED(fd);
|
||||
sz = 0;
|
||||
|
@ -48,6 +48,8 @@ futimes(int fd, struct timeval *tv)
|
||||
static int
|
||||
futimes(int fd, struct timeval *tv)
|
||||
{
|
||||
USED(fd);
|
||||
USED(tv);
|
||||
werrstr("futimes not available");
|
||||
return -1;
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ fork(void)
|
||||
int
|
||||
p9rfork(int flags)
|
||||
{
|
||||
USED(flags);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
int
|
||||
ctlproc(int pid, char *msg)
|
||||
{
|
||||
USED(pid);
|
||||
USED(msg);
|
||||
sysfatal("ctlproc unimplemented in Windows");
|
||||
return -1;
|
||||
}
|
||||
@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
|
||||
char*
|
||||
proctextfile(int pid)
|
||||
{
|
||||
USED(pid);
|
||||
sysfatal("proctextfile unimplemented in Windows");
|
||||
return nil;
|
||||
}
|
||||
@ -21,6 +24,7 @@ proctextfile(int pid)
|
||||
char*
|
||||
procstatus(int pid)
|
||||
{
|
||||
USED(pid);
|
||||
sysfatal("procstatus unimplemented in Windows");
|
||||
return nil;
|
||||
}
|
||||
@ -28,6 +32,8 @@ procstatus(int pid)
|
||||
Map*
|
||||
attachproc(int pid, Fhdr *fp)
|
||||
{
|
||||
USED(pid);
|
||||
USED(fp);
|
||||
sysfatal("attachproc unimplemented in Windows");
|
||||
return nil;
|
||||
}
|
||||
@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
|
||||
void
|
||||
detachproc(Map *m)
|
||||
{
|
||||
USED(m);
|
||||
sysfatal("detachproc unimplemented in Windows");
|
||||
}
|
||||
|
||||
int
|
||||
procthreadpids(int pid, int *p, int np)
|
||||
{
|
||||
USED(pid);
|
||||
USED(p);
|
||||
USED(np);
|
||||
sysfatal("procthreadpids unimplemented in Windows");
|
||||
return -1;
|
||||
}
|
||||
@ -59,6 +69,10 @@ pread(int fd, void *buf, int count, int offset)
|
||||
int
|
||||
pwrite(int fd, void *buf, int count, int offset)
|
||||
{
|
||||
USED(fd);
|
||||
USED(buf);
|
||||
USED(count);
|
||||
USED(offset);
|
||||
sysfatal("pwrite unimplemented in Windows");
|
||||
return -1;
|
||||
}
|
||||
@ -66,6 +80,8 @@ pwrite(int fd, void *buf, int count, int offset)
|
||||
int
|
||||
nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
|
||||
{
|
||||
USED(rqtp);
|
||||
USED(rmtp);
|
||||
sysfatal("nanosleep unimplemented in Windows");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user