syscall: Mlock, Munlock, Mlockall, Munlockall on Linux.

R=rsc, bradfitzgo
CC=golang-dev
https://golang.org/cl/4433070
This commit is contained in:
Albert Strasheim 2011-04-26 06:41:19 -07:00 committed by Brad Fitzpatrick
parent e2f9c73391
commit 839e9eada0
4 changed files with 138 additions and 7 deletions

View file

@ -814,8 +814,12 @@ func Munmap(b []byte) (errno int) {
return mapper.Munmap(b)
}
//sys Madvise(b []byte, advice int) (errno int)
//sys Mprotect(b []byte, prot int) (errno int)
//sys Madvise(b []byte, advice int) (errno int)
//sys Mprotect(b []byte, prot int) (errno int)
//sys Mlock(b []byte) (errno int)
//sys Munlock(b []byte) (errno int)
//sys Mlockall(flags int) (errno int)
//sys Munlockall() (errno int)
/*
* Unimplemented
@ -874,8 +878,6 @@ func Munmap(b []byte) (errno int) {
// Mbind
// MigratePages
// Mincore
// Mlock
// Mmap
// ModifyLdt
// Mount
// MovePages
@ -892,9 +894,6 @@ func Munmap(b []byte) (errno int) {
// Msgrcv
// Msgsnd
// Msync
// Munlock
// Munlockall
// Munmap
// Newfstatat
// Nfsservctl
// Personality