LEFT | RIGHT |
1 // just the write function | 1 // Copyright 2010 The Go Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file.· |
2 | 4 |
3 extern void ·write(int fd, void *v, int len, int cap);» // slice, spelled out | 5 #include "runtime.h" |
4 | 6 |
5 int | 7 extern void ·write(int32 fd, void *v, int32 len, int32 cap);» // slice, spelle
d out |
6 write(int fd, void *v, int len) | 8 |
| 9 int32 |
| 10 write(int32 fd, void *v, int32 len) |
7 { | 11 { |
8 ·write(fd, v, len, len); | 12 ·write(fd, v, len, len); |
9 return len; | 13 return len; |
10 } | 14 } |
11 | 15 |
12 void | 16 void |
13 gettime(int *a, int *b) { | 17 gettime(int64*, int32*) |
14 » return; | 18 { |
15 } | 19 } |
LEFT | RIGHT |