LEFT | RIGHT |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 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 /* | 5 /* |
6 * basic types | 6 * basic types |
7 */ | 7 */ |
8 typedef signed char int8; | 8 typedef signed char int8; |
9 typedef unsigned char uint8; | 9 typedef unsigned char uint8; |
10 typedef signed short int16; | 10 typedef signed short int16; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 int32 mcmp(byte*, byte*, uint32); | 377 int32 mcmp(byte*, byte*, uint32); |
378 void memmove(void*, void*, uint32); | 378 void memmove(void*, void*, uint32); |
379 void* mal(uintptr); | 379 void* mal(uintptr); |
380 void* malx(uintptr size, int32 skip_delta); | 380 void* malx(uintptr size, int32 skip_delta); |
381 uint32 cmpstring(String, String); | 381 uint32 cmpstring(String, String); |
382 String catstring(String, String); | 382 String catstring(String, String); |
383 String gostring(byte*); | 383 String gostring(byte*); |
384 String gostringw(uint16*); | 384 String gostringw(uint16*); |
385 void initsig(void); | 385 void initsig(void); |
386 int32 gotraceback(void); | 386 int32 gotraceback(void); |
387 void» traceback(uint8 *pc, uint8 *sp, G* gp); | 387 void» traceback(uint8 *pc, uint8 *sp, uint8 *lr, G* gp); |
388 void tracebackothers(G*); | 388 void tracebackothers(G*); |
389 int32 open(byte*, int32, ...); | 389 int32 open(byte*, int32, ...); |
390 int32 write(int32, void*, int32); | 390 int32 write(int32, void*, int32); |
391 bool cas(uint32*, uint32, uint32); | 391 bool cas(uint32*, uint32, uint32); |
392 bool casp(void**, void*, void*); | 392 bool casp(void**, void*, void*); |
393 uint32 xadd(uint32 volatile*, int32); | 393 uint32 xadd(uint32 volatile*, int32); |
394 void jmpdefer(byte*, void*); | 394 void jmpdefer(byte*, void*); |
395 void exit1(int32); | 395 void exit1(int32); |
396 void ready(G*); | 396 void ready(G*); |
397 byte* getenv(int8*); | 397 byte* getenv(int8*); |
(...skipping 12 matching lines...) Expand all Loading... |
410 bool efaceeq(Eface, Eface); | 410 bool efaceeq(Eface, Eface); |
411 uintptr ifacehash(Iface); | 411 uintptr ifacehash(Iface); |
412 uintptr efacehash(Eface); | 412 uintptr efacehash(Eface); |
413 uintptr nohash(uint32, void*); | 413 uintptr nohash(uint32, void*); |
414 uint32 noequal(uint32, void*, void*); | 414 uint32 noequal(uint32, void*, void*); |
415 void* malloc(uintptr size); | 415 void* malloc(uintptr size); |
416 void free(void *v); | 416 void free(void *v); |
417 void addfinalizer(void*, void(*fn)(void*), int32); | 417 void addfinalizer(void*, void(*fn)(void*), int32); |
418 void walkfintab(void (*fn)(void*)); | 418 void walkfintab(void (*fn)(void*)); |
419 void runpanic(Panic*); | 419 void runpanic(Panic*); |
| 420 void* getcallersp(void*); |
420 | 421 |
421 void exit(int32); | 422 void exit(int32); |
422 void breakpoint(void); | 423 void breakpoint(void); |
423 void gosched(void); | 424 void gosched(void); |
424 void goexit(void); | 425 void goexit(void); |
425 void runcgo(void (*fn)(void*), void*); | 426 void runcgo(void (*fn)(void*), void*); |
426 void ·entersyscall(void); | 427 void ·entersyscall(void); |
427 void ·exitsyscall(void); | 428 void ·exitsyscall(void); |
428 G* newproc1(byte*, byte*, int32, int32); | 429 G* newproc1(byte*, byte*, int32, int32); |
429 void siginit(void); | 430 void siginit(void); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 572 |
572 Hchan* makechan(Type*, uint32); | 573 Hchan* makechan(Type*, uint32); |
573 void chansend(Hchan*, void*, bool*); | 574 void chansend(Hchan*, void*, bool*); |
574 void chanrecv(Hchan*, void*, bool*); | 575 void chanrecv(Hchan*, void*, bool*); |
575 void chanclose(Hchan*); | 576 void chanclose(Hchan*); |
576 bool chanclosed(Hchan*); | 577 bool chanclosed(Hchan*); |
577 int32 chanlen(Hchan*); | 578 int32 chanlen(Hchan*); |
578 int32 chancap(Hchan*); | 579 int32 chancap(Hchan*); |
579 | 580 |
580 void ifaceE2I(struct InterfaceType*, Eface, Iface*); | 581 void ifaceE2I(struct InterfaceType*, Eface, Iface*); |
LEFT | RIGHT |