unix: add mlock/munlock/mlockall/munlockall/mprotect to *BSD

Change-Id: I01c5dd902bbc349b860600ec2b3d556e2dc406c9
Reviewed-on: https://go-review.googlesource.com/1921
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
William Orr
2015-01-06 02:05:08 +00:00
committed by Ian Lance Taylor
parent c2a8d2745f
commit 853bdd547a
13 changed files with 632 additions and 13 deletions
+5 -5
View File
@@ -186,6 +186,11 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
//sys Mkdir(path string, mode uint32) (err error)
//sys Mkfifo(path string, mode uint32) (err error)
//sys Mknod(path string, mode uint32, dev int) (err error)
//sys Mlock(b []byte) (err error)
//sys Mlockall(flags int) (err error)
//sys Mprotect(b []byte, prot int) (err error)
//sys Munlock(b []byte) (err error)
//sys Munlockall() (err error)
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
//sys Open(path string, mode int, perm uint32) (fd int, err error)
//sys Pathconf(path string, name int) (val int, err error)
@@ -418,10 +423,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// madvise
// mincore
// minherit
// mlock
// mlockall
// modctl
// mprotect
// mq_close
// mq_getattr
// mq_notify
@@ -436,8 +438,6 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
// msgget
// msgrcv
// msgsnd
// munlock
// munlockall
// nfssvc
// ntp_adjtime
// pmc_control