diff options
author | Joe Poirier <jdpoirier@gmail.com> | 2010-07-30 11:47:11 +1000 |
---|---|---|
committer | Joe Poirier <jdpoirier@gmail.com> | 2010-07-30 11:47:11 +1000 |
commit | 086f8fd7ca3dd05e5a2df208ddf301652843a0d3 (patch) | |
tree | bfc2bb184043746808e84bb62e73425f334e2fca /include | |
parent | d28238397d4b962c6c59df1a81451c3c8b39e8d6 (diff) | |
download | go-086f8fd7ca3dd05e5a2df208ddf301652843a0d3.tar.gz |
cov and prof: implement windows version (just function stubs and build mods)
R=brainman, rsc
CC=golang-dev
http://codereview.appspot.com/1676054
Committer: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libc.h b/include/libc.h index ea6fc3b26..1103bcf81 100644 --- a/include/libc.h +++ b/include/libc.h @@ -292,9 +292,15 @@ extern char* getgoroot(void); 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) |