1
0
mirror of https://github.com/golang/go synced 2024-10-04 22:31:22 -06:00
go/src/libmach/windows.c
Rob Pike 179f0b8a07 libmach: fix the windows build.
Newly enabled compiler errors need workaround.

R=rsc
CC=golang-dev
https://golang.org/cl/4397047
2011-04-13 14:57:47 -07:00

68 lines
1.1 KiB
C

// 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 Windows");
return -1;
}
char*
proctextfile(int pid)
{
sysfatal("proctextfile unimplemented in Windows");
return nil;
}
char*
procstatus(int pid)
{
sysfatal("procstatus unimplemented in Windows");
return nil;
}
Map*
attachproc(int pid, Fhdr *fp)
{
sysfatal("attachproc unimplemented in Windows");
return nil;
}
void
detachproc(Map *m)
{
sysfatal("detachproc unimplemented in Windows");
}
int
procthreadpids(int pid, int *p, int np)
{
sysfatal("procthreadpids unimplemented in Windows");
return -1;
}
int
pread(int fd, void *buf, int count, int offset)
{
sysfatal("pread unimplemented in Windows");
return -1;
}
int
pwrite(int fd, void *buf, int count, int offset)
{
sysfatal("pwrite unimplemented in Windows");
return -1;
}
int
nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
{
sysfatal("nanosleep unimplemented in Windows");
return -1;
}