LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 typedef int bool; | 5 typedef int bool; |
6 | 6 |
7 // The Time unit is unspecified; we just need to | 7 // The Time unit is unspecified; we just need to |
8 // be able to compare whether t1 is older than t2 with t1 < t2. | 8 // be able to compare whether t1 is older than t2 with t1 < t2. |
9 typedef long long Time; | 9 typedef long long Time; |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 bool isdir(char *p); | 113 bool isdir(char *p); |
114 bool isfile(char *p); | 114 bool isfile(char *p); |
115 char* lastelem(char*); | 115 char* lastelem(char*); |
116 Time mtime(char*); | 116 Time mtime(char*); |
117 void readfile(Buf*, char*); | 117 void readfile(Buf*, char*); |
118 void run(Buf *b, char *dir, int mode, char *cmd, ...); | 118 void run(Buf *b, char *dir, int mode, char *cmd, ...); |
119 void runv(Buf *b, char *dir, int mode, Vec *argv); | 119 void runv(Buf *b, char *dir, int mode, Vec *argv); |
120 void bgrunv(char *dir, int mode, Vec *argv); | 120 void bgrunv(char *dir, int mode, Vec *argv); |
121 void bgwait(void); | 121 void bgwait(void); |
122 bool streq(char*, char*); | 122 bool streq(char*, char*); |
123 void» writefile(Buf*, char*); | 123 void» writefile(Buf*, char*, int); |
124 void xatexit(void (*f)(void)); | 124 void xatexit(void (*f)(void)); |
125 void xexit(int); | 125 void xexit(int); |
126 void xfree(void*); | 126 void xfree(void*); |
127 void xgetenv(Buf *b, char *name); | 127 void xgetenv(Buf *b, char *name); |
128 void xgetwd(Buf *b); | 128 void xgetwd(Buf *b); |
129 void* xmalloc(int n); | 129 void* xmalloc(int n); |
130 void* xmalloc(int); | 130 void* xmalloc(int); |
131 int xmemcmp(void*, void*, int); | 131 int xmemcmp(void*, void*, int); |
132 void xmemmove(void*, void*, int); | 132 void xmemmove(void*, void*, int); |
133 void xmkdir(char *p); | 133 void xmkdir(char *p); |
134 void xmkdirall(char*); | 134 void xmkdirall(char*); |
135 Time xmtime(char *p); | 135 Time xmtime(char *p); |
136 void xprintf(char*, ...); | 136 void xprintf(char*, ...); |
137 void xqsort(void*, int, int, int(*)(const void*, const void*)); | 137 void xqsort(void*, int, int, int(*)(const void*, const void*)); |
138 void xreaddir(Vec *dst, char *dir); | 138 void xreaddir(Vec *dst, char *dir); |
139 void* xrealloc(void*, int); | 139 void* xrealloc(void*, int); |
140 void xrealwd(Buf *b, char *path); | 140 void xrealwd(Buf *b, char *path); |
141 void xremove(char *p); | 141 void xremove(char *p); |
142 void xremoveall(char *p); | 142 void xremoveall(char *p); |
143 void xsetenv(char*, char*); | 143 void xsetenv(char*, char*); |
144 int xstrcmp(char*, char*); | 144 int xstrcmp(char*, char*); |
145 char* xstrdup(char *p); | 145 char* xstrdup(char *p); |
146 int xstrlen(char*); | 146 int xstrlen(char*); |
147 char* xstrrchr(char*, int); | 147 char* xstrrchr(char*, int); |
148 char* xstrstr(char*, char*); | 148 char* xstrstr(char*, char*); |
149 char* xworkdir(void); | 149 char* xworkdir(void); |
LEFT | RIGHT |