diff options
| author | Russ Cox <rsc@golang.org> | 2011-11-07 13:15:16 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-11-07 13:15:16 -0500 |
| commit | 3f4a91d778ac4cab817e9d08c193a00a642f19aa (patch) | |
| tree | ee041a0636b7289a48ee67a1983788435d9ec868 /include | |
| parent | 1c42db883522997230819f512a92622434838842 (diff) | |
| download | go-3f4a91d778ac4cab817e9d08c193a00a642f19aa.tar.xz | |
lib9: add ctime
ctime differs across Unix vs Plan 9 so add to portability library
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5363043
Diffstat (limited to 'include')
| -rw-r--r-- | include/libc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h index f9ad963345..0b50eb3c5f 100644 --- a/include/libc.h +++ b/include/libc.h @@ -95,6 +95,7 @@ extern void perror(const char*); extern int postnote(int, int, char *); extern double p9pow10(int); extern char* searchpath(char*); +extern char* p9ctime(long); #define p9setjmp(b) sigsetjmp((void*)(b), 1) extern void sysfatal(char*, ...); @@ -115,6 +116,7 @@ extern void sysfatal(char*, ...); #undef strtod #define strtod fmtstrtod #define charstod fmtcharstod +#define ctime p9ctime #endif /* |
