cov and prof: implement windows version (just function stubs and build mods)
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/1676054
diff --git a/include/libc.h b/include/libc.h
index ea6fc3b..1103bcf 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -292,9 +292,15 @@
extern char* getgoversion(void);
#ifdef __MINGW32__
-extern int fork();
+struct timespec {
+ int tv_sec;
+ long tv_nsec;
+};
+extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
+extern int fork(void);
extern int pread(int fd, void *buf, int n, int off);
extern int pwrite(int fd, void *buf, int n, int off);
+#define execv(prog, argv) execv(prog, (const char* const*)(argv))
#define execvp(prog, argv) execvp(prog, (const char**)(argv))
#define lseek(fd, n, base) _lseeki64(fd, n, base)
#define mkdir(path, perm) mkdir(path)