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

Delta Between Two Patch Sets: src/runtime/stubs2.go

Issue 177090043: [dev.cc] code review 177090043: runtime: convert remaining windows C code to Go (Closed)
Left Patch Set: Created 10 years, 4 months ago
Right Patch Set: diff -r d4db9ec3b0d32dbbd48590aeda679d74576284da https://go.googlecode.com/hg/ Created 10 years, 4 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/runtime/os_windows.go ('k') | src/runtime/syscall_windows.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 // +build !solaris 5 // +build !solaris
6 // +build !windows
6 7
7 package runtime 8 package runtime
8 9
9 import "unsafe" 10 import "unsafe"
10 11
11 func read(fd int32, p unsafe.Pointer, n int32) int32 12 func read(fd int32, p unsafe.Pointer, n int32) int32
12 func close(fd int32) int32 13 func close(fd int32) int32
13 14
14 func exit(code int32) 15 func exit(code int32)
15 func nanotime() int64 16 func nanotime() int64
16 func usleep(usec uint32) 17 func usleep(usec uint32)
17 18
18 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) uns afe.Pointer 19 func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) uns afe.Pointer
19 func munmap(addr unsafe.Pointer, n uintptr) 20 func munmap(addr unsafe.Pointer, n uintptr)
20 21
21 //go:noescape 22 //go:noescape
22 func write(fd uintptr, p unsafe.Pointer, n int32) int32 23 func write(fd uintptr, p unsafe.Pointer, n int32) int32
23 24
24 //go:noescape 25 //go:noescape
25 func open(name *byte, mode, perm int32) int32 26 func open(name *byte, mode, perm int32) int32
26 27
27 func madvise(addr unsafe.Pointer, n uintptr, flags int32) 28 func madvise(addr unsafe.Pointer, n uintptr, flags int32)
LEFTRIGHT

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