LEFT | RIGHT |
(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 Loading... |
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 } |
LEFT | RIGHT |