Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Delta Between Two Patch Sets: src/pkg/runtime/os_plan9.go

Issue 139930043: code review 139930043: runtime: convert lock*.c to Go (Closed)
Left Patch Set: Created 10 years, 6 months ago
Right Patch Set: diff -r 91378329bf67c315e56119764bfb0edbb640a5ba https://code.google.com/p/go/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/os_openbsd.go ('k') | src/pkg/runtime/os_solaris.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2014 The Go Authors. All rights reserved. 1 // Copyright 2014 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 package runtime 5 package runtime
6 6
7 import "unsafe" 7 import "unsafe"
8 8
9 func pread(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 9 func pread(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32
10 func pwrite(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32 10 func pwrite(fd int32, buf unsafe.Pointer, nbytes int32, offset int64) int32
11 func seek(fd int32, offset int64, whence int32) int64 11 func seek(fd int32, offset int64, whence int32) int64
12 func exits(msg *byte) 12 func exits(msg *byte)
13 func brk_(addr unsafe.Pointer) uintptr 13 func brk_(addr unsafe.Pointer) uintptr
14 func sleep(ms int32) int32 14 func sleep(ms int32) int32
15 func rfork(flags int32, stk, mm, gg, fn unsafe.Pointer) int32 15 func rfork(flags int32, stk, mm, gg, fn unsafe.Pointer) int32
16 func plan9_semacquire(addr *uint32, block int32) int32 16 func plan9_semacquire(addr *uint32, block int32) int32
17 func plan9_tsemacquire(addr *uint32, ms int32) int32 17 func plan9_tsemacquire(addr *uint32, ms int32) int32
18 func plan9_semrelease(addr *uint32, count int32) int32 18 func plan9_semrelease(addr *uint32, count int32) int32
19 func notify(fn unsafe.Pointer) int32 19 func notify(fn unsafe.Pointer) int32
20 func noted(mode int32) int32 20 func noted(mode int32) int32
21 func nsec(*int64) int64 21 func nsec(*int64) int64
22 func sigtramp(ureg, msg unsafe.Pointer) 22 func sigtramp(ureg, msg unsafe.Pointer)
23 func setfpmasks() 23 func setfpmasks()
24 func errstr() string 24 func errstr() string
25
26 // The size of the note handler frame varies among architectures,
27 // but 512 bytes should be enough for every implementation.
28 const stackSystem = 512
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b