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

Delta Between Two Patch Sets: unix/syscall_bsd.go

Issue 126960043: code review 126960043: go.sys: copy files from syscall package to go.sys/{plan... (Closed)
Left Patch Set: Created 10 years, 7 months ago
Right Patch Set: diff -r 89b705e036f489a14b4d11c6e025ea61a53bb735 https://code.google.com/p/go.sys Created 10 years, 7 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « unix/syscall.go ('k') | unix/syscall_bsd_test.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
(Both sides are equal)
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 // +build darwin dragonfly freebsd netbsd openbsd 5 // +build darwin dragonfly freebsd netbsd openbsd
6 6
7 // BSD system call wrappers shared by *BSD based systems 7 // BSD system call wrappers shared by *BSD based systems
8 // including OS X (Darwin) and FreeBSD. Like the other 8 // including OS X (Darwin) and FreeBSD. Like the other
9 // syscall_*.go files it is compiled as Go code but also 9 // syscall_*.go files it is compiled as Go code but also
10 // used as input to mksyscall which parses the //sys 10 // used as input to mksyscall which parses the //sys
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 munmap: munmap, 579 munmap: munmap,
580 } 580 }
581 581
582 func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e rr error) { 582 func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e rr error) {
583 return mapper.Mmap(fd, offset, length, prot, flags) 583 return mapper.Mmap(fd, offset, length, prot, flags)
584 } 584 }
585 585
586 func Munmap(b []byte) (err error) { 586 func Munmap(b []byte) (err error) {
587 return mapper.Munmap(b) 587 return mapper.Munmap(b)
588 } 588 }
LEFTRIGHT

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