Commit 179f0b8a authored by Rob Pike's avatar Rob Pike

libmach: fix the windows build.

Newly enabled compiler errors need workaround.

R=rsc
CC=golang-dev
https://golang.org/cl/4397047
parent 5666ec87
...@@ -8,24 +8,28 @@ int ...@@ -8,24 +8,28 @@ int
ctlproc(int pid, char *msg) ctlproc(int pid, char *msg)
{ {
sysfatal("ctlproc unimplemented in Windows"); sysfatal("ctlproc unimplemented in Windows");
return -1;
} }
char* char*
proctextfile(int pid) proctextfile(int pid)
{ {
sysfatal("proctextfile unimplemented in Windows"); sysfatal("proctextfile unimplemented in Windows");
return nil;
} }
char* char*
procstatus(int pid) procstatus(int pid)
{ {
sysfatal("procstatus unimplemented in Windows"); sysfatal("procstatus unimplemented in Windows");
return nil;
} }
Map* Map*
attachproc(int pid, Fhdr *fp) attachproc(int pid, Fhdr *fp)
{ {
sysfatal("attachproc unimplemented in Windows"); sysfatal("attachproc unimplemented in Windows");
return nil;
} }
void void
...@@ -38,22 +42,26 @@ int ...@@ -38,22 +42,26 @@ int
procthreadpids(int pid, int *p, int np) procthreadpids(int pid, int *p, int np)
{ {
sysfatal("procthreadpids unimplemented in Windows"); sysfatal("procthreadpids unimplemented in Windows");
return -1;
} }
int int
pread(int fd, void *buf, int count, int offset) pread(int fd, void *buf, int count, int offset)
{ {
sysfatal("pread unimplemented in Windows"); sysfatal("pread unimplemented in Windows");
return -1;
} }
int int
pwrite(int fd, void *buf, int count, int offset) pwrite(int fd, void *buf, int count, int offset)
{ {
sysfatal("pwrite unimplemented in Windows"); sysfatal("pwrite unimplemented in Windows");
return -1;
} }
int int
nanosleep(const struct timespec *rqtp, struct timespec *rmtp) nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
{ {
sysfatal("nanosleep unimplemented in Windows"); sysfatal("nanosleep unimplemented in Windows");
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